Amplitude data destination
The Accoil streaming integration for Amplitude allows you to forward Amplitude events, user data, and group (account) data directly into Accoil
Setup
Prerequisites
Before configuring the integration, make sure you have:
- An active Accoil workspace
- An API Key from your Accoil account
How to Get Your Accoil API Key
- Log in to your Accoil workspace
- Go to Workspace > Settings > Account Settings > General
- Copy the API Key for the relevant product
Create a New Sync in Amplitude
- In Amplitude go to Data, go to Catalog and select the Destinations tab.
- Under Customer Engagement, select Accoil.
- Enter a Sync Name, then click Create Sync.
Enter Credentials
-
Paste your Accoil API Key into the input field.
-
Under 1. Select & filter events select All Events
-
Click Test Connection.
- Accoil will validate the connection.
- ✅ If successful, data streaming can begin immediately.
- ⏱ Note: After enabling the connection, it may take 1 to 2 minutes for user events to appear in Accoil.
Configure Sync Settings
1. Select & Filter Events
By default, all events in Amplitude are selected for forwarding. This is the recommended setting, and we suggest keeping it enabled to maximize visibility into product usage across the user lifecycle.
You may optionally:
- Filter to include only events with a
User ID - Manually select specific event types to send
Accoil requires events to include a valid User ID to process them correctly. Add filters if needed to exclude anonymous events.
2. Map Properties to Destination
You’ll need to map a unique user identifier from Amplitude to Accoil.
- Amplitude Property: Select the user property that uniquely identifies users in your product (e.g.,
user_id,email, or a custom ID) - Accoil Property: This automatically maps to
userId
This ensures all event data is associated with the correct user profile in Accoil.
3. Select Additional Properties (Optional)
Here you can specify additional event or user properties you want to send to Accoil. These will be included as metadata with each event.
- Use this to enrich the data available for segmentation, filtering, and targeting within Accoil.
- Examples:
trial_end,plan_type,api_key,api_token_id,status
Send any attributes that may be useful for building user cohorts, recipes, or dashboards—even if you’re not using them immediately.
Finalize & Enable Sync
- Review your configuration
- Toggle the Status switch to Enabled
- Click Save
Your Amplitude events will now stream to Accoil in real time.
Mapping Group/Account Information to Accoil
When streaming events from Amplitude to Accoil, group-level data—such as account identifiers and associated metadata—is extracted from the Amplitude event payload and mapped into a structure that Accoil can process for account-level insights.
Where group/account data comes from
Amplitude events can include:
- A
groupsobject — identifies which group(s) the event is associated with (e.g. anAccount) - A
group_propertiesobject — contains metadata for each group (e.g.domain,name, or other custom traits)
These two fields are used together to determine which account (or group) each event belongs to and what traits should be attached to that account in Accoil.
1. Identifying groups in the event
If both groups and group_properties are present in the event, the mapping logic:
- Iterates through all group types (e.g.
Account) - Collects the group IDs under each type
- Retrieves associated metadata (traits) for each group ID from
group_properties
This results in a list of candidate groups, each containing:
groupId— the unique identifier for the grouptraits— metadata fields likedomain,name, and any other relevant attributes
2. Selecting a primary group
If multiple groups are present, they are sorted by groupId (ascending), and the first group is selected as the primary group. This ensures consistency in how group data is attached to events.
Most implementations use a single group type (e.g.
Account) per event, so this logic typically results in the expected group being selected by default.
3. Mapping group traits into the Accoil payload
Once the primary group is selected, its identifier and metadata are formatted into the Accoil-compatible structure under the groupTraits field.
For example:
"groupTraits": [
{
"groupId": "210000",
"traits": {
"domain": "accoil.com",
"group_type": "Account",
"name": "Released Import Test"
}
}
]These traits are used in Accoil to:
- Enrich account profiles
- Support segmentation and cohort analysis
- Enable filtering and targeting within recipes and dashboards
Summary
- Amplitude events must include both
groupsandgroup_propertiesto pass account-level data to Accoil - A single group is selected per event, based on a predictable sort order
- Group metadata is included in the payload and used to build rich account-level context in Accoil
This mapping ensures account data is structured correctly for use across Accoil's segmentation, analytics, and activation workflows.
Updated about 2 months ago
