My tool is not triggering. Any ideas as to why?
{
"type": "function",
"function": {
"name": "NameandNumber",
"strict": false,
"description": "Run this function when the user has provided their name and number. ",
"parameters": {
"type": "object",
"properties": {
"Name": {
"description": "The caller's name.",
"type": "string"
},
"Number": {
"description": "This is the caller's phone number",
"type": "string"
}
},
"required": [
"Number",
"Name"
]
}
},
"messages": [
{
"type": "request-start",
"blocking": false
}
],
"orgId": "I entered this in the backend",
"server": {
"url": "I entered this in the backend"
},
"async": true
}
I created this tool from the UI in Vapi. In my prompt I have it written to run this function once I collect their name. Also provided the server url (I did not add it in this message). Also, the endcall is not functioning properly. The agent says goodbye and does not hang up, I can reply with hi and the conversation starts over. I have enabled the predefined end call tool.
Any idea why this won't work for me? model is gpt 4.0 cluster