**Error in JSON Code for creating a custom Voicemail function in VAPI
**
I'm facing this error message when I'm building a custom voicemail detection and message tool in VAPI, I'm sharing the screenshot here:
Here is the JSON Code:
{
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [
{
"type": "system",
"content": "You are calling leads about their recent inquiry. If you reach voicemail, use the leave_voicemail tool and mention their specific interest."
}
],
"tools": [
{
"type": "voicemail",
"function": {
"name": "leave_voicemail",
"description": "Leave a personalized voicemail message"
},
"messages": [
{
"type": "request-start",
"content": "Hi {{customer_name}}, this is {{agent_name}} from {{company}} following up on your inquiry about {{product_interest}}. I'd love to discuss how we can help. Please call me back at {{callback_number}} or I'll try you again tomorrow. Thanks!"
}
]
}
]
}
}
Please, please help me resolve this issue ASAP.
I'm currently using this webpage as a resource to build this voicemail tool out:
https://docs.vapi.ai/tools/voicemail-tool
Please let me know if I'm making any mistake or this is a bug issue from VAPI's side.
@zmguan,
@Shubham Bajaj,
@JerryMan0018,
@Mistermanu#000,
@goonybird. ,
@RMAGANTI6,
@Ethan Tan ,
@ANNATIS Dev
https://cdn.discordapp.com/attachments/1228667357849849856/1415224773796958238/image.png?ex=68c26e47&is=68c11cc7&hm=1eae794c050c55d475485c813d6398bda2afe880b58ead024fc94dec90d44603&