Skip to content

Twilio ​

Sends an SMS (or a WhatsApp message through Twilio) from your Twilio numbers, and tracks its delivery.

The Twilio node sends an SMS from one of the Twilio account’s numbers — an appointment reminder, a file-received confirmation, an on-call alert — or a WhatsApp message through Twilio, and can track its delivery.

It works with a Twilio connection. See Twilio.

At a glance ​

  • Type: twilio.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: Writes outside (external_write) — writes outside Loop & Roll; described instead of performed during a test run
  • Needs a carrier email: No
  • Connection: Twilio
  • Inputs: main
  • Outputs: main
The ports of “Twilio”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Twilio connection.Twiliotwilio.apimainmainerror · only with “Follow the Error output”Connection: Twilio
The ports of “Twilio”: 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)

action ​

Action

  • Type: One choice (options)
  • Required: Yes
  • Default: send
  • Options:
    • send — Send an SMS
    • getMessage — Track a message

account ​

Account

  • Type: Remote resource (resourceLocator)
  • Required: Yes
  • Ways to choose: pick from a list, type an ID (twilio.account)
  • Listed with the connection in: connection

channel ​

Channel

  • Type: One choice (options)
  • Required: No
  • Default: sms
  • Options:
    • sms — SMS
    • whatsapp — WhatsApp (through Twilio)
  • Shown when: action is send

from ​

Sending number — One of the account’s numbers, or a messaging service (MG…) in “ID” mode.

  • Type: Remote resource (resourceLocator)
  • Required: Yes
  • Ways to choose: pick from a list, type an ID (twilio.number)
  • Listed inside: account
  • Listed with the connection in: connection
  • Shown when: action is send

to ​

Recipient — The number in international format (+33612345678).

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 30 characters at most
  • Shown when: action is send
  • Expressions: {{ }} accepted

body ​

Message — 1,600 characters at most (beyond that, the text is cut). Accepts {{ }} expressions.

  • Type: Long text (text)
  • Required: Yes
  • Default: "" (empty)
  • 3200 characters at most
  • Shown when: action is send
  • Expressions: {{ }} accepted

messageSid ​

Message

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 64 characters at most
  • Example: {{ data.sms.messageSid }}
  • Shown when: action is getMessage
  • Expressions: {{ }} accepted

Outputs ​

  • main — Taken once the call to Twilio succeeds. A refusal from Twilio (invalid number, country not allowed) fails the step instead.

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.<step>.messageSid }} — string. The message id (SM…), to pass to “Track a message”.
  • {{ data.<step>.status }} — string. The status Twilio returns: queued, sent, delivered, undelivered, failed…
  • {{ data.<step>.delivered }} — boolean. Track a message only: true when the message was delivered.
  • {{ data.<step>.errorMessage }} — string. The failure reason Twilio returns, empty otherwise.
  • {{ data.<step>.simulated }} — boolean. true when the send was described instead of done (test run).
  • {{ data.<step>.summary }} — string. The one-line summary in the member’s language.

Operations ​

  • Send an SMS — sending number picked from the list (or a messaging service MG…), recipient in international format, 1,600 characters at most.
  • Track a message — its delivery status.

Loop & Roll — the workflow builder for email.