vapi tool calling
# support
a
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?
v
@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.
a
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." .
v
@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.
s
can you share the call id please.
also please check this video on using tools calling,

https://youtu.be/4fLe3sRH_uI

a
hi, here it is call_OPNjAP41UZMzhMQ1JuoATW8m
s
this is tool call id not the call id.
please check the video once as well.
a
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.
d
Jannis Moore does a pretty detailed video into VAPI if you'd like the link
s
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.