Skip to content

Twilio — SMS received ​

Starts the workflow on every SMS received on a Twilio number. The message fields (From, Body…) land in data.twilio; Twilio’s signature is checked.

The Twilio — SMS received trigger receives, on the workflow’s URL, the messages that arrive on a Twilio number. Twilio signs every call with your account’s Auth Token: a call whose signature is wrong starts nothing. The trigger answers Twilio with an empty TwiML response, so nothing is sent back to the sender.

Paste the URL in the number’s A message comes in setting, and enter the account Auth Token in the connection.

At a glance ​

  • Type: trigger.twilio · version 1
  • Category: Triggers
  • Kind: Trigger — starts a run
  • Effect: No external effect (none) — nothing is written outside Loop & Roll; safe to replay
  • Needs a carrier email: No
  • Connection: Twilio
  • Outputs: main
The ports of “Twilio — SMS received”: what comes in on the left, what goes out on the rightIt starts runs: no input. Outputs: main. It needs a Twilio connection.Twilio — SMS receivedtrigger.twilioEventmainConnection: Twilio
The ports of “Twilio — SMS received”: what comes in on the left, what goes out on the right

Connection ​

This node needs a Twilio connection.

Parameters ​

connection ​

Twilio connection — The Twilio connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

Outputs ​

  • main — Taken by each run, one per SMS received on the number.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.twilio.Body }} — string. The text of the SMS.
  • {{ data.twilio.From }} — string. The sender’s number.
  • {{ data.twilio.To }} — string. Your Twilio number that received it.
  • {{ data.twilio.MessageSid }} — string. The message id at Twilio.
  • {{ data.twilio.NumMedia }} — string. How many media an MMS carries (MediaUrl0…).

Loop & Roll — the workflow builder for email.