I have the following test assistant, that i want to try out dtmf using vapi to get some values for tool functions. here is the details.
Added details in comments.
v
Vapi
08/30/2024, 2:02 AM
@muazz
Great! I'd be happy to assist you with testing DTMF (Dual-Tone Multi-Frequency) using VAPI to get values for tool functions. Could you please provide me with the specific details or parameters you'd like to test? This will help me understand exactly what you're looking to achieve and how I can best assist you.
Vapi
08/30/2024, 2:02 AM
You can continue this conversation by mentioning me in the message.
m
muazz
08/30/2024, 2:02 AM
{
"id": "eac2da7e-xxxxxx-9451-xxxf44d1da",
"orgId": "dc865e19-xxxxxx-c-edb55de47962",
"name": "DTMF Demo Assistant",
"voice": {
"voiceId": "248be419-c632-4f23-adf1-5324ed7dbf1d",
"provider": "cartesia"
},
"createdAt": "2024-08-29T04:38:19.874Z",
"updatedAt": "2024-08-30T01:44:28.929Z",
"model": {
"model": "gpt-4o-mini",
"tools": [
{
"type": "dtmf",
"async": false,
"server": {
"url": "https://webhook.site/abc",
"secret": "your-server-secret",
"timeoutSeconds": 10
},
"function": {
"name": "dtmf_test_tool",
"parameters": {
"type": "object",
"required": [
"digit"
],
"properties": {
"digit": {
"type": "number"
}
}
},
"description": "get them digits from dtmf demo"
}
}
],
"messages": [
{
"role": "system",
"content": "This is a demo assistant to see how dtmf is processed by the system. It does not do anything else. Once the enter their digits, repeat the entered digits from function named dtmf_test_tool"
}
],
"provider": "openai",
"temperature": 0.3
},
"recordingEnabled": false,
"firstMessage": "This is a demo dtfm assistant, please type them digits!",
"transcriber": {
"model": "nova-2",
"language": "en",
"provider": "deepgram"
},
So far, I have no luck in getting a number/digits entered on softphone I use. Here is the 'end-of-call-report':
{
"message": {
"type": "end-of-call-report",
"endedReason": "customer-ended-call",
"transcript": "AI: This is a demo DTFM assistant. Please type some digits.\nUser: Okay.\nAI: Please enter your digits.\nUser: I have entered some digits.\nAI: I didn't receive any digits. Please enter the digits you would like to process.\n",
"summary": "The call involves an automated DTMF assistant prompting the user to enter digits. Despite the user claiming to have entered digits, the system did not receive any input. The assistant repeatedly asks the user to enter digits for processing.",
"messages": [
{
"role": "system",
"message": "This is a demo assistant to see how dtmf is processed by the system. It does not do anything else. Once the enter their digits, repeat the entered digits from function named dtmf_test_tool",
"time": 1724982377982,
"secondsFromStart": 0
},
{
"role": "bot",
"message": "This is a demo DTFM assistant. Please type some digits.",
"time": 1724982379044,
"endTime": 1724982382834,
"secondsFromStart": 0.79999995,
"source": ""
},
{
"role": "user",
"message": "Okay.",
"time": 1724982385694,
"endTime": 1724982386194,
"secondsFromStart": 7.45,
"duration": 1.5499997
},
{
"role": "bot",
"message": "Please enter your digits.",
"time": 1724982387294,
"endTime": 1724982388594,
"secondsFromStart": 9.05,
"source": ""
},
{
"role": "user",
"message": "I have entered some digits.",
"time": 1724982394434,
"endTime": 1724982396134,
"secondsFromStart": 16.19,
"duration": 2.9699993
},
muazz
08/30/2024, 2:03 AM
{
"role": "bot",
"message": "I didn't receive any digits. Please enter the digits you would like to process.",
"time": 1724982397103.999,
"endTime": 1724982401274,
"secondsFromStart": 18.859999,
"source": ""
}
],
"analysis": {
"summary": "The call involves an automated DTMF assistant prompting the user to enter digits. Despite the user claiming to have entered digits, the system did not receive any input. The assistant repeatedly asks the user to enter digits for processing.",
"successEvaluation": "false"
},
"durationMs": 25731,
"durationSeconds": 25.731,
"durationMinutes": 0.4289,
"call": {
"id": "2db67f4e-xxxxx-80a49b27eb44",
"orgId": "dc865e19-xxxxx-edb55de47962",
"createdAt": "2024-08-30T01:46:17.200Z",
"updatedAt": "2024-08-30T01:46:17.200Z",
"type": "inboundPhoneCall",
"status": "ringing",
"phoneCallProvider": "twilio",
"phoneCallProviderId": "CA414be12191ba0afe7d234d6b3aab3320",
"phoneCallTransport": "pstn",
"phoneNumberId": "f3c57a5a-25d5-44aa-b16c-0645e6c23b0a",
"assistantId": "eac2da7e-09ec-4595-9451-738c2f44d1da",
"customer": { "number": "+61xxxxx" }
},
"phoneNumber": {
"id": "f3c57a5a-25d5-44aa-b16c-0645e6c23b0a",
"orgId": "dc865e19-fe3b-4e1e-8e0c-edb55de47962",
"assistantId": "eac2da7e-09ec-4595-9451-738c2f44d1da",
"number": "+61xxxxx",
"createdAt": "2024-08-29T04:19:17.739Z",
"updatedAt": "2024-08-29T04:40:30.683Z",
"twilioAccountSid": "AC396a5e4ffexxxxececdd8438e0544e4",
"twilioAuthToken": "a2xxx2c55cxxx92027fe5c7",
"name": "Vapi Test Number",
"provider": "twilio"
},
"customer": { "number": "+61xxxxx" },
"artifact": { "messages": [], "messagesOpenAIFormatted": [] },
"timestamp": "2024-08-30T01:46:48.936Z"
}
}