TheDocumentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
<Gather> verb collects DTMF tones during a call. <Say> can be nested within <Gather> to create an interactive IVR with text-to-speech.
Attributes
| ATTRIBUTE | DESCRIPTION | OPTIONS | DEFAULT |
|---|---|---|---|
action | URL where TeXML will send the gathered result and message history. Same method (GET/POST) as set for the TexML application is used. Transfers control of the current call to the TeXML file returned. | - | |
timeout | Time in seconds between digits before the <Gather> digits are sent to your action URL. Telnyx will wait until all nested verbs have been executed before beginning the timeout period. | 1 - 120 | 5 |
input | The input type for the gather action. | dtmf, speech, dtmf speech | dtmf |
speechTimeout | Time in seconds to wait after speech ends before timing out. | - | |
partialResultCallback | URL for sending partial gather results. | - | |
partialResultCallbackMethod | HTTP request type used for partialResultCallback. | GET, POST | POST |
profanityFilter | Whether to filter profanity from speech recognition results (camelCase format). | - | |
useEnhanced | Enables enhanced transcription, this works for models phone_call and video (camelCase format). | - | |
hints | Hints to improve transcription accuracy. | - | |
transcriptionEngine | Engine to use for speech recognition: Google, Telnyx, Azure, Deepgram, xAI, AssemblyAI | Google, Telnyx, Azure, Deepgram, xAI, AssemblyAI | - |
apiKeyRef | Reference to the API key for authentication. See integration secrets documentation for details. The parameter is optional as defaults are available for some regions. Used with Azure transcriptionEngine. | - | |
region | Region to use with the specified transcription engine. Required for Azure. See regions in transcription_engine_config. | - | |
finishOnKey | The set of digits, (0-9, *, #), that indicates the end of the gather. | # | |
numDigits | The number of digits to be gathered. | - | |
language | The language used. See RESTful API documentation for supported values. By default en-US. | en-US | |
validDigits | The set of valid digits for the gather action. | - | |
invalidDigitsAction | URL where TeXML will send the invalid gathered digits. The same method (GET/POST) as set for the TeXML application is used. Transfers control of the current call to the TeXML file returned. | - | |
minDigits | Minimum number of digits to be gathered. | 1 - 128 | 1 |
maxDigits | Maximum number of digits to be gathered. | 1 - 128 | 128 |
Child verbs/nouns
| NOUN/VERB | DESCRIPTION |
|---|---|
Say | |
Play |
Examples
Expected callbacks
Ifaction is set, a callback is sent when gather completes with the collected digits or speech.
See Gather Callback for the full payload reference.