google calendar
# support
s
I have a problem with my check availability tool with the Google Calendar. My appointment setter works great, but it keeps double booking...
v
To prevent double booking, ensure your assistant's system prompt and tool configuration enforce checking availability before booking. For example, in your assistant's configuration, use:
Copy code
json
"tools": [
  {
    "type": "google.calendar.availability.check",
    "name": "checkAvailability",
    "description": "Use this tool to check calendar availability before booking."
  },
  {
    "type": "google.calendar.event.create",
    "name": "scheduleAppointment",
    "description": "Use this tool to schedule appointments only after confirming availability."
  }
]
Tip: Update your system prompt to instruct the assistant to always check availability before creating an event. For more details, see the documentation on [Google Calendar integration](https://docs.vapi.ai/tools/google-calendar). Source: - [Google Calendar Integration Documentation](https://docs.vapi.ai/tools/google-calendar)
s
doesn't work....
c
Hi Shir Sharoni, Please try these focused checks to stop double-booking with the Google Calendar Check Availability tool: 1. Confirm workflow/order - System prompt must require: 1) ask date/time, 2) call checkAvailability, 3) present options, 4) wait user confirmation, 5) call create event only after explicit confirmation. See Google Calendar docs: https://docs.vapi.ai/tools/google-calendar 2. Verify tool setup - Both tools added to assistant: - google.calendar.availability.check — description: "Use this tool to check calendar availability before booking." - google.calendar.event.create — description: "Use this tool to schedule appointments only after confirming availability." 3. Ensure datetimes & timezone correctness - All datetime fields must be ISO 8601. - checkAvailability expects UTC input — convert user local times to UTC before calling the tool. - Ensure the tool metadata calendarId/timeZone match the calendar you’re checking. 4. Use explicit prompts & confirmations - Add explicit lines in system prompt instructing the model to wait for user confirmation after showing availability, e.g. "Do not call the create event tool until the user says 'yes' or 'confirm'." 5. Debugging steps if issue persists - Share one call_id where double-booking happened and the assistant/system prompt text. - Include the exact payloads sent to checkAvailability (startDateTime/endDateTime/timeZone) and the create event call. - We'll inspect logs for timezone/parameter mismatches.
s
Already done everything above... nothing worked 😵‍💫🫤
c
Hello, Thank you for providing all the details. I understand how frustrating it must be that the troubleshooting we tried for another user didn’t resolve the issue, can you provide these information, including: • Call ID where the double-booking occurred • Complete assistant configuration (system prompt + tool setup) • Exact tool payloads sent:
checkAvailability
parameters (startDateTime, endDateTime, timeZone) and
createEvent
parameters used • A clear description of expected vs. actual behaviorCalendar timezone and user’s local timezone Having this full context will help us investigate thoroughly and work toward a proper resolution. I completely understand the urgency, and we’ll prioritize getting this sorted out.