Studio uses Widgets to represent various parts of Twilio's functionality that can then be stitched together in your Studio Flow to build out robust applications that require no coding on your part.
New to Twilio Studio? Check out our Getting Started Guide!
The Gather Input on Call Widget allows you to gather a user's keypress or voice input while they are on a call. This Widget will collect DTMF keypresses or text from speech recognition, which you can then save for your own data purposes or send along to another Widget to send your user down the right path.
{{first_name}}
, and SSML like <emphasis level="strong">Thanks for calling!</emphasis>
.https://api.twilio.com/cowbell.mp3
Studio Say/Play and Gather widgets now support SSML.
For a list of supported Amazon Polly and Neural voices and dialects that you can reference with Liquid variables when setting Message Language and Voice, see this list.
A number of additional options are available when configuring the Gather Input on Call Widget to accept DTMF keypresses as input.
Name | Description | Supported Values | Default |
---|---|---|---|
Stop gathering after __ seconds | Time in seconds that the Flow will wait for a caller to press a key | 0 - 30 seconds | 5 seconds |
Stop gathering on keypress? | Stop gathering digits after a user presses a specific key. If "no," the Widget will gather and submit all keypresses when the Stop Gathering After timeout is reached or the expected Number of Digits are collected | Yes or No | Yes |
Stop gathering on keypress ___ | The key that triggers data submission of a user's input | Digits 0-9, #, * | # |
Stop gathering after number of digits | The number of digits you are expecting from a caller. A caller's input will be submitted as soon as this number of keypresses has been reached. | 0-30 | N/A |
Note that the value set for Stop Gathering Keypress is a control key, meaning that its value is not submitted with the rest of the gathered digits. For example, if your Stop Gathering On Keypress is # and a user enters 123#, only 123 will be submitted with your data.
Consider the following options when configuring the Gather Input on Call Widget to accept a caller's speech as input:
Name | Description | Supported Values | Default |
---|---|---|---|
Speech recognition language | The language Twilio's speech engine will try to recognize | Select a supported language from the dropdown, or or enter a Liquid variable for dynamic selection | en-US (U.S. English) |
Speech recognition hints | A list of comma-separated values that give Twilio's speech engine specific words you expect to hear from your callers | comma-separated list of words (e.g., "sales, reservations, hours") | N/A |
Profanity filter | Redact profanity from speech results | True or False | True |
You may choose to enable a few advanced speech settings in the Gather Input on Call Widget by expanding the Advanced speech settings box in the Widget configuration panel.