Automations
Twilio SMS Node
4 min readnode-twilio-sms
Send an SMS to a lead or any number via Twilio.
Twilio SMS Node
Sends an SMS message via Twilio. Requires a Twilio account with a purchased SMS-capable number.
When to use it
- Send an instant SMS acknowledgement when a lead submits a form.
- Deliver a short appointment reminder 1 hour before a meeting.
---
Required fields
| Field | Type | Required | Description |
|---|---|---|---|
| to | string | Yes | Recipient phone in E.164 format e.g. +447911123456 or {{lead.phone}} |
| message | string | Yes | SMS text (max 160 chars per segment) |
---
Optional fields
| Field | Type | Required | Description |
|---|---|---|---|
| from | string | No | Your Twilio number in E.164. If blank, uses the workspace default (TWILIO_FROM env var) |
---
Credentials required
Set these in your environment or at /workspace/credentials:
| Variable | Description |
|---|---|
TWILIO_ACCOUNT_SID | Your Twilio Account SID (starts with AC) |
TWILIO_AUTH_TOKEN | Your Twilio Auth Token |
TWILIO_FROM | Default sending number in E.164 |
---
Variables available
This node does not produce output variables.
---
Step-by-step setup
- Add your Twilio credentials to the environment or via /workspace/credentials.
- Add a Twilio SMS node after a condition that confirms
lead.phoneexists. - Set
toto{{lead.phone}}. - Write a concise message under 160 characters to keep it one segment.
- Save and test with your own number first.
---
Example config
json
{
"to": "{{lead.phone}}",
"message": "Hi {{lead.firstName}}, we received your enquiry and will call you within the hour.",
"from": "+441234567890"
}
---
Tips & gotchas
- Messages over 160 characters are split into multiple segments, each billed separately by Twilio.
- Always gate this node with an If/Else checking
lead.phoneexists — sending to an empty string throws an error. - Ensure your Twilio number is enabled for SMS in the target country — some regions require additional registration.