Send Twilio Voice Message
Plays a text-to-speech message on an active Twilio voice call, optionally gathering the caller's reply. Use it to drive a voice conversation from a flow.
What it does
- Speaks the supplied message to the caller using Twilio text-to-speech.
- Can gather the caller's keypad or speech input, or simply play a message.
- Can hang up the call when needed.
Inputs
| Name | Type | Description |
|---|---|---|
| Message | String | Twilio Text-To-Speech Message |
| Keypad Only | Optional Boolean | Restrict gathered input to keypad (DTMF) digits only |
| Timeout | Optional Number | Seconds to wait for the caller's input before continuing |
| Use Experimental Speech Model | Optional Boolean | Use Twilio's experimental speech-recognition model |
| Hints | Optional String | |
| Gather User Input | Optional Boolean | If true, interrupt and gather user input (default). Set it to false to only say a message. |
| Hangup | Optional Boolean | If set to true, hang up the call, no-op otherwise. |
| External Id | String | Twilio Call Sid |
| Account Sid | String | Twilio Account Sid |
| Flow Id | String | DigitalGenius Flow Id |
| External Account Key | String | DigitalGenius Flow External Account Key |
| Environment | String | DigitalGenius Environment Possible values: EU, US, Dev, QA. |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Action result |
Notes
- It acts on an existing Twilio call identified by the External Id (Call Sid) and Account Sid.
- Set Gather User Input to false to only play a message; set Hangup to true to end the call.