Skip to content

Twilio and WhatsApp ​

Twilio and WhatsApp let a Truetask automation text a customer and land the reply as a comment on the task that sent the message, so the conversation lives where the work does. Connecting one adds two things to your automation palette: a step that sends a message and a trigger that runs when one arrives.

Twilio is also what sends text reminders to clients, and the workspace's WhatsApp number is also how people write to their agents from messaging apps.

Only a workspace owner or admin can connect a service. Everyone else sees the catalog and a line telling them to ask an admin.

Connect Twilio ​

Open the App menu and choose Integrations under Extend, then the Twilio card under Messaging. The connect flow has three steps: Credentials, Check and Choices.

1. Credentials ​

FieldWhere it is
Account SIDTwilio Console home, Account Info. It starts with AC and is 34 characters
Auth TokenThe same panel, beside the SID

Truetask asks for the Auth Token rather than an API key because the token is what Twilio signs its webhooks with. Holding it is what lets Truetask prove a reply really came from Twilio.

The Where to find this panel spells that out, and its Ask an assistant button opens ChatGPT, Perplexity or Google AI Mode with the question already written.

Truetask Twilio card on its Credentials step, with the Account SID and Auth Token fields and the Where to find this panel

2. Check ​

Truetask verifies the credentials against Twilio and shows what it found: the account it connected to, the account id and how many of its numbers can send text messages. If the account has no number that can text, buy one in the Twilio Console and come back to this card to choose it.

3. Choices ​

Pick the number under Send texts from.

Leave Point this number at Truetask on. That sets the number's inbound message webhook, which is what makes replies land on the task and lets them start automations. The Inbound URL it points at is shown below the switch.

Connect WhatsApp ​

Open the WhatsApp card. Meta splits the roles between two secrets: the access token sends, and the app secret signs the inbound webhook. The connect flow has three steps: Credentials, Check and Webhook.

FieldWhere it is
Phone number IDdevelopers.facebook.com, your app, WhatsApp, API Setup
Access tokenThe same page. Use a permanent token
App secretApp settings, Basic

Truetask verifies the number against Meta, then hands you the last piece: a Callback URL and a Verify token to paste into the Meta dashboard. Replies do not arrive until you finish that side.

In the Meta app dashboard:

  1. Open your app, WhatsApp, Configuration, and edit the webhook.
  2. Paste the Callback URL and Verify token, then verify and save.
  3. Subscribe to the messages field.

Truetask answers Meta's verification handshake and remembers that the webhook is wired up. If you ever need those two values again, open the card and use Webhook setup. The verify token is kept across a reconnect, so a working webhook keeps working.

Managing a connection ​

Open a connected card from the catalog to see its state and act on it.

RowTwilioWhatsApp
AccountThe Twilio accountThe WhatsApp number's verified name
Sending numberThe number texts go out from, or Not chosenThe WhatsApp number
RepliesLand on the task, or Not pointed at TruetaskLand on the task, or Finish the webhook in Meta
Last checkedWhen the credentials were last verifiedThe same

Once Twilio has sent a text in the last 30 days, three more rows say what the texts did and what they cost:

RowWhat it shows
Texts, last 30 daysEvery text the workspace sent through Twilio: automations and client reminders alike
Not deliveredHow many failed or went undelivered, shown only when there are some
SpentThe total in Twilio's own currency. Twilio prices a text after sending it, so a recent total can read as so much so far with some not yet priced, or Not priced yet

Check connection re-verifies the stored credentials right now and, for Twilio, re-reads the account's numbers so one you bought since connecting shows up. Change number (Choose number before one is picked) picks Twilio's sending number again from what the account has today.

A connection whose last check failed reads Needs attention in the catalog, and opening it shows the error first. One whose credentials were revoked offers Update credentials, which replaces them in place: the number, the webhook and the automations that use it carry on.

Disconnect removes the stored credentials. Automations that send or start on a message fail until the service is connected again. Your settings at Twilio or Meta are left as they are.

What it unlocks in automations ​

Connecting a service adds its steps to the automation palette.

StepWhat it does
Send textSends a text through the workspace's Twilio number, with placeholders in the message
Text receivedRuns when a text reaches the workspace's Twilio number
Send WhatsAppSends a WhatsApp message through the workspace's number
WhatsApp receivedRuns when a WhatsApp message reaches the workspace's number

Sending ​

To takes one phone number in international format, or a placeholder. The recipient is usually a phone custom field on the task, so the value is normally something like {card.xattr.Customer_phone} rather than a literal number. See Custom fields and Placeholders.

Message is the body, and placeholders work for any task or board field. A long text is sent as several segments.

For Twilio, From picks which of your numbers sends it, defaulting to the connection's number. Replies come back to Truetask when that number is pointed here.

One recipient gets at most five messages an hour from automations on each service, so a looping workflow cannot flood a customer.

WhatsApp has a 24 hour window

WhatsApp only delivers free-form text within 24 hours of the customer's last message. Outside that window Meta requires an approved template.

Receiving ​

Both triggers have a Start on choice:

OptionWhat starts the run
Replies to this board's texts or messagesA message answering one this board sent. That task becomes the focus of the run
Any text to the number or Any message to the numberEvery message the number receives, matched to a task when there is one

The Twilio trigger can also narrow to one of the account's numbers instead of any of them.

The message itself is available to the steps that follow: sender number, the number it was sent to, the message text, the message id, and the attachment count for a text or the sender name for WhatsApp.

How a reply finds its task ​

When a message arrives, Truetask looks for the most recent message this workspace sent to that number on that service, within the last 30 days, and takes the task it went out from. The reply is posted there as a comment headed with who it came from, and that task becomes the focus of any automation run the message starts.

A message with no match is still received and can still start an automation. It simply has no task to attach itself to.

A WhatsApp message from someone paired with an agent goes to that agent instead, and never also to a task or a trigger. See Messaging apps.

Every inbound request is verified before any of that happens: Twilio's signature against the Auth Token, Meta's against the app secret. A message that a service retries is only ever processed once.

Replying STOP ​

A text that says only STOP, or one of its usual variants such as UNSUBSCRIBE, CANCEL or QUIT, or the word for it in Spanish, French, German or Portuguese, stops the text reminders to every client at that number. The message is still delivered like any other reply, onto its task when one matches, so whoever reads the thread sees why the texts stopped.

What your instance needs ​

Both directions cross the internet.

  • Outbound: your instance must be able to reach the service's API to send a message and to verify credentials.
  • Inbound: the service must be able to reach your instance. The callback URL Truetask hands out is built from the instance's public URL, so that address has to be reachable from outside for replies to arrive.

Self-hosted only

An instance with no route to the internet cannot use either service. If Truetask sits behind a proxy, make sure its public URL is the address the outside world uses, because that is the URL Twilio and Meta are pointed at. See Network.

Truetask works the same on Truetask Cloud and on your own server. Pages and sections that apply to one model only are labelled. For AI assistants: llms.txt.