Clarification on DTMF Tool Configuration
# support
v
You can continue this conversation by mentioning me in the message.
@Talel The JSON configuration you've provided is structured correctly as a tool definition, but it's important to note that this is a generic tool configuration and not specific to VAPI. To implement DTMF detection using a VAPI number, you would typically need to set up a webhook endpoint that VAPI can call when a DTMF event occurs. Here are the answers to your specific questions: 1. To add DTMF detection to your assistant, you would need to configure your VAPI application to handle incoming calls and use the appropriate VAPI action to collect DTMF input. The JSON you've provided looks like a tool definition, which is part of a model configuration, but it's not directly related to VAPI's configuration. 2. To ensure DTMF tones are properly detected and transcribed, you would need to use the
input
action in your VAPI NCCO (Nexmo Call Control Object) with the appropriate parameters. The
input
action allows you to collect DTMF tones, and you can specify parameters such as
timeOut
,
maxDigits
, and a
submitOnHash
flag to control the DTMF collection behavior. Here's an example of an NCCO that includes the
input
action for DTMF detection:
Copy code
json
[
  {
    "action": "talk",
    "text": "Please enter your pin followed by the hash key"
  },
  {
    "action": "input",
    "maxDigits": 4,
    "timeOut": 10,
    "submitOnHash": true,
    "eventUrl": ["https://your-webhook.url/events"]
  }
]
In this example, the
eventUrl
would be the endpoint where VAPI sends the DTMF input results. If you need further assistance with setting up your VAPI application to handle DTMF detection, please don't hesitate to ask for more information.
t
can you provide a full example on how to implement this ..
s
@Talel can you add description to it?
t
@Shubham Bajaj I was trying to catch Dialed Numbers though DTMF during incoming calls .. This requires a TwiML app on Twillio end .. Which is not possible if the number is bought from vapi .. During yesterday's OH , Sahil confirmed that this case should be done through an imported number from Twillio .. I still didn't perform this test. Do you confirm this appraoch ? ..
s
Yes.
15 Views