Integrations
Integrations are configured per workspace by an owner or admin. AiLoom remains the source of truth for its contacts and conversations. Native CRM connectors send identified contact updates outward; they do not import CRM records, create tickets or cases, send handoff work items, or share transcripts.
CRM connector status: All eight connectors have offline fake-transport contract tests. HubSpot, Pipedrive, and Intercom have each passed a recorded live contact delivery through AiLoom. Pipedrive and Intercom test records were read back and deleted; HubSpot’s delivered record was not read back. OAuth redirects are implemented but not live-tested. Passing automated tests alone does not prove a live account is configured correctly. Test connection is a read/health check, not a CRM write. See the provider matrix and the architecture walkthrough.
Connect a CRM
Section titled “Connect a CRM”Choose a provider guide for its credential setup, access requirements, and a safe first delivery:
- HubSpot — use a service key for a private connection to your own portal, or configure OAuth for a reusable integration.
- Pipedrive — connect with a personal API token, or configure OAuth.
- Intercom — use a private app token for your own workspace, or configure OAuth when each customer connects their own workspace.
The basic delivery path is the same for all three:
flowchart LR A[Verified visitor identity] --> B[Contact event] B --> C[PostgreSQL outbox] C --> D[Background worker] D --> E[Provider contact API] E --> F[Recent CRM events]Test connection checks access only. To verify a write, identify a synthetic visitor from a test
workspace, wait for its event to be delivered, then confirm the contact in the CRM. The widget
identity guide shows how the host application supplies verified
identity fields.
Data sharing
Section titled “Data sharing”- Provider credentials and webhook signing secrets are encrypted at rest and never returned after creation.
- Native CRM contact writes contain email and name; Zendesk and Intercom also map the source external ID. Other arbitrary contact attributes are not sent.
- Optional context sync is available for HubSpot, Pipedrive, and Intercom after conversation close. It is off unless custom fields are mapped during connection. AiLoom sends a generated summary, conversation quality, lead temperature, buyer type, and optionally brief evidence only to those mapped CRM fields. It does not send the transcript itself or include the context-only update in customer webhooks. See the repository README for setup steps and classification definitions.
- Prompts, hidden instructions, generation traces, provider request snapshots, and credentials are never sent to a CRM or webhook endpoint.
- Native CRM connectors do not send conversation transcripts, agent messages, private notes, handoffs, tickets, or timeline activities. The legacy transcript-sharing preference is not an active delivery feature.
- Disconnecting a connection deletes its encrypted credentials and skips queued work. Deleting a workspace removes its integrations, mappings, outbox events, webhook deliveries, and secrets.
Native CRM contact connectors
Section titled “Native CRM contact connectors”The OAuth button starts a server-side authorization-code redirect for HubSpot, Salesforce,
Dynamics 365, Zoho, Pipedrive, Zendesk, and Intercom. The instance operator must register each
provider app and set its client ID and secret in CRM_OAUTH_CLIENTS; the provider’s redirect URI
must exactly match PUBLIC_URL/v1/integrations/oauth/callback/<provider>. Freshdesk currently
uses API-key authentication. The form also accepts manually created credentials for
self-hosted/private-app use where the provider permits it.
| Provider | OAuth redirect | Private/API credential | Live contact delivery evidence | Status |
|---|---|---|---|---|
| HubSpot | Yes | Service key | AiLoom delivery passed; provider record not read back | Verified |
| Salesforce | Yes | Bearer token accepted | Not run | Beta |
| Microsoft Dynamics 365 | Yes | Bearer token accepted | Not run | Beta |
| Zoho CRM | Yes | Bearer token accepted | Not run | Beta |
| Pipedrive | Yes | API token or bearer | End-to-end delivery passed; test person deleted | Verified |
| Zendesk | Yes | API token | Not run | Beta |
| Intercom | Yes | Private workspace token | End-to-end delivery passed; test contact deleted | Verified |
| Freshdesk | Not currently | API key | Not run | Beta |
Beta connectors: Salesforce, Microsoft Dynamics 365, Zoho CRM, Zendesk, and Freshdesk are labeled beta in the admin. They have offline contract tests but no recorded live delivery. Test them with a sandbox account before production use. “Verified” means live contact delivery only; OAuth redirects remain untested for every provider. A connector loses the beta label once a live smoke is recorded in CRM connector verification.
All provider calls use safeFetch. Expiring OAuth tokens are refreshed before use when a
refresh token is available. Authentication failures request reauthorization; timeouts, rate
limits, and provider server errors are retryable. The Test connection action is a read/health
check. A delivered event means the CRM returned a successful HTTP response; verify the record in
the CRM itself when validating a live setup.
Signed webhooks
Section titled “Signed webhooks”Create a webhook in Workspace → Settings → Integrations. The signing secret is shown only at creation or rotation. Every delivery includes:
X-AiLoom-Event-IdX-AiLoom-Event-TypeX-AiLoom-TimestampX-AiLoom-Signature: sha256=<hex digest>The signature is HMAC-SHA256 over timestamp + '.' + rawBody. Verify the timestamp is recent
(the default receiver tolerance is five minutes) before accepting the event. Verify the exact raw
request body, not a re-serialized JSON object.
The payload is a versioned envelope:
{ "id": "018f…", "type": "handoff.requested", "workspaceId": "018f…", "aggregateId": "018f…", "occurredAt": "2026-01-01T00:00:00.000Z", "version": 1, "data": { "conversationId": "018f…", "contactId": "018f…" }}Delivery retries cover timeouts, 408, 409, 429, and 5xx responses with bounded exponential backoff. Delivery history stores status, response code, duration, attempts, and a sanitized error; it never stores the signing secret or full response body. Failed deliveries can be replayed from the admin page.
Workspace API keys
Section titled “Workspace API keys”API keys are shown once, stored as hashes, and scoped to one workspace. Use them as:
Authorization: Bearer ak_live_…Available scopes are contacts:read, contacts:write, conversations:read,
conversations:write, webhooks:read, webhooks:write, and integrations:manage. Revoke or
rotate a key immediately when it is no longer needed. Browser session authentication remains the
recommended method for the admin UI.
Widget identity
Section titled “Widget identity”AiloomChat.identify() is bound to the widget’s signed, workspace-bound visitor token. It can only
update the current visitor and cannot attach a contact from another workspace. The host
application should call it only after its own authentication check and should send verified
customer data. Do not put a workspace API key or provider credential in browser code.
See Widget, Security, and the internal CRM provider matrix for setup and provider-specific details.