Vapi not connecting to Google Calendar
# support
d
I set up my Vapi assistant to my google calendar exactly how the API documentation described to me. However, my assistant is telling me its not able to evaluate my calendar to set or view available appointments
v
Hi there! I'm sorry to hear you're having trouble with your Vapi assistant connecting to Google Calendar. To help troubleshoot this issue, could you please provide more details about: 1. What specific error message is your assistant giving you when it tries to access your calendar? 2. Which API endpoint configuration are you using for the Google Calendar integration? There have been reports of [incorrect API endpoint URLs causing connection issues](https://discord.com/channels/1211482211119796234/1336754090880798765). 3. How are you handling date and time formats in your setup? Date/time discrepancies are a common issue - are you specifying a timezone in your system prompt like
{{"now" | date: "%b %d, %Y, %I:%M %p", "America/New_York"}}
? 4. Have you checked the JSON formatting in your webhook responses? Line breaks in JSON can cause Vapi to fail to process calendar data properly. 5. When did this issue start - was it working before, or has it never worked since setup? This information will help me provide more targeted troubleshooting steps! 🔍 Sources: - [Discord conversation about wrong endpoint URL](https://discord.com/channels/1211482211119796234/1336754090880798765) - [Discord conversation about JSON formatting issues](https://discord.com/channels/1211482211119796234/1334658296291921920) - [Discord conversation about date and time settings](https://discord.com/channels/1211482211119796234/1325196797102260304)
d
1. The error message my bot is telling me is, "It seems there was an issue checking for availability", or, "It seems there is a technical issue checking the calendar availability directly." 2 - 5. I just followed the way to set up my calendar system with my vapi assistant as described in this link: https://docs.vapi.ai/tools/google-calendar
k
if you have a call log, can you please provide the call ID so that we may investigate?
d
3e931f62-1f13-4b36-8304-0ee86aa1cb99
k
Hey Devin, I can take a deeper look into it. You add me as an editor. My email is mason.d@vapi.ai
We have resolved the issue. Please try again when time allows
d
i tried again and im still getting the same error
28417623-4879-4279-b855-37814e38be27
k
You add me as an editor. My email is [mason.d@vapi.ai](mason.d@vapi.ai) I'll take a look at it.
f
hey i have the same issue. Please ping me when you found a solution. Thanks in advance!!!
k
Hi Flogi, this is to let you know that your issue has been resolved and discussed in the general thread. You can find the details and outcome by checking your thread.
d
okay i added you @masondoberstein0
any updates?
the bot is now telling me the appointment has been booked but its not updating on my google calendar
k
It should work now. Add this to your check availability tool: Use this tool to check if the time asked for is available. We are in american/chicago timezone. All appointments are 1 hour long so the end time will be one hour after the end time. { "startDateTime": "{{startDateTime}}", "endDateTime": "{{endDateTime}}", "timeZone": "{{timeZone}}" } and add this to your create event tool: { "summary": "{{summary}}", "startDateTime": "{{startDateTime}}", "endDateTime": "{{endDateTime}}", "timeZone": "{{timeZone}}" } It will work now.
d
okay thank you
its not updating my google calendar for some reason. any idea why that is the case?
nope i got it. its just updating for october 5th 2023. is there a way for the bot to know the current day?
for some reason the bot is thinking it is October 4th 2023. Is there any way to fix this?
Also, how did you fix the bot? I would like to know so i can fix it myself if it ever happens again
k
Add this so it knows the current date and time: The current date and time is: {{"now" | date: "%b %d, %Y, %I%M %p", "America/Chicago"}} Change 'America/Chicago' to whatever timezone you are in. Your tool configuration code was wrong. The Vapi documents has all the answers.
d
where do i add that to?
the tool pompt?
if all i had to do was put it into the tool prompt its still not knowing what the current time/day/month/year is
k
Put it in your assistant prompt.
3 Views