← Help center · Automations & agents

How to connect Twilio and send SMS or WhatsApp

Updated Nov 24, 2026

Connect a Twilio account to send SMS, WhatsApp messages and voice calls from your workflows, and to let Dana send them when you ask. A workflow can also start when one of your Twilio numbers receives a message. Anyone in your organization can connect an account. Twilio comes with the Pro plan and up, and workflows that start on an incoming message need the Business plan and up (see pricing).

Before you start

  • A Twilio account with at least one phone number. Twilio bills each message and call to that account.
  • Your Account SID and Auth Token, from Account Info in the Twilio Console.
  • For WhatsApp, a WhatsApp sender set up in your Twilio account.
  • To share the account with everyone, you need to be an owner or admin, or Members can share their connections with the organization has to be on in Settings → Shared connections.

Connect Twilio

  1. Open Settings → Connections.
  2. Under Browse integrations, choose SMS.
  3. On the Twilio card, choose Connect.
  4. On the Accounts tab, paste your Account SID and Auth Token.
  5. Optional: in Default sender, enter one of your Twilio numbers in international format, such as +14155550100, or a Messaging Service SID (it starts with MG). Steps that name no sender use it.
  6. Optional: in WhatsApp sender, enter the number of your WhatsApp sender in Twilio.
  7. If you see Who can use this account, choose Just me or Everyone in the organization.
  8. Choose Test connection.
  9. Choose Save.

Test connection shows Signed in as with your Twilio account's name. On a trial account it adds Trial account: Twilio sends only to numbers you verified in the Twilio Console. If Twilio rejects the details, the message says why, for example that the Account SID is AC followed by 32 characters, or that the Account SID or Auth Token was refused.

Send an SMS from a workflow

  1. In your workflow, open the Node library.
  2. Under Actions, open Twilio and choose Send SMS.
  3. In Select credential, pick your Twilio account.
  4. In To, enter one or more numbers in international format, separated by commas.
  5. Write the Message. You can insert values from earlier steps, such as the client's name.
  6. Optional: pick a number in From. Left empty, the step uses the connection's Default sender.
  7. Publish the workflow.

When the workflow runs, each number in To gets its own message, and the step's output lists each message's Message SID and Status for the steps after it.

A message holds up to 1,600 characters, and Twilio splits long texts into segments. One step sends to at most 100 numbers. To send images or PDFs as an MMS, add up to 10 in Media. MMS is for numbers in the US and Canada.

Send a WhatsApp message

Add Send WhatsApp message from Actions → Twilio, pick your account in Select credential and enter the numbers in To. WhatsApp delivers free text only within 24 hours of the person's last message to you, so choose a Message type:

Message typeUse it whenFill in
Free text (within 24 hours)the person wrote to you in the last 24 hoursMessage, and Media if you want
Approved templateat any other timeTemplate SID and Template variables

Create templates and get them approved in the Twilio Console, under Messaging → Content Template Builder. The Template SID starts with HX. Template variables gives a value for each numbered placeholder in the template, for example {"1": "Sanne", "2": "Friday 10:00"}.

The message goes out from the connection's WhatsApp sender unless you enter another sender in From.

Call someone and read a message aloud

Make a call, under Actions → Twilio, calls each number in To and reads your Message aloud. Choose the voice's Language (English (US) unless you change it) and how many times to Say it: Once, Twice or Three times.

Calls come from one of your Twilio numbers, picked in From or taken from the connection's Default sender. A Messaging Service can't place calls. The call only plays the message: nothing listens for a reply or for keypresses.

Look up messages and numbers

  • Get message shows a message's delivery status, price and error, by its Message SID.
  • List messages lists recent messages, newest first, optionally to or from one number.
  • List phone numbers lists your Twilio numbers and whether each can send SMS, MMS and calls.

Start a workflow when a message comes in

  1. In the workflow, open the Node library.
  2. Under Triggers, open Twilio and choose Message received.
  3. In Select credential, pick your Twilio account.
  4. Optional: narrow it with Numbers (only messages to these numbers), Channel (SMS or WhatsApp) and Text (Contains or Starts with the Value you enter, such as STOP, ignoring upper and lower case).
  5. Add the steps that follow, then Publish the workflow.

Each new incoming message runs the workflow once, and the next steps can use its From, To, Text, Channel, Media count, Media URLs and Received at. Messages that arrived before you published don't run it.

Atwork checks Twilio for new messages every minute by default, so a run can start a minute or two after the message arrives. Workflows that start on an incoming message need the Business plan and up.

Ask Dana

Once Twilio is connected, you can ask Dana in chat, for example "Text +14155550100 that the proofs are ready" or "Which messages came in on our support number today?"

  • Dana reads messages and your Twilio numbers without asking.
  • Before she sends a message or places a call, she shows an Approval required card with Approve and Deny.

A custom agent uses Twilio only after it's added to the agent's Integrations card. See Choose which connections an agent can use.

If a send stops partway

A step sends to its numbers one at a time. If a number fails after others were reached, the step stops, and its error says how many were sent and at which number it stopped. If Twilio doesn't answer, the error says the delivery to that number is unknown.

The step never retries once a message may have gone out, so nobody gets the same message twice. Check the message log in the Twilio Console before you run it again.

Related: Automation actions · Automation triggers · Connect Atwork to your tools · Choose which connections an agent can use

Related articles

How to summarize an Inbox conversation and suggest replies
In the Atwork Inbox, summarize a conversation or thread, catch up on the last 24 hours to 7 days, and get AI reply suggestions. Nothing is sent.
How to ask Dana or an agent to check back later
Ask Dana or an agent to check something at a set time, from 5 minutes to 30 days ahead. It answers in the same chat or task and notifies you.
How to connect GitHub to Atwork
Install the Atwork app on a GitHub account or organization, pick its repositories, then start workflows on pull requests and let Dana comment and review.