.mannankhan
11/24/2025, 7:07 AMAI Evy
11/24/2025, 7:07 AMAI Evy
11/24/2025, 7:08 AMtranscript_with_tool_calls field within the WebSocket payload [(2) ]() . To receive DTMF input in your Custom LLM WebSocket events, you need to set transcript_with_tool_calls to true in the config event you send to Retell [(3) ]() [(2) ]() .
Here's how to enable it:
In your initial config event sent to Retell, include:
json
{
"response_type": "config",
"config": {
"transcript_with_tool_calls": true
}
}
[(3) ]()
Once enabled, Retell will populate the transcript_with_tool_calls field in the update only events, response required events, and reminder required events sent to your server . The DTMF digits will appear within this transcript structure [(2) ]() .
The transcript_with_tool_calls field contains the transcript of the call weaved with tool call invocations, results, and DTMF input, precisely capturing when (at what utterance, which word) each event occurred [(3) ]() .AI Evy
11/24/2025, 7:08 AMAI Evy
11/24/2025, 7:08 AM.mannankhan
11/28/2025, 8:39 AM# press, or should new keypresses generate new events with updated time_sec?
2. Is there a way to reset/restart DTMF collection from webhook response to allow retry?
3. Should I avoid using # terminator and just collect 6 digits via timeout instead?
Currently using timestamp + content check to dedupe, but users can't retry because Retell keeps replaying the first failed attempt.
Any insights?AI Evy
11/28/2025, 8:39 AMAI Evy
11/28/2025, 8:39 AMAI Evy
11/28/2025, 8:39 AM# press or webhook-based retry mechanisms, the configuration options suggest that using digit limit without a termination key (your option 3) may provide more predictable behavior for fixed-length inputs like 6-digit codes [(2) ]() [(4) ]() .
The sources indicate that DTMF digits appear in the transcript_with_tool_calls field when using Custom LLM WebSocket [(1) ]() , but don't specifically address resetting DTMF collection state or handling retry scenarios from webhook responses.
I don't have information about:
- Whether DTMF collection "locks in" after the first termination key press
- How to reset/restart DTMF collection from a webhook response
- The exact behavior of replaying failed DTMF attempts
For your specific retry scenario, I recommend reaching out to Retell support for clarification on DTMF state management and retry handling:
- Visit [Contact Sales]()
- Visit [)
Would you like a general answer based on my knowledge instead?
**AI Evy
11/28/2025, 8:39 AM# or *) - lets users press a key to finish entering input, useful for variable-length information
2. Fixed digit length - automatically ends input after a specific number of digits, perfect for fixed fields
3. Timeout-based ending - if no input is received after a short period, input collection ends automatically (enabled by default)
Configuration in Agent Settings:
The DTMF options can be configured in the agent settings with parameters like [(3) ]() :
json
"user_dtmf_options": {
"digit_limit": 25,
"termination_key": "#",
"timeout_ms": 8000
}
For your specific case where you need 6 digits, you could configure [(4) ]() :
json
"user_dtmf_options": {
"digit_limit": 6,
"termination_key": "",
"timeout_ms": 2000
}AI Evy
11/28/2025, 8:39 AM.mannankhan
11/28/2025, 10:41 AMAI Evy
11/28/2025, 10:41 AMAI Evy
11/28/2025, 10:41 AMjson
"user_dtmf_options": {
"digit_limit": 6,
"termination_key": "",
"timeout_ms": 2000
}
[(2) ]()
However, they don't document mechanisms for programmatically resetting DTMF collection state or triggering a fresh collection session after the first one completes.
For your specific retry scenario, I recommend reaching out to Retell support for clarification on DTMF state management:
- Visit [Contact Sales]()
- Visit [)
Check out these potentially useful sources: [Capture DTMF input from user]() , [User dtmf input issue / IIssue with IVR Node Keypress Handling]()
Would you like a general answer based on my knowledge instead?AI Evy
11/28/2025, 10:41 AMAI Evy
11/28/2025, 10:41 AMAI Evy
11/28/2025, 10:49 AM.mannankhan
11/28/2025, 10:49 AMAI Evy
11/28/2025, 10:49 AMuser_dtmf_options parameters like [(2) ]() [(4) ]() [(3) ]() :
json
"user_dtmf_options": {
"digit_limit": 25,
"termination_key": "#",
"timeout_ms": 8000
}AI Evy
11/28/2025, 10:49 AMuser_dtmf_options.digit_limit) : Maximum number of digits the user can enter [(1) ]()
- Termination Key (user_dtmf_options.termination_key) : A specific key (such as #, *, or any digit) that signals the end of input
- Timeout (user_dtmf_options.timeout_ms) : Time in milliseconds to wait after the last digit before timing out
However, the sources don't address how to reset DTMF state mid-call or trigger multiple sequential DTMF collection sessions for retry scenarios like OTP verification.
For your specific issue where the same DTMF input is being replayed despite new keypresses, I recommend reaching out to Retell support:
- Visit [Contact Sales]()
- Visit [)
Check out these potentially useful sources: [Capture DTMF input from user]() , [User Keypad Input Detection (User DTMF) 2.0]()
Would you like a general answer based on my knowledge instead?
---
**AI Evy
11/28/2025, 10:50 AMAI Evy
11/28/2025, 10:50 AM