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:
| Field | Type | Details | |
|---|---|---|---|
| Account SID | string | Required | ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| Auth Token | secret | Required | ${secrets.TWILIO_AUTH_TOKEN} |
${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 | |
|---|---|---|---|
| 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 | |
|---|---|---|---|
| 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 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 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.
- Twilio voice and SMS actions authenticate with your Account SID and Auth Token, so store the Auth Token as a secret rather than entering it in plain text.
- Enter both the From and To phone numbers in E.164 format, with a leading plus sign and country code, for example +19876543210.
- If you leave the ring timeout blank when placing an outbound call, Twilio rings the destination for 30 seconds before giving up.
- Send Twilio SMS delivers a plain text message by default, and adding a media URL sends it as an MMS instead.
- A voice session holds the call open for a multi-turn conversation and ends automatically after 50 turns or one hour unless you raise those limits.
- Voice detection treats audio below an energy level of 0.01 as silence, ends the caller's turn after 1.5 seconds of silence, and ignores speech bursts shorter than 300 milliseconds.