Keypad input settings
Keypad input settings let an assistant receive dual-tone multi-frequency (DTMF) input from a caller. Use them to collect account numbers, menu selections, confirmation codes, and other keypad entries.
How keypad input works
The assistant processes keypad input when the configured timeout expires or the caller enters a delimiter, whichever happens first. Set the timeout to 0 when input should only be processed after the caller enters a delimiter.
When Vapi processes the collected digits, it adds them to the conversation as a user message, for example, User's Keypad Entry: 1234. The entry is available to the model and is saved in the call’s messages and transcript when transcript artifacts are enabled. See Handle sensitive input before collecting confidential values.
Keypad input receives tones from the caller. The DTMF tool does the opposite: it lets the assistant send keypad tones to another phone system, for example, when navigating an interactive voice response (IVR) menu.
Configure via Dashboard
Select an assistant
Open the Dashboard. Select Assistants, then select the assistant you want to configure.
API fields
Configure caller keypad input with keypadInputPlan when you create or update an assistant:
This example processes input after 2 seconds or when the caller enters #:
Handle sensitive input
Keypad input can collect general caller data, but sensitive values need additional controls. For payment information, follow the PCI compliance guide to isolate collection and prevent sensitive artifacts from being recorded or logged.
Troubleshoot keypad input
Keypad input does not have a dedicated call-ended reason. Review the call transcript and logs to confirm whether the assistant received and processed the caller’s input.