Google calender tool call doesnt work
# support
v
Hi there! I see you're having trouble with your Google Calendar tool calls for "check availability" and "create event" functions. I don't have information about the specific error messages you're seeing, but I can help troubleshoot based on your tool configurations for "my_booking_tool" and "Book-appointments-tool". Let me walk you through some troubleshooting steps: ### General Troubleshooting Steps 1. Check Tool Configuration - Verify that your tool is set to
synchronous
and not
async
if you're experiencing issues. According to [troubleshooting information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342315282198298729), setting the tool to synchronous mode can help resolve issues. - I notice your "my_booking_tool" is set to async execution, which might be causing problems. 2. Timezone Handling - For "my_booking_tool" using America/Los_Angeles timezone: Make sure you're including the current date and time in the prompt with the correct timezone. According to [troubleshooting guidance](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341859467884498976), this helps with timezone-related issues. - For "Book-appointments-tool" using Stockholm timezone: Ensure all datetime fields are properly formatted in ISO 8601 format as specified in your notes. 3. Response Format - Ensure that the JSON response from your tool calls is correctly formatted, including the proper
toolCallId
and
result
fields according to [troubleshooting information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775). - Check that there are no line breaks in the JSON string that could cause parsing errors. 4. Parameter Configuration - I notice both tools show "No properties configured" or "No messages configured" - you'll need to properly configure the parameters for these functions to work correctly.
- For the "check availability" function, you need parameters to specify the date/time to check. - For the "create event" function, you need parameters for event details like title, start time, end time, etc. 5. Debugging Information - Find the call ID in the Vapi dashboard by navigating to logs > calls and copying the ID to help with debugging, as suggested in [troubleshooting guidance](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1340404440892444742). - Examine logs for any errors or anomalies during the message handling process. ### Specific Function Troubleshooting For **Check Availability**: - Include explicit instructions in your prompt like: "Once the caller has provided their available date, checkAvailability and if the time is not available, provide the available date" as recommended in [troubleshooting steps](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334658296291921920). For **Create Event**: - Ensure date formatting matches what VAPI and Google Calendar expect according to [troubleshooting information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325856450391834817). - For "Book-appointments-tool", make sure all datetime values are in ISO 8601 format (e.g., "2025-01-04T07:40:38.314Z"). Would you be able to share any specific error messages you're seeing or describe exactly what happens when you try to use these functions? Sources: - [Troubleshooting Google Calendar tool call issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342315282198298729) - [How to troubleshoot check availability function in Google Calendar tool call](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334658296291921920) - [How to troubleshoot create event function in Google Calendar tool call](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325856450391834817)
- [Configuration details for my_booking_tool with America/Los_Angeles timezone and asynchronous execution](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341859467884498976) - [Configuration details for Book-appointments-tool with Stockholm timezone and ISO 8601 datetime format](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775)
k
Hey, really sorry for your experience. If possible, could you record a loom video describing this error/behavior or inconsistency in the dashboard with the steps to reproduce it? That way, I can share this with my team, and we'll take a look. We'll even try to reproduce the same so we can fix it for you.