Skip to content
Twilio

How to use Twilio

CommunicationCost: 1 credit + 1 per runTop 100 · #51Full guide

What it is for

The Twilio component lets you send SMS, place calls with spoken messages, look up phone numbers and download recordings from flooows. It is used for appointment reminders, codes or urgent alerts, and to react to incoming texts or calls.

The triggers (New Incoming SMS, New Call, New Recording, New Transcription and New Phone Number) are polling triggers: flooows checks your Twilio account every few minutes, so they are not instant.

Set up the connection

Authentication type: Username and password

  1. 1Open the Twilio Console (console.twilio.com).
  2. 2On the home page, find the Account Info block and copy the Account SID and Auth Token (click Show to reveal it).
  3. 3In flooows add a Twilio step and click "Connect".
  4. 4Paste the Account SID as the username and the Auth Token as the password, then save the connection.

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Send SMS: in "From" pick one of your Twilio numbers, in "To" map the customer phone in international format (+1...) and type or map the "Message".
  • Call Phone: set "From", "To" and the "Message" to be read aloud; choose "Voice" and "Language" to match your audience.
  • Phone Number Lookup: validate a number before sending messages.
  • Get Message and Download Recording Media use the SID returned by triggers or earlier actions.

Tips

  • •Always store phone numbers in E.164 format (with country code) to avoid errors.
  • •Trial accounts can only send to verified numbers.
  • •If you need near-instant SMS replies, keep the trigger polling interval in mind.

Triggers (5)

Events that can start a flow. Expand each one to see its fields.

New Incoming SMSPeriodic check1 fields
FieldTypeRequired
Phone NumberList (from your account)Yes
New Phone NumberPeriodic check0 fields

No fields to configure.

New RecordingPeriodic check0 fields

No fields to configure.

New TranscriptionPeriodic check0 fields

No fields to configure.

New CallPeriodic check0 fields

No fields to configure.

Actions (6)

Operations available as flow steps. Expand each one to see its fields.

Send SMS3 fields
FieldTypeRequired
FromList (from your account)Yes
ToTextYes
MessageTextYes
Phone Number Lookup1 fields
FieldTypeRequired
Phone NumberTextYes
Call Phone7 fields
FieldTypeRequired
FromList (from your account)Yes
ToTextYes
MessageLong textYes
VoiceFixed listNo
LanguageFixed listNo
Keys to DialTextNo
Ring TimeoutNumberNo
Get Message1 fields
FieldTypeRequired
Message SIDTextYes
Download Recording Media3 fields
FieldTypeRequired
Recording SIDTextYes
FormatFixed listNo
ChannelsFixed listNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

Authenticate error (20003)

The Account SID or Auth Token is wrong or the token was rotated; update the connection.

Invalid 'To' number

Use the full international format and verify the number on trial accounts.

'From' number cannot send SMS

Check the Twilio number has SMS capability for that country.

Insufficient balance

Top up your Twilio account.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps