Skip to content

Intercom

Intercom is a customer messaging platform that helps businesses connect with customers through targeted, behavior-driven messages.

ingestr supports Intercom as a source.

URI format

The URI format for Intercom is as follows:

plaintext
intercom://?access_token=<access_token>&region=<region>

URI parameters:

  • access_token: The access token is used for authentication with the Intercom API.
  • region: The data region where your Intercom workspace is hosted. Valid values are us, eu, or au. Defaults to us.

The URI is used to connect to the Intercom API for extracting data.

Setting up an Intercom Integration

Intercom requires a few steps to set up an integration, please follow the guide dltHub has built here.

Once you complete the guide, you should have an access token. Let's say your access token is dG9rOjE... and your workspace is in the US region, here's a sample command that will copy the data from Intercom into a DuckDB database:

sh
ingestr ingest \
    --source-uri 'intercom://?access_token=dG9rOjE...&region=us' \
    --source-table 'contacts' \
    --dest-uri duckdb:///intercom.duckdb \
    --dest-table 'intercom.contacts'

The result of this command will be a table in the intercom.duckdb database.

Tables

Intercom source allows ingesting the following sources into separate tables:

TablePKInc KeyInc StrategyDetails
contactsidupdated_atmergeRetrieves information about contacts (visitors, users, and leads)
companiesidupdated_atmergeRetrieves information about companies
conversationsidupdated_atmergeRetrieves conversation data
articlesidupdated_atmergeRetrieves help center articles
tagsid-replaceRetrieves tags used to organize contacts and companies
segmentsid-replaceRetrieves segments for filtering contacts and companies
adminsid-replaceRetrieves admin user information
teamsid-replaceRetrieves team information
data_attributesname-replaceRetrieves data attributes (both built-in and custom attributes)

Use these as --source-table parameter in the ingestr ingest command.

TIP

Resources marked with "merge" Inc Strategy support incremental loading based on the updated_at timestamp, which means subsequent runs will only fetch new or updated records.