@orchesty/connector-intercom
v2.0.0
Published
[](https://www.npmjs.com/package/@orchesty/connector-intercom) [](https://github.com/Orchesty/orchesty-nodejs-
Readme
Intercom Connector
An Orchesty connector for Intercom, a customer communications platform that shows you who is using your product and makes it easy to personally communicate with them.
Application Type
OAuth 2.0
This connector uses the Intercom OAuth 2.0 authorization flow. After entering your credentials in Orchesty, you will be redirected to Intercom to authorize access.
| Field | Description |
|---|---|
| client_id | OAuth Client ID from the Intercom Developer Hub |
| client_secret | OAuth Client Secret from the Intercom Developer Hub |
Components
| Class | Type | Description |
|---|---|---|
| IntercomCreateContactConnector | Connector | Creates a new contact via POST /contacts |
| IntercomListAllContactsBatch | Batch | Paginates through all contacts using cursor-based pagination via GET /contacts |
Setup
Credentials
- Go to the Intercom Developer Hub and create or open an app.
- Navigate to the Authentication section and note the Client ID and Client Secret.
- Add the Orchesty OAuth callback URL to the Redirect URLs list.
- In Orchesty, open the Intercom application settings, enter the credentials, and complete the OAuth authorization flow.
API Documentation
Intercom API Reference: https://developers.intercom.com/docs/
Installation & Usage
Install the package:
npm install @orchesty/connector-intercom @orchesty/nodejs-sdk
# or
pnpm add @orchesty/connector-intercom @orchesty/nodejs-sdkRegister the application and nodes in your Orchesty DI container:
import { container } from '@orchesty/nodejs-sdk';
import { OAuth2Provider } from '@orchesty/nodejs-sdk/dist/lib/Authorization/Provider/OAuth2/OAuth2Provider';
import IntercomApplication from '@orchesty/connector-intercom/dist/IntercomApplication';
import IntercomCreateContactConnector from '@orchesty/connector-intercom/dist/Connector/IntercomCreateContactConnector';
import IntercomListAllContactsBatch from '@orchesty/connector-intercom/dist/Batch/IntercomListAllContactsBatch';
const app = new IntercomApplication(container.get(OAuth2Provider));
container.setApplication(app);
container.setNode(new IntercomCreateContactConnector(), app);
container.setNode(new IntercomListAllContactsBatch(), app);License
This connector is released under the Apache License 2.0. See the LICENSE file for the full license text.
Contributing
Contributions are welcome! This connector is part of the open-source Orchesty Node.js Connectors monorepo.
For guidelines on how to create or update connectors — including project setup, coding conventions, and how to write tests — please refer to the Contributing to Connectors guide.
All contributions should include:
- Source code in
src/following the existing connector structure - Tests in
src/**/__tests__/withinput.json,mock.json, andoutput.jsonfixtures - An updated
CHANGELOG.mdentry
