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
FieldTypeRequiredDescription
tostringYesRecipient phone in E.164 format e.g. +447911123456 or {{lead.phone}}
messagestringYesSMS text (max 160 chars per segment)

---

Optional fields
FieldTypeRequiredDescription
fromstringNoYour 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:

VariableDescription
TWILIO_ACCOUNT_SIDYour Twilio Account SID (starts with AC)
TWILIO_AUTH_TOKENYour Twilio Auth Token
TWILIO_FROMDefault sending number in E.164

---

Variables available

This node does not produce output variables.

---

Step-by-step setup
  1. Add your Twilio credentials to the environment or via /workspace/credentials.
  2. Add a Twilio SMS node after a condition that confirms lead.phone exists.
  3. Set to to {{lead.phone}}.
  4. Write a concise message under 160 characters to keep it one segment.
  5. 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.phone exists — 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.