Skip to content

Connections

Twilio SMS & WhatsApp

Answer SMS and WhatsApp messages from Slack with Twilio. Incoming texts become conversations and thread replies are sent back as messages.

On this page

With Twilio, texts and WhatsApp messages to your number become Slack conversations, and your thread replies are sent back as SMS or WhatsApp messages. Failed and undelivered messages become alerts.

Setup

About three minutes in the Twilio Console. In Channlize, Connections → New connection → Twilio SMS & WhatsApp. The setup screen shows the connection URL (the Webhook URL) above these steps, with the secret fields and buttons at the step that needs them. Paste it exactly: Twilio signs the full URL.

  1. Open your phone number: Phone Numbers → Manage → Active numbers (Open active numbers). Click the number your customers text, then open its Messaging section.
  2. Set the incoming message webhook: set A message comes in to Webhook, paste the URL, pick HTTP POST, then Save configuration. A number in a Messaging Service takes the URL on the service instead: Integration → Send a webhook.
  3. Paste your Auth Token into Channlize: Console home → Account Info → Auth Token (Open the Twilio Console). Click Show next to Auth Token and copy it (32 characters). Twilio signs every webhook with it. After rotating it in Twilio, paste the new one under Settings.

Optional:

  • WhatsApp: Messaging → Senders → WhatsApp senders (Open WhatsApp senders). Open a WhatsApp sender and paste the URL into Webhook URL for incoming messages, method POST, then Update WhatsApp sender. For the Sandbox: Try WhatsApp → Sandbox settings → When a message comes in: the URL, method POST, then Save.
  • Answer by SMS and WhatsApp: add the Account SID (same Account Info panel) and turn on Reply by SMS/WhatsApp. Replies stay off until you do.

First event: the screen shows Waiting for the first event… until one arrives. Text your Twilio number (or the WhatsApp sender) from your phone. Then click Done to keep the connection. Cancel deletes the draft and its URL.

Signature

X-Twilio-Signature: a base64 HMAC-SHA1, keyed with the Auth Token, of the full URL followed by every POST parameter sorted by name. That is why the URL must match exactly.

Default mappings

EventAction
sms.received, whatsapp.receivedConversation
message.failed, message.undeliveredAlert
message.delivered, message.readLog
message.queued, message.accepted, message.sending, message.sent, message.echoIgnore

Messages are deduplicated on MessageSid (and status for delivery callbacks).

Conversations

  • One contact per phone number, named with the WhatsApp profile name when there is one.
  • The subject is "SMS from …" or "WhatsApp from …".
  • One conversation per number. A closed conversation is reopened when the customer writes again within 7 days; after that a new one starts.

Two-way replies

Turn on replies and add the Account SID. Thread replies are sent through Twilio's Messages API, split into parts of up to 1,600 characters (5 parts at most). WhatsApp only allows free-form replies within 24 hours of the customer's last message; Channlize enforces that window.