Set up google calendar check availability and book...
# support
m
Can someone please provide me with detailed instructions on how I can set this up? The assistant is having trouble checking availability.
v
Hi Mary! 👋 I understand you're having trouble with your assistant checking availability in Google Calendar. While I don't have complete information on the initial API setup, I can definitely help with the booking workflow, configuration options, and troubleshooting steps. ## Booking Process Overview According to the [Discord conversation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336719759965687923), the booking process involves these steps: 1. **Initial Inquiry**: Listen to the user's request and confirm your ability to assist 2. **Availability Check**: - If the user has no date preference, use
getSlotsOverNDays
to suggest the 3 earliest slots within a 3-day window - If the user specifies a date, use
getAvailabilityOnDate
to suggest 4 slots for that date (e.g., "Thursday 6th February: 10:15 AM, 10:30 AM, 10:45 AM, 11:00 AM") 3. **Confirmation**: Ask the user to confirm the date and time 4. **Booking**: Use
makeBookingtoCalendar
to book the appointment (time format should be 10:00 or 14:30) 5. **Confirmation and Call End**: If booking is successful, use the
endCall
tool ## Configuration Options To ensure accurate availability checks, consider these configuration options: 1. **Timezone Handling**: Include the current date and time in your prompt with the correct timezone. For example:
Copy code
{{ "now" | date: "%b %d, %Y, %I:%M %p", "America/New_York" }}
This helps prevent booking the wrong dates due to timezone issues, as mentioned in [this Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341859467884498976). 2. **Date and Time Formatting**: Use ISO format for appointment datetime parameters as noted in the [outbound sales documentation](https://docs.vapi.ai/examples/outbound-sales).
3. **Calendar Integration**: Connect your calendar in GHL to Vapi to provide accurate availability times and prevent double booking, according to [this conversation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336785070408732764). ## Troubleshooting Steps Since your assistant is having trouble checking availability, try these troubleshooting steps: 1. **Check Assistant Configuration**: Verify that the assistant ID is correctly configured and that the KnowledgeBase is properly linked. 2. **Review Date and Time Handling**: Ensure the assistant is correctly interpreting date and time formats. Try explicitly including the day name and using a consistent timezone. 3. **Check Model**: If the AI initially fails to call the availability checking tool, try using the "gpt-4o" model as suggested in [this thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337465172263960637). 4. **Enable Model Output in Messages**: Consider enabling the
modelOutputInMessagesEnabled
setting by sending an UPDATE request to the assistant. 5. **Increase Request Timeout**: The assistant request timeout is 5 seconds by default and can fail if API calls take too long. Is there a specific part of the setup process you're struggling with that I can help clarify further? Sources: - [Discord conversation about booking process](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336719759965687923) - [Discord thread about timezone handling](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341859467884498976) - [Outbound sales documentation](https://docs.vapi.ai/examples/outbound-sales) - [Discord conversation about calendar integration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336785070408732764) - [Discord thread about model selection](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337465172263960637)
v
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
2 Views