Vapi agent not triggering Tool.
# support
v
I'm making an appointment booking agent and have the tools checkAvailability and bookAppointment. When the caller requests a time, the agent will say "I will check the availability for that time, just a moment". The prompt clearly instructs the agent to trigger the checkAvailability tool, except the agent doesn't. As I am waiting for the availability, it will ask if I need something, just ask. I say to it, "can you check the availability" and then it triggers and the make.com scenario runs. This also happens with booking the appointment. It will tell me it's going to finalize the booking but then nothing happens. When I say, can you finalize the booking, it triggers. How do I resolve this challenge of the agent not actually triggering the tool?
I should also add that this happens around 4/5 times.
s
call id please.
v
838c22bf-eb6d-4386-9a2e-0a37dfb27d7e
s
Was this resolved ?
s
it's related to the agent, instead prompt. 1. try triggering the tool in a new assistant with only tool cal instructions. This will help you understand it's related to prompting. 2. combine the related instructions for tool calls instead of spreading into multiple instructions which has same purpose.
current
"Let me check the availability for your requested date and time." Mandatory: "Please confirm the availability now by triggering the 'EinsteinAvailability' tool." Use the 'EinsteinAvailability' tool to check the requested time slots in 15-minute successions. Double-book children by joining their names into one appointment slot (e.g., Chloe/Bella).
change suggested
- Say: "Let me check..." - trigger the EinsteinAvailability tool Add instructions into right context e.g. (can be moved to single section)**Use the 'EinsteinAvailability' tool to check the requested time slots in 15-minute successions.** 3. First test assistant for tool call only then add the rest and observer how it goes. example: https://gist.github.com/bajajcodes/ff0bc6e126d4956fb422d47a397abeff
5 Views