Trouble using Tools and Make
# support
d
Hey guys! Hope you’re doing good. I’ve been having trouble with tools and make webhooks ever since functions stopped being a thing. Can someone help me out? Or is anyone else having this issue?
v
@Diego Hello! I'm here to help you with any issues you're facing. It sounds like you're having trouble with tools and webhooks after some changes to functions. Could you please provide me with a bit more detail about the specific problems you're encountering? Once I have a clearer understanding, I'll do my best to assist you.
You can continue this conversation by mentioning me in the message.
d
@Vapi Sure thing! So I’ve been trying to create an appointment booking assistant with Vapi and Make, but it seems like even if Vapi is being able to trigger the webhooks, the information being generated isn’t going back to the assistant. How this problem looks is: - not being able to check current date and time, the assistant is using 2023 dates. - not being able to check for available time slots on my google calendar, which is an inconvenience because there’s no way to prevent double bookings or booking at times when I’m not available. - not being able to book appointments, so the assistant is not being able to fulfill it’s purpose.
v
@Diego It sounds like there are a few issues to address to get your appointment booking assistant working correctly with Vapi and Make (formerly Integromat). Let's tackle them one by one: 1. Checking Current Date and Time: - Ensure that the system you're using to check dates and times is correctly configured to use the current year. If you're using hardcoded values, update them to dynamic date retrieval methods. 2. Checking for Available Time Slots on Google Calendar: - Verify that the webhook from Vapi to Make is correctly passing the necessary information to query your Google Calendar. - Check the Make scenario to ensure that it's correctly processing the incoming data and querying Google Calendar for availability. - Make sure that the Google Calendar API is correctly set up with the right permissions to access your calendar events. 3. Booking Appointments: - Once the available time slots are identified, the Make scenario should be able to create an event in your Google Calendar. - Ensure that the response from Make (with the booking confirmation or available time slots) is correctly formatted and sent back to Vapi. - Confirm that Vapi is configured to receive the response and relay it back to the assistant. To troubleshoot these issues, you may need to: - Review the logs in both Vapi and Make to see where the process is breaking down. - Check the data format being sent and received at each step to ensure it's as expected. - Test each part of the process individually to isolate the problem. If you need specific guidance on how to configure the webhooks or troubleshoot the data flow, please let me know, and I can provide more detailed assistance.
d
@Vapi I do need specific guidance, since I’ve been trying practically everything I can find online and still haven’t been successful
s
@Diego what help do you require?
also do checkout this video

https://youtu.be/4fLe3sRH_uI

t
Hey @Diego were you able to find a solution for this issue? I seem to be having a similar issue where the make.com response is not being recognized or picked up by my Vapi assistant.
d
@Thasi Yes! I did find something that solved my problem. If you’re using webhooks, you should use this format on the body of the webhook response: { "results": [ { "toolCallId": "X", "result": "Y" } ] } For example: { "results": [ { "toolCallId": "call_VaJOd8ZeZgWCEHDYomyCPfwN", "result": "San Francisco's weather today is 62°C, partly cloudy." } ] }
t
Thank you very much for getting back. I just got my code to start working moments ago, turns out it was the data in the result field. I needed to format the data different fory vapi assistant to understand it
d
how You format it ? i have similiar issue