progremir
08/08/2024, 7:00 PMpython
{
...
"tools": [
{
"type": "voicemail",
"async": False,
"messages": [
{
"type": "request-complete",
"role": "assistant",
"content": voicemail_message,
},
],
}
],
"voicemailDetection": {
"enabled": True,
"provider": "twilio",
"machineDetectionSpeechThreshold": 5000,
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence",
],
},
"voicemailMessage": voicemail_message,
}Vapi
08/08/2024, 7:01 PMmachineDetectionSpeechThreshold to 5000 milliseconds and specified that the detection types include both machine_end_beep and machine_end_silence. Additionally, you've prepared a voicemail message to be used when the voicemail is detected.
If you need to make any changes or have any questions about these settings, feel free to ask!Vapi
08/08/2024, 7:01 PMVapi
08/08/2024, 7:01 PMShubham Bajaj
08/08/2024, 9:46 PMprogremir
08/09/2024, 5:19 AMa53fe9c7-4e21-4cbe-8460-f13d27024274progremir
08/09/2024, 12:04 PM8432759f-53d5-41dc-bf41-c336224ec579
https://cdn.discordapp.com/attachments/1271181213893398609/1271438827134652508/image.png?ex=66b7572e&is=66b605ae&hm=d58a5ac519d72e98cd5d2d65feb609f32ef29a847896513887e71fa5906c3859&Shubham Bajaj
08/09/2024, 7:31 PMprogremir
08/10/2024, 9:05 AMrequest-start. I have conditions on another tool's request-complete.progremir
08/10/2024, 9:08 AMpython
{
...,
"voicemailDetection": {
"enabled": True,
"provider": "twilio",
"machineDetectionTimeout": 30,
"machineDetectionSpeechThreshold": 2500,
"machineDetectionSpeechEndThreshold": 2000,
"machineDetectionSilenceTimeout": 5000,
"voicemailDetectionTypes": [
"machine_end_beep",
"machine_end_silence",
],
},
"voicemailMessage": voicemail_message,
"tools": [
{"type": "voicemail"},
],
}Shubham Bajaj
08/10/2024, 6:22 PMšµ 11:47:34:828 Tool Calls Finished. Results: [
{
"toolWithToolCall": {
"type": "voicemail",
"function": {
"name": "voicemail",
"description": "Use this function when you think the call has reached a user's voicemail."
},
"messages": [
{
"type": "request-start",
"content": "Hi Emir Amanbekov. My name is Kate. I'm the patient coordinator for discharged patients at Bortz Health Care of Warren.\nJust giving you a call to see if we can get you scheduled for your follow up video visit with one of our therapists.\nWe'd just like to check in and make sure everything is going alright since being discharged from our facility.\nIf you could please give me a call back whenever you get a chance. My number is (832) 200-6080. Thank you. Bye.",
"conditions": []
}
],
"async": false,
"toolCall": {
"id": "call_W6HhkzoEJAqbWAtIWvRFos7u",
"type": "function",
"function": {"name": "voicemail", "arguments": {}}
}
},
"toolCallResult": {
"result": "Success.",
"name": "voicemail",
"toolCallId": "call_W6HhkzoEJAqbWAtIWvRFos7u"
}
}
]
check the above empty conditions array, remove it then your message will be voiced out.progremir
08/11/2024, 1:39 PMconditions to voicemail tool. the recent config doesn't even contain messages if u look closely.
are you sure vapi doesn't set these values by default?Shubham Bajaj
08/12/2024, 3:08 PMShubham Bajaj
08/12/2024, 3:08 PMprogremir
08/12/2024, 5:41 PM18589df5-96a2-4854-9b8b-a3b990edbbf6progremir
08/13/2024, 9:10 AMprogremir
08/14/2024, 7:37 AMShubham Bajaj
08/14/2024, 7:38 AMprogremir
08/15/2024, 8:05 AMSahil
08/15/2024, 11:11 AMprogremir
08/15/2024, 11:13 AMSahil
08/15/2024, 11:16 AMprogremir
08/15/2024, 11:16 AMSahil
08/15/2024, 11:16 AMSahil
08/15/2024, 11:17 AMSahil
08/15/2024, 11:17 AMprogremir
08/15/2024, 11:17 AMprogremir
08/15/2024, 11:18 AMrequest-start message?Sahil
08/15/2024, 11:39 AMprogremir
08/15/2024, 11:47 AMVoicemailTool as an option in tools section. Are you guys deprecating it?Sahil
08/15/2024, 1:11 PMSahil
08/15/2024, 1:11 PM