Twilio + Intercom

Connect Twilio and Intercom to Unify SMS, Voice, and Customer Conversations

Automate two-way communication workflows between Twilio's messaging infrastructure and Intercom's customer engagement platform.

Why integrate Twilio and Intercom?

Twilio and Intercom are two of the most widely used customer communication platforms around, and connecting them removes a friction point that quietly costs teams every day. Businesses use Twilio for programmable SMS, voice calls, and WhatsApp messaging, while Intercom handles live chat, support tickets, and customer lifecycle conversations. Without integration, data stays siloed and agents miss context they need to do their jobs well. Connecting Twilio with Intercom via tray.ai closes that gap — every inbound text, outbound call, or automated notification lands in the right customer record and conversation thread.

Automate & integrate Twilio & Intercom

Use case

Inbound SMS to Intercom Conversation

When a customer sends an SMS to your Twilio number, tray.ai automatically creates or updates an Intercom conversation attributed to that contact, routing it to the correct inbox or team. Support agents see the full message thread in Intercom without leaving their primary workspace. No separate Twilio console to monitor, and every text gets a timely, tracked response.

Use case

Trigger Twilio SMS from Intercom Events

When a specific event occurs in Intercom — a user reaching a certain lifecycle stage, a conversation being snoozed, or a lead being tagged — tray.ai sends an automated Twilio SMS to that contact. This keeps customers informed via their preferred channel even when they're not active in your web app or email. Marketing and support teams can run SMS campaigns directly from Intercom logic without writing custom code.

Use case

Sync Twilio Call Logs to Intercom Contact Timelines

After every inbound or outbound Twilio call, tray.ai pushes call metadata — duration, timestamp, recording URL, and outcome — directly to the matching Intercom contact as a note or conversation event. Teams get full visibility into voice interactions without manually logging calls, and managers can review communication history in one place. It's especially useful for sales teams that close deals over the phone but manage relationships in Intercom.

Use case

Two-Way WhatsApp Messaging via Twilio and Intercom

Using Twilio's WhatsApp Business API alongside Intercom's messaging platform, tray.ai runs a two-way WhatsApp channel that surfaces conversations in Intercom for agent handling. Inbound WhatsApp messages create Intercom conversations, and agent replies go back through Twilio's WhatsApp endpoint, keeping the thread intact for the customer. This workflow works well for global support teams serving markets where WhatsApp dominates.

Use case

Automated SMS Notifications for Intercom Ticket Status Updates

When the status of an Intercom conversation or ticket changes — moving from open to resolved, or being assigned to a specific team — tray.ai sends a Twilio SMS notification to the customer with a personalized update. Customers stay informed without needing to log in or check email, which cuts inbound follow-up requests and improves CSAT scores. The workflow is configurable per conversation type, team, or customer segment.

Use case

Escalate High-Priority Intercom Conversations with Twilio Alerts

When an Intercom conversation is flagged as urgent, assigned a high-priority tag, or left unresponded beyond an SLA threshold, tray.ai sends a Twilio SMS or voice alert to the on-call agent or team lead. Critical customer issues don't go unnoticed, even outside business hours. Escalation logic can be customized based on customer tier, conversation topic, or team availability.

Use case

New Intercom Lead Triggers Twilio Welcome SMS

When a new lead or user is created in Intercom — via a form submission, product sign-up, or manual entry — tray.ai immediately sends a personalized welcome or onboarding SMS through Twilio. The message arrives within seconds, while the user's attention is still on your product. SMS delivery status and engagement can be written back to the Intercom contact for future segmentation.

Get started with Twilio & Intercom integration today

Twilio & Intercom Challenges

What challenges are there when working with Twilio & Intercom and how will using Tray.ai help?

Challenge

Matching Phone Numbers Across Platforms

Twilio identifies contacts by phone number, while Intercom uses email addresses or user IDs as primary identifiers. When an inbound SMS arrives in Twilio, there's no guaranteed way to know which Intercom contact it belongs to unless phone numbers are consistently stored in Intercom contact profiles. Mismatches produce duplicate contacts, missed conversations, and broken automation logic.

How Tray.ai Can Help:

tray.ai's data mapping and conditional logic let you run phone number lookups against Intercom's contact API before creating or updating records. You can normalize phone number formats using tray.ai's built-in data transformation tools, apply matching logic to handle formatting inconsistencies like country codes and spaces, and fall back to contact creation workflows when no match is found — all without writing custom code.

Challenge

Handling Twilio Webhook Volume at Scale

High-volume SMS or call operations in Twilio can generate thousands of webhook events per hour, and without a scalable middleware layer, Intercom's API rate limits become a bottleneck fast. Dropped events, delayed conversation creation, and duplicate records become common problems as message volume grows, which quietly undermines the reliability of the whole integration.

How Tray.ai Can Help:

tray.ai handles high-throughput webhook ingestion with reliable queuing and retry logic, so no Twilio event gets dropped during traffic spikes. It also manages Intercom API rate limits automatically, batching requests and spacing calls to stay within platform limits. The integration stays stable and accurate whether you're processing ten messages a day or ten thousand.

Challenge

Maintaining Conversation Context Across Channels

When a customer contacts you via SMS through Twilio and later starts an in-app chat in Intercom, the two interactions can appear as completely separate conversations with no shared context. Agents end up asking customers to repeat themselves, which frustrates everyone and creates unnecessary work. Linking cross-channel interactions to a single contact timeline is technically complex without a dedicated integration layer.

How Tray.ai Can Help:

tray.ai lets you design workflows that consistently tag, link, and annotate Intercom conversations with their originating channel and related interaction IDs from Twilio. By writing Twilio call and SMS metadata back to Intercom contact notes and custom attributes, every agent sees a complete communication history regardless of which channel the customer used first. You can also configure tray.ai to detect and merge duplicate conversations triggered by the same customer across channels.

Challenge

Managing Opt-Outs and Compliance Across Both Platforms

SMS communication is subject to strict regulatory requirements including TCPA and GDPR, which require that opt-out requests be honored immediately and across all channels. If a customer replies STOP to a Twilio SMS but that preference isn't reflected in Intercom, your team may keep sending messages through Intercom-triggered Twilio workflows — creating real compliance risk and eroding customer trust.

How Tray.ai Can Help:

tray.ai lets you build compliance-aware workflows that capture Twilio opt-out events in real time and immediately update the matching Intercom contact with an opt-out attribute or tag. Downstream Twilio SMS workflows triggered by Intercom can check this attribute before sending, so opted-out contacts are never messaged again. The result is a consistent, auditable opt-out enforcement layer across both platforms.

Challenge

Keeping Contact Data Consistent Between Twilio and Intercom

Contact attributes like phone numbers, names, and custom fields often drift over time between Twilio's contact records and Intercom's user database, especially when multiple teams update each platform independently. Stale or conflicting data causes mis-routed SMS messages, failed lookups, and incorrect personalization in automated messages — all of which quietly degrade the integration's usefulness.

How Tray.ai Can Help:

tray.ai supports bidirectional sync workflows that propagate contact updates from either platform to the other on a scheduled or event-driven basis. You can define authoritative source rules — for example, treating Intercom as the system of record for contact names and Twilio for phone number validation — and build transformation logic that resolves conflicts before writing data. Both platforms stay aligned without manual reconciliation.

Start using our pre-built Twilio & Intercom templates today

Start from scratch or use one of our pre-built Twilio & Intercom templates to quickly solve your most common use cases.

Twilio & Intercom Templates

Find pre-built Twilio & Intercom solutions for common use cases

Browse all templates

Template

Inbound Twilio SMS to Intercom Conversation Creator

This template listens for incoming SMS messages on a Twilio number and automatically creates a new conversation in Intercom linked to the matching contact, or opens a new contact if one doesn't exist. It maps the sender's phone number, message body, and timestamp to the Intercom conversation payload and assigns the conversation to a designated inbox or team.

Steps:

  • Twilio webhook triggers on inbound SMS message received
  • tray.ai looks up the sender's phone number in Intercom contacts
  • If contact exists, a new conversation is created and linked; if not, a new contact and conversation are created simultaneously
  • Conversation is routed to the configured Intercom inbox or team assignment rule
  • Confirmation SMS is optionally sent back to the customer via Twilio

Connectors Used: Twilio, Intercom

Template

Intercom Lifecycle Event to Twilio SMS Outreach

This template monitors Intercom for user attribute changes or lifecycle events — such as a user reaching 'Trial Expired' or 'Churned' status — and sends a targeted SMS through Twilio with a relevant message or offer. It pulls contact data from Intercom to personalize the message body and logs the outreach as a note on the Intercom contact record.

Steps:

  • Intercom webhook fires when a user attribute or lifecycle tag changes
  • tray.ai filters for the relevant event type and user segment
  • Personalized SMS message is composed using Intercom contact attributes
  • Twilio sends the SMS to the contact's stored phone number
  • Twilio delivery status and timestamp are written back as a note on the Intercom contact

Connectors Used: Intercom, Twilio

Template

Twilio Call Log Sync to Intercom Contact Notes

After each Twilio call completes, this template captures the call record — including duration, direction, recording URL, and call status — and appends it as a structured note to the matching Intercom contact's timeline. Voice interactions end up permanently documented alongside chat and email history in Intercom.

Steps:

  • Twilio webhook triggers on call status change to 'completed'
  • tray.ai retrieves full call details including recording URL from Twilio API
  • Phone number is matched to an Intercom contact record
  • Formatted call summary note is created on the Intercom contact timeline
  • Optional: flag the contact with a custom attribute indicating recent call activity

Connectors Used: Twilio, Intercom

Template

Intercom SLA Breach to Twilio SMS Escalation Alert

This template monitors Intercom conversations for SLA thresholds or unresponsive statuses and sends a Twilio SMS to the assigned agent or team lead when a breach is detected. It includes the conversation ID, customer name, and a direct link to the Intercom thread in the SMS body for immediate action.

Steps:

  • tray.ai polls or receives webhook for Intercom conversations nearing or exceeding SLA thresholds
  • Conversation priority and assignment data are extracted from Intercom
  • Escalation SMS is composed with customer name, issue summary, and direct Intercom link
  • Twilio sends the SMS to the on-call agent or team lead's phone number
  • Escalation event is logged as a note on the Intercom conversation for audit trail

Connectors Used: Intercom, Twilio

Template

New Intercom Contact to Twilio Welcome SMS

This template triggers whenever a new contact is created in Intercom and sends a personalized welcome SMS via Twilio within seconds. The message uses the contact's first name and any relevant onboarding context, giving new users an immediate, human-feeling touchpoint.

Steps:

  • Intercom webhook fires on new contact creation event
  • tray.ai checks that the contact has a valid phone number attribute
  • Personalized SMS body is assembled using contact's first name and configured template text
  • Twilio sends the welcome SMS to the new contact
  • SMS delivery status is written back to the Intercom contact as a custom attribute

Connectors Used: Intercom, Twilio

Template

Intercom Conversation Resolved to Twilio CSAT SMS Survey

When an Intercom conversation is marked as resolved, this template waits a configurable delay and then sends a short CSAT survey via Twilio SMS, asking the customer to reply with a rating. Responses are captured by Twilio and written back to the Intercom contact record for reporting and follow-up.

Steps:

  • Intercom webhook fires when a conversation status changes to 'resolved'
  • tray.ai applies a configurable wait period before sending the survey
  • Twilio sends a CSAT SMS survey to the customer's phone number
  • Inbound SMS reply from customer is captured by Twilio webhook
  • Rating and feedback are written back to the Intercom contact as a note and custom attribute

Connectors Used: Intercom, Twilio