Utility

Twilio SMS

Category
Communication
Node Type
Utility

Overview

The Send SMS using Twilio node lets you send SMS messages via Twilio directly from your workflow. Use it for notifications, OTPs, alerts, and status updates.

Description

Send SMS via Twilio.

This node integrates with Twilio for outbound SMS delivery.

Notifications

Send alerts, reminders, or updates.

Verification

Send OTPs for login or transaction approval.

Prerequisites:

  • Active Twilio account.
  • Verified phone number or sender ID.
  • Configured Messaging Service SID.

Input Parameters

Configure the message.

messagingServiceSidstringRequired
Twilio Messaging Service SID.
Example
"MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
phoneNumberstringRequired
Recipient number in E.164 format.
Example
"+919876543210"
messagestringRequired
SMS body text.
Example
"Your code is 123456."

Output Parameters

The node returns delivery status.

deliveryIdstringOptional
Twilio Message SID.
deliveryStatusstringOptional
'queued', 'sent', 'delivered', or 'failed'.
deliveryTimestringOptional
ISO timestamp.

Output Type

Output Type: Text

Returns a text response with metadata.

Example Usage

Example 1: Send Verification Code

Send an OTP to a user.

{  "messagingServiceSid": "MG12345...",  "phoneNumber": "+919876543210",  "message": "Your verification code is 524916."}
{  "deliveryId": "SM12345...",  "deliveryStatus": "queued",  "deliveryTime": "2025-10-29T18:35:45Z"}

How to Use in a No-Code Workflow

1

Add the Node

Add the Send SMS using Twilio node to your workflow.

2

Configure Service

Enter your Messaging Service SID.

3

Set Recipient

Enter the Phone Number (E.164 format).

4

Compose

Enter the Message text.

Best Practices

  • Use a Messaging Service SID to handle sender ID selection automatically.
  • Keep messages concise.

Do / Don’t

Do
  • ✔️ Use E.164 format (+1234567890).
  • ✔️ Log deliveryId for troubleshooting.
Don’t
  • ❌ Don’t send messages to unverified numbers in trial mode.
  • ❌ Don’t ignore local SMS regulations (e.g., opt-outs).

Common Errors

Missing messagingServiceSidErrorOptional
Service SID is required.
Invalid phone numberErrorOptional
Number format is incorrect.
Integration not enabledErrorOptional
Enable Twilio in Integrations.

Example Workflow Integration

Use Case: Appointment Reminder

Remind a user about an upcoming event.

  1. Schedule Trigger: Runs 1 hour before event.
  2. Twilio SMS: Send "Your appointment is at {{time}}".
  3. Log: Record that reminder was sent.

Workflow Data Flow:

{{event.time}} → {{twilio.message}}
{{twilio.deliveryStatus}} → {{log.status}}