Skip to content

Twilio

Twilio nodes let you send SMS and WhatsApp messages from your workflows.

Both nodes require a Twilio connection configured with your Account SID and Auth Token.

Nodes

Send SMS

Send an SMS (or MMS) message.

FieldDescriptionNotes
ToRecipient phone number in E.164 formatRequired. Supports templates
FromSender phone numberOptional (use Messaging Service SID instead)
Messaging Service SIDTwilio Messaging Service SIDOptional alternative to From
Message BodyText content of the SMSRequired. Supports templates
Media URLURL of media to attach (MMS)Optional. Supports templates

Returns the Twilio message object including sid, status, and date_created.

Send WhatsApp

Send a WhatsApp message via the Twilio WhatsApp API. The whatsapp: prefix is added automatically to phone numbers.

Choose a Message Type to control which fields are shown:

Text Message

Send a free-form text message. Only works within the 24-hour conversation window (the recipient must have messaged you first).

FieldDescriptionNotes
ToRecipient phone number in E.164 formatRequired. Supports templates
FromSender WhatsApp numberOptional (use Messaging Service SID instead)
Messaging Service SIDTwilio Messaging Service SIDOptional alternative to From
Message BodyText content of the messageRequired. Supports templates
Media URLURL of media to attachOptional. Supports templates

Template Message

Send a pre-approved content template. Templates can initiate conversations outside the 24-hour window, making them ideal for notifications, alerts, and outbound messaging.

FieldDescriptionNotes
ToRecipient phone number in E.164 formatRequired. Supports templates
FromSender WhatsApp numberOptional (use Messaging Service SID instead)
Messaging Service SIDTwilio Messaging Service SIDOptional alternative to From
Content SIDContent Template SID (starts with HX)Required. Supports templates
Content Variables (JSON)JSON object mapping variable positions to valuesOptional. Supports templates

Content variables example:

json
{"1": "John", "2": "Order #1234"}

TIP

Create and manage content templates in the Twilio Console under Content Editor, or via the Content API. Templates must be approved by Meta before use.

TIP

You must either provide a From number or a Messaging Service SID — one of the two is required by Twilio.

Streaming

Both nodes support streaming — when connected to an upstream list, each item triggers a separate message send.

Common Patterns

Order Confirmation SMS

  1. Webhook — receive order data
  2. Twilio Send SMS — send confirmation to customer phone number

Alert via WhatsApp

  1. Cron — scheduled check
  2. HTTP Request — poll a monitoring endpoint
  3. Switch — route on status
  4. Twilio Send WhatsApp (Text) — alert on failure branch

Proactive WhatsApp Notification

  1. Cron — scheduled trigger
  2. DataStore Query — fetch pending notifications
  3. Twilio Send WhatsApp (Template) — send approved template to each recipient