> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsa.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Intercom Integration for Client Conversations

> Connect your Intercom workspace to Corsa to see every client conversation on the client's profile, and message clients through Intercom without leaving Corsa.

The Intercom integration connects your Intercom workspace to Corsa. Intercom conversations with your clients appear on each client's **Support** tab in Corsa, with their messages, files, status and assignee, and stay up to date as the conversation continues in Intercom. Your compliance team can then investigate a client with the client's own words in front of them.

The integration is **two-way**: from Corsa you can start a new email conversation with a client and reply to an existing Intercom conversation. Messages go out through Intercom, so your support team sees them in their Intercom inbox.

## How it works

1. **Secure connection** - Connect your Intercom workspace from the integration settings with the access token and client secret of an Intercom app. Corsa checks the token with Intercom before saving, and stores your credentials encrypted.
2. **Historical import** - When you connect, Corsa imports the conversations updated since a date you choose (the last 365 days by default) and matches each one to the right client.
3. **Real-time sync** - Intercom webhooks notify Corsa of new conversations, replies, status changes, redactions and deletions the moment they happen.
4. **Periodic sync** - Corsa also checks Intercom on a schedule (every 15 minutes by default) to catch anything a webhook missed.

> [!NOTE]
>
> Corsa never trusts the content of a webhook. Every notification is verified
> with your app's client secret, and Corsa then reads the conversation's current
> state from Intercom itself.

## What gets synced

| Capability | Direction |
| - | - |
| Import past conversations and match them to clients | Intercom → Corsa |
| New conversations, client messages and agent replies | Intercom → Corsa |
| Conversation status (Open, Closed, Snoozed) and assignee | Intercom → Corsa |
| Priority and tags (shown read-only) | Intercom → Corsa |
| Files sent in the conversation | Intercom → Corsa |
| Redacted messages (shown as `[redacted]`) | Intercom → Corsa |
| Conversation deletions (shown as **Deleted in Intercom**) | Intercom → Corsa |
| New email conversations started from Corsa | Corsa → Intercom |
| Replies to Intercom conversations, with up to 10 files | Corsa → Intercom |

Each conversation becomes one thread on the client's Support tab. Client messages are shown as inbound and agent or bot messages as outbound. The thread is labelled **Email** for email conversations and **Chat** for Messenger and SMS conversations, and **View Externally** opens the conversation in your Intercom inbox.

> [!NOTE]
>
> Internal notes and Intercom system events (attribute changes, empty
> assignments) are never imported. Intercom Tickets are not synced.

## Automatic client matching

Corsa links each Intercom contact to a Corsa client. The first rule that matches wins:

1. **Existing link** - A contact already linked to a client keeps going to that client, even if the client's email or reference ID changes later.
2. **Reference ID** - The contact's **External ID** in Intercom equals the client's reference ID in Corsa (individual clients first, then corporate).
3. **Email** - With **Match clients by email** on, the contact's email equals the email of exactly one individual client, ignoring case.

If no client matches, nothing is imported for that contact yet. When a matching client is later created or updated in Corsa, the contact's earlier conversations are imported right away. If two or more individual clients share the contact's email, Corsa can't tell which one is meant and imports nothing. Anonymous visitors with no email and no external ID are skipped.

> [!NOTE]
>
> The integration never creates, edits or deletes clients in Corsa. To match
> clients reliably, set each Intercom contact's External ID to the client's
> reference ID in Corsa.

## Messaging clients from Corsa

Once Intercom is connected, **New message** on a client's Support tab starts an Intercom email conversation instead of a Corsa email. It is sent by the Intercom admin you chose when connecting, and Corsa records which Corsa user sent it. Replying on an Intercom thread in Corsa posts a public reply to that conversation in Intercom.

* **Subject** - A new Intercom conversation needs a subject.
* **Clients Intercom doesn't know yet** - With **Add missing clients to Intercom** on, Corsa creates the Intercom contact (email, name, and the reference ID as External ID) and sends the message. With it off, the message goes out as a Corsa email instead.
* **Messages that stay in Corsa email** - A new message started from an alert or case, built from a template, or with attached files is sent as a Corsa email, as it is today.

If Intercom does not accept a message, your draft is kept, nothing is added to the thread, and the message is never sent another way:

* **"Couldn't send through Intercom. Try again."** - Intercom refused the message, so nothing was sent. You can edit the draft and send it again.
* **"Couldn't confirm the message was sent through Intercom…"** - Intercom did not answer in time, so the message may have reached the client. Sending the same draft again never sends it twice. Check the conversation in Intercom before you change the draft.

## Files

Files a client or agent sent in Intercom are listed on the message in Corsa, with **Preview**, **Download** and **Add to client profile**. Each action fetches the file from Intercom at that moment, so it keeps working after Intercom's original link has expired. **Add to client profile** copies the file into the client's files in Corsa, after Corsa's usual file checks.

## Deleted, redacted and long conversations

* **Deleted conversations** - When a conversation is deleted in Intercom, the thread stays in Corsa, labelled **Deleted in Intercom**, with replies disabled. Your compliance team keeps the full history.
* **Redacted messages** - When a message is redacted in Intercom, Corsa shows `[redacted]` in its place and lists no files for it.
* **Very long conversations** - Intercom returns at most 500 messages for a conversation. For longer conversations, the thread shows the first 500 and a note to open the rest in Intercom.

## Prerequisites

* An Intercom workspace, and permission to create an app in its [Developer Hub](https://app.intercom.com/a/apps/_/developer-hub).
* The email of an Intercom admin in that workspace. Messages sent from Corsa go out as this admin.
* Owner access to the Corsa application.
* No Zendesk or Plain integration connected in Corsa. Only one customer support integration can be connected at a time.

## Setting up the Intercom integration

### Step 1: Create an app in Intercom

1. In Intercom, open the [Developer Hub](https://app.intercom.com/a/apps/_/developer-hub) and click **New app**.
2. Enter `Corsa` as the **App name**, choose your **Workspace**, and click **Create app**.
3. On the app's **Authentication** page, under **Permissions**, click **Edit** and make sure these permissions are ticked, then save:
   * **Read conversations** and **Write conversations**
   * **Read and list users and companies**, **Read one user and one company**, **Write users and companies** and **Read and write users**
   * **Read admins** and **Read one admin**
4. On the same **Authentication** page, under **Access token**, copy the token.
5. On the app's **Basic information** page, copy the **Client secret**.

> [!NOTE]
>
> Intercom calls contacts "users" in its permission names. Corsa needs the
> user permissions to match contacts to clients and to create the contact when
> you message a client Intercom doesn't know yet.

> [!NOTE]
>
> Store the access token and client secret somewhere safe, such as a password
> manager. You'll paste them into Corsa in the next step.

### Step 2: Configure the integration in Corsa

1. Log in to Corsa as the platform owner.
2. Go to **Developers Hub → Integrations**.
3. Find the Intercom card and click **Configure**.
4. Fill in the form:

| Field | What to enter |
| - | - |
| **Intercom region** | Where your workspace is hosted: United States (default), Europe or Australia. |
| **Access token** | The access token from Step 1. |
| **Client secret** | The client secret from Step 1. Corsa uses it to verify webhooks. |
| **Send messages as (Intercom admin email)** | The email of the Intercom admin that messages from Corsa are sent as. It must be an admin of the workspace. |
| **Match clients by email** | On by default. Turn off to match by reference ID only. |
| **Import conversations from** | The earliest conversation update date to import. Leave empty for the last 365 days. |
| **Polling interval (minutes)** | How often Corsa checks Intercom for missed changes. 15 by default, at least 5. |
| **Add missing clients to Intercom** | On by default. Turn off to send messages to clients Intercom doesn't know as Corsa email. |

5. Click **Save**.

Corsa checks the access token and the admin email with Intercom before saving. If either is wrong, the form shows which field to fix and nothing is saved. On success, Corsa starts importing your conversations and shows the webhook configuration screen with the **Webhook URL** and the topics to subscribe to.

### Step 3: Create the webhook in Intercom

1. In the Developer Hub, open the app from Step 1, go to **Webhooks** and click **Edit**.
2. Paste the **Webhook URL** from the Corsa webhook configuration screen into **Endpoint URL**.
3. Add every topic listed on the Corsa screen, one at a time, from the **Select a topic...** dropdown:
   * `conversation.user.created`, `conversation.user.replied`
   * `conversation.admin.replied`, `conversation.admin.single.created`
   * `conversation.admin.closed`, `conversation.admin.opened`, `conversation.admin.snoozed`, `conversation.admin.unsnoozed`, `conversation.admin.assigned`
   * `conversation.priority.updated`, `conversation_part.redacted`, `conversation.deleted`
   * `contact.user.created`, `contact.user.updated`, `contact.lead.signed_up`, `contact.email.updated`, `contact.merged`, `contact.deleted`
4. Click **Save**.

Changes in Intercom now reach Corsa immediately, and the periodic sync catches anything a webhook misses.

## Updating or disconnecting

To change the token, admin or other settings, open the Intercom card and click **Edit Configuration**. If Intercom revokes the access token, the Intercom card shows the failed sync so you can enter a new one.

When you disconnect Intercom, syncing stops, and every imported conversation and message stays on your clients in Corsa. If you reconnect the same Intercom workspace later, contacts go to the same clients as before. If you connect a different workspace, it gets its own full import, and the old workspace's conversations stay on the clients unchanged.

***

Corsa offers native integrations with leading compliance, blockchain analytics, and custody providers. [See all integrations](https://docs.corsa.finance/integrations.md) or [schedule a demo](https://calendly.com/michellelatzer/welcome-to-corsa) to see how Corsa fits into your stack.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.