spotty-amberS

endCall doesnt work

It was already brought up here I think: https://discord.com/channels/1211482211119796234/1349827929571590234/1349827929571590234

The issue is the following:

when creating an assistant via the api and the goal is to enable the endcall function.

e.g sth like this:
{
"model": {
"provider": "openai",
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You are an assistant at a law firm. If the user is being mean, use the endCall function."
}
],
"tools": [
{
"type": "endCall"
}
]
}
}


then the created assistant (when checking the assistant in the vapi dashboard) has the endCall toggle still disabled. So this functionality must not work from the API. I tried to debug but cant figure out why. Even when I used the https://docs.vapi.ai/api-reference/assistants/create/~explorer and used the official structure, it worked only to create the assistant etc but not with the endCall function enabled.

timestamp is: 23 April, 7pm CET
Browse, explore, and try out API endpoints without leaving the documentation.
Was this page helpful?