The Intercom integration brings your Intercom contacts' email preferences and profile details into Iterable. When a contact unsubscribes, resubscribes, or changes a subscription preference in Intercom, Iterable updates the user's subscriptions to match. When a contact's details change in Intercom, Iterable updates the user profile. Use it to respect Intercom opt-outs in your Iterable campaigns, follow up with leads who share their email in Intercom, and re-engage contacts who have gone quiet.
# In this article
- How the integration works
- Connection requirements
- Connecting Intercom to Iterable
- Synced fields
-
Troubleshooting
- Nothing from Intercom reaches Iterable
- Webhooks from Intercom are rejected
- Subscription changes don't appear in Iterable
- Changes to a new subscription type don't reach Iterable
- Setup is blocked on Review
- Email Consent shows that the project has no email channels
- A contact's new email address created a separate Iterable user
# How the integration works
Iterable receives webhooks from a private app that you create in your Intercom workspace. After you finish setup, you add Iterable's webhook URL and topics to the app. The app then notifies Iterable as contacts change in Intercom. Iterable uses the app's client secret to check that each webhook comes from your app.
Depending on what changed in Intercom, it:
- Applies the contact's email opt-out to the Iterable email channels you choose.
- Applies the contact's choice for each Intercom subscription type to the Iterable message type or channel that you choose for it.
- Updates the user profile with the contact's details, such as name and phone number, and the Intercom custom attributes you choose.
Data syncs one way, from Intercom to Iterable. Contacts that existed before setup don't import until they change in Intercom.
To see the fields that sync, read Synced fields.
# How users are matched
Match Users By on the Matching page sets how the integration identifies users in Iterable. The integration doesn't use the Primary Identifier on the Iterable connection.
| Match Users By | Intercom identifier | Iterable identifier | Supported Iterable project types |
|---|---|---|---|
| Contact email address | email | Hybrid, email-based | |
| User ID | Contact user ID (external_id) |
userId, plus email when the contact has one* | Hybrid, userID-based |
* In a hybrid project, email must also be unique. If another Iterable user
already has the contact's email address, Iterable rejects that update.
Choose the Match Users By option that matches how your existing Iterable users are identified:
Select User ID if your users'
userIdvalues are Intercom user IDs, or if the project has no users yet and you want to identify users by Intercom user ID. The integration also adds the contact'semailto the user profile when the contact has one. It skips contacts without a user ID. Intercom's own contact ID is never used asuserId. Not available for email-based projects.Select Email if your users are identified by
email, or byuserIdvalues that aren't Intercom user IDs. The integration saves the contact's Intercom user ID to theintercomUserIdfield and skips contacts without an email address. Not available for userID-based projects.
To learn more about project types, read Project Types and Unique Identifiers.
# How email preferences sync
Intercom has two kinds of email preferences, and the integration handles each one separately:
- When a contact unsubscribes from all email in Intercom, the integration unsubscribes the user from the email channels you select on Email Consent. When the contact resubscribes, the integration resubscribes the user to those channels.
- You map each Intercom subscription type to an Iterable message type, an Iterable channel, or Do Not Sync. Each mapped message type or channel follows the contact's Intercom choice for that subscription type.
To learn more about message types and channels, read Message Channels and Message Types Overview.
On each preference change, the integration reads the contact's current preferences in Intercom, so late or repeated notifications can't leave a user in the wrong state. It then applies these rules:
- It always applies opt-outs.
- It applies a resubscribe only where the contact chose to resubscribe. An unrelated change in Intercom never undoes an unsubscribe made in Iterable, such as from an email footer link or the preference center.
- It leaves an opt-in subscription type alone until the contact opts out of that type in Intercom, so an opt-in made in Iterable isn't undone.
- When two settings disagree about the same Iterable message type or channel, the unsubscribe wins.
The integration also keeps the intercomUnsubscribedFromEmails field on the
user profile current.
Mapping a subscription type to a transactional message type or channel can stop receipts, password resets, and other transactional email for those contacts.
# How contact fields sync
On each contact update, Iterable also updates the user profile with the contact's details. Two settings on Contact Fields control which details sync. To see every field that syncs, read Synced fields.
# Sync Name To
Intercom stores one full name. Sync Name To sets where the name goes in
Iterable: firstName and lastName, a single name field, or
Do Not Sync. The default is firstName and lastName. With
firstName and lastName, the name splits at the first space, and a
one-word name sets only firstName. With Do Not Sync, the name fields in
Iterable stay as they are. The name fields you choose are overwritten on every
contact update, unless the contact's name is empty in Intercom. Then the
Iterable fields stay unchanged.
# Custom Attributes To Sync
By default, no Intercom custom attributes sync. To copy custom attributes to Iterable, select them under Custom Attributes To Sync. Leave it empty to sync none. Each selected attribute is copied to an Iterable user field with the same name, and it overwrites that field on every contact update. When an Intercom value is empty, the Iterable field stays unchanged.
# When contacts sync
A contact reaches Iterable on its first update or preference change after setup. Creating a contact in Intercom doesn't sync it by itself. Contacts that don't change after setup, including existing contacts, stay out of Iterable until they do.
A contact without the identifier selected in Match Users By is skipped. See How users are matched.
# When a contact's email address changes
When you match users by user ID, Iterable updates email on the same user.
When you match users by email, the contact's new email address becomes a new Iterable user. Iterable applies the contact's current opt-outs to the new user, but doesn't carry over opt-ins to opt-in subscription types, so those types start off until the contact opts in again. The user under the old address stays as it is.
# What isn't synced
The integration doesn't sync:
- Changes in Iterable back to Intercom.
- History from before setup, including contacts that haven't changed since setup.
- Intercom custom attributes that you don't select on Contact Fields.
- Changes to a subscription type you add in Intercom after setup, until you add it to the mapping. See Changes to a new subscription type don't reach Iterable.
- Intercom data other than contacts and their email preferences, such as companies and conversations.
# Connection requirements
To connect Intercom to Iterable, you need the following from Intercom:
- A US-hosted Intercom workspace. EU-hosted and Australia-hosted workspaces aren't supported.
- A private app in your Intercom workspace, with the required permissions. You need the app's access token and client secret.
- A field to identify the user that matches in Iterable:
- When you match users by email, an email address on every Intercom contact.
- When you match users by user ID, an Intercom user ID on every contact that matches your Iterable user IDs.
And you need the following from Iterable:
- Iterable's Subscriptions API enabled for your organization. The API manages user subscriptions to message channels, message types, and email lists. Organizations created after September 2019 have it on by default. If your organization was created before September 2019, talk to your Iterable customer success manager to enable it.
- A server-side API key for the Iterable project that receives the data.
# Intercom app permissions
Give the Intercom app the following permissions:
- Read and list users and companies
- Read one user and one company
# Connecting Intercom to Iterable
# Step 1: Create an Intercom app
- In Intercom, go to Settings > Integrations > Developer Hub and create an app in your workspace.
- On the app's Authentication page, give the app the permissions listed in Intercom app permissions.
- Copy the app's access token from its Authentication page.
- Copy the app's client secret from its Basic Information page.
You paste both values into Iterable in the next step.
# Step 2: Connect Intercom and Iterable in the Integrations Hub
In Iterable, go to Integrations > Integrations Hub.
Find Intercom, select Connect, and then select Add Connection.
-
On Connections:
- Under Iterable Connection, enter your Iterable API key. (The integration doesn't use the connection's Primary Identifier. You choose how users are matched with Match Users By on Matching.)
- Under Intercom Connection, enter your app's Access Token and Client Secret.
On Matching, under Match Users By, choose Email or User ID. The default is Email. See How users are matched.
On Email Consent, under Email Channels, select the Iterable email channels that Intercom's email opt-out covers. The list shows your project's email channels. See How email preferences sync.
On Subscription Types, under Subscription Type Mapping, choose an Iterable Target for each Intercom Subscription Type: a message type, a channel, or Do Not Sync. Each live subscription type starts with its own row. Mapping a type to a transactional message type or channel can stop transactional email for those contacts. If your Intercom workspace has no live subscription types, the page says so, and only the email opt-out syncs.
-
On Contact Fields:
- Under Sync Name To, choose where the contact's name goes in Iterable:
firstNameandlastName, a singlenamefield, or Do Not Sync. The default isfirstNameandlastName. - Under Custom Attributes To Sync, select the Intercom custom attributes to copy to Iterable. Only the attributes you select sync. Leave it empty to sync none.
- Under Sync Name To, choose where the contact's name goes in Iterable:
On Review, check the summary of how your subscription types sync. If something needs fixing, Review lists the problem, and you can't finish until it's resolved. See Setup is blocked on Review.
On Intercom Webhook, copy the webhook URL and note the topics listed on the page. Then select Finish.
# Step 3: Add the webhook to your Intercom app
In Intercom, open your app's Webhooks page in the Developer Hub.
Paste the webhook URL from the Intercom Webhook page as the endpoint.
-
Select these topics:
contact.email.updatedcontact.lead.updatedcontact.subscribedcontact.unsubscribedcontact.user.updatedgranular.subscribegranular.unsubscribe
Save the webhook.
Nothing syncs until you save the webhook. For more information, see Intercom's webhook documentation.
# Step 4: Confirm data is syncing
- In Intercom, update a test contact that has the identifier selected in Match Users By. For example, change the contact's name.
- In Iterable, open the user profile and check for the synced fields, such as
intercomContactId. - In Intercom, unsubscribe the test contact from all email. In Iterable, confirm that the user is unsubscribed from the email channels you selected.
# Synced fields
The integration updates Iterable user profiles with the following fields:
| Intercom field | Iterable field | Type | Description |
|---|---|---|---|
email |
email* | string | The contact's email address. |
external_id |
intercomUserId* | string | The contact's Intercom user ID. |
external_id |
userId* | string | The contact's Intercom user ID. |
has_hard_bounced | intercomHasHardBounced | boolean | Whether email to the contact hard bounced in Intercom. |
id | intercomContactId | string | Intercom's contact ID. |
last_seen_at | intercomLastSeenAt | date | When the contact was last seen in Intercom, in UTC. |
marked_email_as_spam | intercomMarkedEmailAsSpam | boolean | Whether the contact marked an Intercom email as spam. |
name |
firstName and lastName, or name* | string | The contact's name. |
phone | phoneNumber | string | The contact's phone number. |
role | intercomRole | string | The contact's role in Intercom, either user or lead. |
unsubscribed_from_emails |
intercomUnsubscribedFromEmails* | boolean | Whether the contact is unsubscribed from all email in Intercom. |
Notes:
-
email: Identifies the user when you match users by email. When you match users by user ID, the integration adds it when the contact has an email address. -
firstName,lastName, andname: Set by Sync Name To. See Sync Name To. -
intercomUnsubscribedFromEmails: Updated when the contact's email preferences change, not on other contact updates. -
intercomUserId: Written only when you match users by email. -
userId: Identifies the user when you match users by user ID. Not written when you match users by email.
Each Intercom custom attribute you select on Contact Fields is copied to an Iterable user field with the same name. See Custom Attributes To Sync.
# Troubleshooting
# Nothing from Intercom reaches Iterable
Check that your Intercom app's Webhooks page has the webhook URL from the Intercom Webhook page and all the topics listed there. Nothing syncs until the webhook is saved.
Also check that the contact changed after setup and has the identifier selected in Match Users By. See When contacts sync.
# Webhooks from Intercom are rejected
If the Client Secret on the Intercom connection doesn't match your app's client secret, the integration rejects the app's webhooks. Copy the client secret again from the app's Basic Information page and update the connection.
# Subscription changes don't appear in Iterable
Check that:
- Iterable's Subscriptions API is enabled for your organization. Organizations created after September 2019 have it on by default. If your organization was created before September 2019, talk to your Iterable customer success manager to enable it.
- The subscription type is mapped to a message type or channel, not Do Not Sync.
- At least one email channel is selected on Email Consent. Otherwise, a contact who unsubscribes from all email in Intercom doesn't change anything in Iterable.
# Changes to a new subscription type don't reach Iterable
The integration skips changes to a subscription type you add in Intercom after setup until you map it:
- In Iterable, go to Integrations > Integrations Hub and open the Intercom page.
- Open the connection's menu and select Open Configuration.
- On Subscription Types, add a row for the new subscription type and choose its Iterable Target.
- On Review, confirm that every subscription type is mapped.
- On Intercom Webhook, select Finish.
# Setup is blocked on Review
Review lists each problem with your subscription type mapping, and you can't finish until every live Intercom subscription type has exactly one row with an Iterable Target. For example:
- A live subscription type has no row. Add a row for it.
- A subscription type is mapped more than once. Remove the extra row.
- A row has no Iterable Target, or its target no longer exists in Iterable. Choose a target, or choose Do Not Sync.
Review also warns you, without blocking, when a row is for a subscription type that's no longer live in Intercom, or when no email channel is selected on Email Consent.
# Email Consent shows that the project has no email channels
Email Consent lists only the project's email channels. If the project has none, create an email channel in Iterable, and then reopen the page.
# A contact's new email address created a separate Iterable user
When you match users by email, a new email address in Intercom becomes a new Iterable user, and the user under the old address stays as it is. See When a contact's email address changes.