tools/function call not working properly
# support
h
Bad behaviour call id :44f34727-dfd1-4f00-b37a-28204ef3608d correct behaviour call id :7dc1d68b-169f-40e4-9723-3ef8f4d52b10 I'm experiencing some inconsistent behavior with my assistant's tool-calling and could use some help diagnosing it. Sometimes the model correctly calls a function, and other times it just speaks out the action instead of executing it. @Vapi @User @Shubham Bajaj https://cdn.discordapp.com/attachments/1383548515107602694/1383548516797911170/image.png?ex=685914b7&is=6857c337&hm=be43a179b8f52ff525f6bcab16e8b2a903b56b0c2129538931cb4b48cb3af9f5& https://cdn.discordapp.com/attachments/1383548515107602694/1383548517074866186/image.png?ex=685914b7&is=6857c337&hm=19df95f8a42973157bfb1e42052fd1c47d777bce8e3b64738f28f5c3cc74af50&
c
I have faced similar issue, i was able to come to some conclusions.
The function call for parameter less is just an empty body, which diverts all the request towards a single point. If you create multiple endpoints, and then use in vapi. Vapi will be able to use the appropriate function
There is a bug in vapi function call for sure,
This bug will be resolved if vapi move toward the open ai standard function format call.
h
@thepaddyuknow
h
No luck with this as well.
t
this isn't working at all, no triggering of function and discrepancies in the data spoken.
h
@Shubham Bajaj @User @Kyle Brunker
c
Hey Himanshu, can you book a quick call?
h
sure
Yesterday we suppose to have call at our booked slot but no one showed up. @Vapi@User @User
c
Weird, can you please book one more call?
s
Hey @Himanshu ! To help track down this issue, could you share again: • The Recent call ID • When exactly this happened (the timestamp) • What response you expected to get • What response you actually got instead This would really help us figure out what went wrong!
h
@Shubham Bajaj Bad behaviour call id :44f34727-dfd1-4f00-b37a-28204ef3608d (function didnt get call ) correct behaviour call id :7dc1d68b-169f-40e4-9723-3ef8f4d52b10(function call got call correctly ) response we expected to get- showphotos function should get called . response we actually got instead- she says "call showPhotos" but didnt call it . this has been seen in assistants multiple time . we are not sure if calling instruction through system prompt has been changed or what . @thepaddyuknow Please attach you recent call id as well .
c
Thank you for sharing those details. We will look into it and get back to you shortly
Just keeping you updated, we are still looking into this issue. Thank you for your patience
h
sure , Thanks
c
Replace this in your prompt:
Copy code
"DO NOT SPEAK "SHOWPHOTOS" ONLY CALL THE FUNCTION. 

EXAMPLES: 
trigger showPhotos function "album 9" whenever discussing slide 9 content about founders, employees or experience."
With this:
Copy code
"When you want to show a slide, call the showPhotos function with the appropriate album parameter. Never mention that you're calling a function - just call it silently and then describe what the slide shows."
h
sure will let you know the results
c
Let us know what the results are and we will standby in the meantime