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).
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.
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.
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 type | Use it when | Fill in |
|---|---|---|
| Free text (within 24 hours) | the person wrote to you in the last 24 hours | Message, and Media if you want |
| Approved template | at any other time | Template 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.
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.
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.
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?"
A custom agent uses Twilio only after it's added to the agent's Integrations card. See Choose which connections an agent can use.
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