Heap integration
Command AI's integration with Heap works in two directions:
- Command AI —> Heap: send Command AI-generated events to Heap, so you can build dashboards using Command AI events (and mix them with other events in Heap)
- Heap —> Command AI: use
segments
built in Heap for Who targeting in Command AI
Once configured, the integration will "just work" — no maintenance required. You will not need to make any code changes to handle new/removed users that enter your synced segments.
Configuring Heap integration
-
Navigate to Integrations and click “Connect” on the Heap card.
-
To send Command AI-generated events to Heap, set the toggle to “Send”.
-
To use the
segments
built in Heap, click “Sync with Heap”. -
At this point, you will OAuth into Heap.
- Select the Heap environment you want to connect to Command AI.
- Click "Allow".
-
To finish syncing Heap heap, you’ll need to log in to Heap at https://heapanalytics.com/login.
Syncing Heap heap with Command AI
-
Inside Heap, click on "Data" in the left-hand menu, and then select "Segments".
-
Choose a segment, then scroll down to the "Integrations" section in the right-hand detail pane for the segment. Turn on the toggle next to "Command AI".
-
Select the Heap User ID that should be used to link data to Command AI. Then click “Confirm”.
-
If the integration modal closes, you will have to click the toggle next to the Command AI integration again.
-
From here, we recommend using the "Enable Recurring Sync" option. You can also use “Sync now” if your plan does not have any remaining recurring syncs
- Recurring sync: Updates every 4 hours automatically
- Sync now: Only syncs once (must sync manually thereafter)
Because Heap emphasizes granular controls on integrations, you must repeat the above process for any segment that you want to connect to Command AI.
How to use Heap segments in Command AI
There are many ways to use Heap segments in Command AI, and we'll walk through a few!r
Deploy a product tour to a specific segment
If you want to target a product tour to a specific Heap segment:
- From the Product Tours dashboard, click into a product tour or create a new one.
- Select the "Targeting" tab.
- In the
Audience
dropdown select “Custom”. - Click "Add condition", open the first dropdown, and choose "Heap Segment".
- Then choose the desired Heap segment.
Deploy a checklist to a target segment
If you want to deploy a checklist to a specific Heap segment:
- From the Checklist dashboard, click into a checklist or create a new one.
- Select the "Targeting" tab.
- In the
Audience
dropdown select “Custom”. - Click "Add condition", open the first dropdown, and choose "Heap Segment".
- Then choose the desired Heap segment.
FAQs
What events are sent to Heap?
If enabled, these events are sent to Heap.
How frequently are Heap segments updated?
Heap segments are synced about every 4 hours.