equal-aqua•16mo ago
vapi tool calling
hello. I am trying to use a tool to book an appointment, and it works when i test it on postman, but when i try it on vapi the assistant is not sending the parameters correctly and is also sending an unecessarily big json with the entire conversation wich causes an error on the make.com scenario. Can someone help?
10 Replies
@Amanda
Hello! I'm glad to assist you with your issue. It sounds like there might be a misconfiguration in how the assistant is set up to send parameters to your booking tool. To help you effectively, I'll need a bit more information about how you've configured the assistant to interact with the tool and the specific parameters that are required for the booking.
Could you please provide details on the expected parameters for the booking tool and how you've set up the assistant to send these parameters? This will help me understand where the issue might be and guide you towards a solution.
You can continue this conversation by mentioning me in the message.
equal-aquaOP•16mo ago
the expected parameters are the users name, phone number and the desired time and date for the appointment. The assistants instructions after requesting these informations are " Format the appointment to the format dd/mm/yyyy hh:mm. Use the 'faz_agendamento' tool to book the appointment, sending only name, phone number, and appointment as parameters." .
@Amanda
Thank you for providing the details. It seems that the assistant needs to be configured to send only the necessary parameters: the user's name, phone number, and the appointment time formatted as
dd/mm/yyyy hh:mm
.
To resolve the issue, you should ensure that the assistant is set up to collect these three pieces of information from the user and then format the appointment time correctly before calling the 'faz_agendamento' tool. The assistant should not include the entire conversation in the JSON payload, only the required parameters.
If you have access to the assistant's configuration or script, you can adjust the function that prepares the data for the 'faz_agendamento' tool to strip out any unnecessary information and format the data correctly.
If you're not sure how to make these changes or if the problem persists, please let me know, and I can provide further assistance. If needed, I can also help you with a sample code snippet to format the parameters correctly before sending them to the tool.conscious-sapphire•16mo ago
can you share the call id please.
conscious-sapphire•16mo ago
also please check this video on using tools calling, https://youtu.be/4fLe3sRH_uI
Henryk | AI Automation
YouTube
Tools in Vapi! A Step-by-Step Tutorial! || Functions Gone? No worries!
A quick tutorial on how to make tools work with the new 2.0 update within Vapi. Functions are now gone if you create a new assistant.
Copy the JSON object below, follow the video and you'll have it working in no time. If you need any help let me know :)
-----------------------------------------------------
🤘Calendly: https://calendly.com/luna...
equal-aquaOP•16mo ago
hi, here it is call_OPNjAP41UZMzhMQ1JuoATW8m
conscious-sapphire•16mo ago
this is tool call id not the call id.
please check the video once as well.
equal-aquaOP•16mo ago
So sorry for my mistake, here is the call id 8370d170-f3ce-491e-9852-ca3fe04f34d9. I'll watch the video as well, hope it helps.
wee-brown•16mo ago
Jannis Moore does a pretty detailed video into VAPI if you'd like the link
conscious-sapphire•16mo ago
hey you didn't result any result, can you please share a ss of your workflow and how your handling tool call and returning response to it.