https://retellai.com/?utm_source=discord&utm_medium=seo logo
Extract variables from DTMF user input
# ❓・bug-report
z
I havent found a way to get the DTMF in a variable
s
Hey @zero_1981 , There are two simple ways to capture and reuse keypad input from callers: Option 1: Save the input as a variable (recommended) After the caller enters digits, the agent can use the Extract Dynamic Variable tool to store that input (for example, an account number or PIN). Once saved, you can reuse it anywhere in the conversation using {{variable_name}}. Option 2: Use the automatically captured input DTMF input is captured automatically and added to the call transcript by default. You’ll see it appear like this: [User pressed digits: 1234#] The agent can reference this value directly when generating a response, without any extra setup. Best practice: If you’ll need the digits later in the flow (validation, API calls, confirmations), we recommend Option 1 so the value is reliably stored and reusable.