VAPI Not calling Functions
# support
v
Hi, My assistant is not calling the functions as requested in the prompt. It is bypassing it and just giving random informations to the user. I am currently using GPT4.0-mini.
v
@Vivien Roggero I'm sorry to hear that you're experiencing issues with your assistant not calling functions as expected. To assist you better, could you please provide more details about the specific functions you're trying to call and the context in which they should be triggered? This information will help me understand the problem and provide you with a more accurate solution.
You can continue this conversation by mentioning me in the message.
v
Latest call log: 7ed0e0ee-9906-4176-af7a-adc66bcf43b4
Fucntion is a booking function that calls a Make.com endpoint. It should be called when someone try to book a call, and it will check availability.
Prompt extract: 7. Book the call with XXXXXXXX: When you have all this informations, use the setBooking function giving it the preferred date and time, the contactID {{contactID}}, the timezone {{timezone}} and the client details. If the 'setBooking' function returns a "System Error" message, direct them to book online at [XXXXXXXX.com/booking]. If the 'setBooking' function return "We couldn't book your appointment, here are some available times:", offer the alternative times to the client. When the call is booked properly say to the client: “I’m glad we could get this set up!”
s
@Vivien Roggero please add the function to the assistant first and then try to make call again it will work.
v
I have the function in the assistant.
@Shubham Bajaj it is randomly working. But the function is in the assistant, should I add it to the call in the API from make too?
s
No if you check your functions/tools are not linked to the assistant. By adding i mean link them to the assitant from the dashboard.
visit vapi dashboard > go to assistants > select assistant > functions tab > select required tools
then it will work as expected.
v
it is linked, that is what I said. What I am askling is if I need to put them again when I do an API call.
t
@Shubham Bajaj I am also facing similar issue. Few times the api request has all the payload but some times, the payload is missing
Also, the run of tools calls seems unpredictable
v
@Shubham Bajaj Any update on what could be done? VAPI is unusable for me without reliabilty in calling functions. Thanks
s
@Vivien Roggero can you record a loom video first linking tools to assistant and then make the call.
lmk how it goes.
@Thrinadh Reddy can you also shoot a loom video first linking the tools to the assistant and then try to make the call.
also do share the call ids.
t
Sure. I will send in some time
Couldn't record a call, but I here is a call that show the behavior: https://dashboard.vapi.ai/calls/7ed0e0ee-9906-4176-af7a-adc66bcf43b4 using an other assistant with the same function.
s
@Vivien Roggero the tool is linked correctly and it's not Vapi assistant is not calling tool instead because of your prompt so i suggest check vapi prompting guide.
v
The prompt is clearly working as it is calling the tool. The tools is not called only at random interval Had the case again today...
a
Hello. Im facing the same issue here, no matter how I modify the prompt or tool webhook it never triggers the tool, it was working perfect before updating functions to tools. Any help would be highly appreciated. In the images you can see where i instruct the assistant to call the trigger (i tried before collecting data and after), the webhook for the tool and the tool linked to the assistant. I've done a tone o calls and none have worked, previousle i was like 2 out of 10, and when functiones where available it was 100% success. The tool is a pretty simple one: collect contact data and send it to the webhook This is the id of one of the many calls i did testing it. f83ac8a1-78db-4e26-bfa5-9e0aa9dc60be It is also having a lot of problems capturing phone numbers, just keep asking the customer to repeat the number until the customer uses dashes to say the number (888 - 888 - 8888), strange because when i check the transcripts the phone numbers are captured correctly, anyone else having this issue? @User https://cdn.discordapp.com/attachments/1276408474426937439/1279220574895210506/image.png?ex=66d3a67f&is=66d254ff&hm=912607e102c2173a77faf4565f4483b8a069971652137cc0e3262a75500911c5& https://cdn.discordapp.com/attachments/1276408474426937439/1279220575172300882/image.png?ex=66d3a67f&is=66d254ff&hm=3deadab1f4bfded53fac22207a3c3a40857ef50aadc1284bfe55df388372fc8d& https://cdn.discordapp.com/attachments/1276408474426937439/1279220575486869504/image.png?ex=66d3a67f&is=66d254ff&hm=d94d03e9a23ac7d269a4e8e4da45c21302d46209fd073c4a7af809941eff9764& https://cdn.discordapp.com/attachments/1276408474426937439/1279220575746920479/image.png?ex=66d3a680&is=66d25500&hm=79dda5725d4c4992c06283d48c7afe818815d570945cb9ccb164081ff4cc0bcd&
s
please create a new support ticket.
If it's calling randomly then it is because of the prompt only.
2 Views