Keypad Input

Keypad Input lets a voice agent receive the digits a caller enters on their phone keypad. Use it for input that speech recognition gets wrong on a noisy line, such as an account number or an order ID. It also covers menu-style shortcuts such as “press 1 to talk to a person”.
Every key the caller presses is stored in the DTMF_INPUT variable. A key press can also run a transfer action directly, without waiting for the agent to decide.
Keypad Input is off by default and is not available for chat agents. To send digits to a phone menu on an outbound call, use IVR Handling instead.
Setup
- Open the agent in the agent editor and select Settings in the header.
- In Global Settings, open Keypad Input.
- Turn on Enable keypad input.
- Set the Idle timeout and the Terminator.
- Optional: map keys to transfer actions under Actions.
- Select Publish.
Key sequences
The caller can press 0 to 9, *, and #. The first key interrupts the agent if it is speaking. Each following key is added to the same sequence.
A sequence is complete when either of these happens first:
Both settings apply to every key press on the agent. A caller who enters 48213# completes the sequence at once. A caller who enters 48213 and stops completes it 2 seconds later.
The agent receives a completed sequence as the caller’s turn and responds to it. Tell the agent in the prompt what the digits mean, for example “When the caller enters digits, treat them as the order ID.”
Set a longer Idle timeout for long numbers. Callers pause while they read an account number from a card, and a 2-second timeout can split it into two sequences.
Actions
An action mapping runs a transfer action as soon as the caller’s keys match it. The transfer starts immediately and does not wait for the agent’s response.
Attach the transfer action to the agent first. Only transfer actions attached to the agent appear in the list.
- In the agent editor, select Actions and attach the transfer action.
- In Global Settings → Keypad Input, select Add actions.
- Choose how the mapping matches:
- presses: the caller enters this exact key sequence, such as
1or99. - enters any: the caller enters this number of keys, from 1 to 32, whatever they are. Use it to transfer after a 6-digit account number.
- presses: the caller enters this exact key sequence, such as
- Choose the action to run.
- Select Add action for each further mapping, then Save.
Rules for mappings:
- A key sequence cannot include the terminator key.
- The agent waits before running a mapping whose keys start a longer one. With mappings for
1and12, pressing1runs the first only after the caller stops. - Keys pressed while a mapped transfer is in progress are ignored.
- Keys that match no mapping follow the key sequence rules and go to the agent.
Detaching a mapped action from the agent breaks the mapping. The mapping shows Action not attached to this agent. You cannot publish until you attach the action again or choose another one.
A mapped warm transfer can also ask the person receiving it to accept the call. The Accept key lets them accept with a key press, and the Announcement tells them which key to press. Both are settings on the transfer action, under Human Detection.
Call logs
Open the call in Logs → Call Logs to see what the caller entered and what it ran.
The DTMF_INPUT variable is one value for the whole call. Keys are added in the order they were pressed, with nothing between sequences. A caller who enters 1234, then later 5678, ends the call with DTMF_INPUT set to 12345678. The terminator key is never included.
Keys that ran a mapped transfer are left out of the variable while the call is in progress, so the agent and its actions do not see them. Call Logs and the post-call webhook include them.
To filter the list to calls where a mapped transfer ran, add an Action filter and choose the transfer action.
API
Through the API, Create Assistant and Update Assistant set keypad input and its action mappings. Send the whole keypad object on an update. Settings you leave out return to their defaults.
The post-call webhook includes DTMF_INPUT with the call’s other variables.
FAQ
Why did the agent not react to a key press?
Check that Enable keypad input is on and that the agent was published after you turned it on. The agent reads the keypad signals your phone carrier sends alongside the call (RFC 2833). It does not listen for key tones in the audio.
Can a key press run a custom action or end the call?
No. A mapping runs a transfer action only. For anything else, let the sequence reach the agent and tell it in the prompt which action to run for which digits.
Can I use the digits in a transfer or a custom action?
Yes. Use DTMF_INPUT wherever you use variables, such as a custom action’s request or a transfer’s phone number.
Can the person receiving a transfer accept it with a key press?
Yes. That is the Accept key on the transfer action, under Human Detection. The Announcement next to it tells them which key to press. Both are separate from Keypad Input and work whether Keypad Input is on or off.