Twilio
Communication integration · 7 node(s) including 2 trigger.
00Overview
Every field below is exactly what you see in the Flomation editor. Fields marked ● live picker let you choose from a list pulled live from your account — no IDs to look up.
01Connecting Twilio
Add your credentials as a Flomation environment secret, then pick them in each node. The connection fields are:
${secrets.your_secret}.02End
End Call
twilio/end_call · Action
Terminate an active Twilio voice call
| Field | Type | Details | |
|---|---|---|---|
| Voice Session ID | string | Required | ${session_id} |
Returns: tool_result, success
03Make
Make Call
twilio/make_call · Action
Initiate an outbound Twilio voice call
| Field | Type | Details | |
|---|---|---|---|
| Account SID | string | Required | ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| Auth Token | secret | Required | ${secrets.TWILIO_AUTH_TOKEN} |
| From Number (E.164) | secret | Required | +19876543210 |
| To Number (E.164) | string | Required | +441234567890 |
| Ring Timeout (seconds) | integer | 30 |
Returns: tool_result, call_sid, session_id, success, error
04Send
Send Audio
twilio/send_audio · Action
Send audio back to a Twilio voice call
| Field | Type | Details | |
|---|---|---|---|
| Voice Session ID | string | Required | ${session_id} |
| Audio (base64, mulaw 8kHz) | string | Required |
Returns: tool_result, success, audio_size_bytes, error
Send Twilio SMS
twilio/send_sms · Action
Send an SMS message via Twilio
| Field | Type | Details | |
|---|---|---|---|
| Account SID | string | Required | ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| Auth Token | secret | Required | ${secrets.TWILIO_AUTH_TOKEN} |
| From Number (E.164) | secret | Required | +19876543210 |
| To Number (E.164) | string | Required | ${from} |
| Message Body | text | Required | Hello from Flomation! |
| Media URL (MMS) | string | https://example.com/image.jpg |
Returns: tool_result, message_sid, success, error
05Voice
Voice Session
twilio/voice_session · Action
Hold a Twilio voice call open for multi-turn conversation
| Field | Type | Details | |
|---|---|---|---|
| Voice Session ID | string | Required | ${session_id} |
| Max Turns | integer | 50 | |
| Max Duration (seconds) | integer | 3600 | |
| Silence Threshold | string | 0.01 | |
| Silence Duration (ms) | integer | 1500 | |
| Min Speech Duration (ms) | integer | 300 | |
| Enable Barge-In | boolean | ||
| Greeting Audio (base64, mulaw 8kHz) | string | Wire from a TTS node to play a greeting on call start |
Returns: result, voice_audio_base64, voice_audio_format, turn_number, current_index, iterations, max_iterations, call_duration, total_turns, call_sid, stream_sid
06Triggers
Twilio SMS Trigger
trigger/twilio_sms · Trigger
Triggers a flow when an SMS message is received via Twilio
| Field | Type | Details | |
|---|---|---|---|
| Twilio Account SID | string | Required | ${secrets.twilio_account_sid} |
| Twilio Auth Token | secret | Required | ${secrets.twilio_auth_token} |
| Twilio Phone Number | string | Required | +15551234567 |
Returns: from, to, content, message_text, message_sid, agent_id, channel_type, channel_id
Twilio Voice Trigger
trigger/twilio_voice · Trigger
Triggers a flow when a voice call is received via Twilio
| Field | Type | Details | |
|---|---|---|---|
| Twilio Account SID | string | Required | ${secrets.twilio_account_sid} |
| Twilio Auth Token | secret | Required | ${secrets.twilio_auth_token} |
| Twilio Phone Number | string | Required | +15551234567 |
Returns: from, to, call_sid, stream_sid, session_id, agent_id, channel_type, channel_id, is_voice
07Notes & Limitations
Behaviours and constraints worth knowing before you build with these nodes.
- Phone numbers must be given in E.164 format, meaning a leading
+and country code (for example +14155552671), or the request is rejected. - Sending an SMS confirms only that Twilio has accepted the message for delivery, as the final handset delivery happens asynchronously and can still fail after the flow step has succeeded.
- SMS messages longer than 160 characters are automatically split into multiple segments that are each billed separately, and including emoji or other non-standard characters lowers that limit to 70 characters per segment.
- Trial accounts can only message or call phone numbers you have verified in the Twilio console, and outbound SMS carry a trial notice until the account is upgraded.
- The sending number must be a Twilio number on your account (or a verified caller ID) with the relevant voice or messaging capability enabled for the destination country.