### Answer
To integrate Google Calendar with Retell AI, there are two main approaches documented:
1.
Use Cal.com Integration:
You can sync your Google Calendar with Cal.com and then connect Cal.com to your Retell AI agent. This lets your agent check availability, book appointments, and manage scheduling using Cal.com's API and event types. You’ll need to:
- Set up a Cal.com account and link your Google Calendar.
- Obtain your Event Type ID and API Key from Cal.com.
- Add the "Check Availability" and "Book Appointments" functions to your agent, entering these credentials.
- Define logic in your agent's prompts for when to check availability and book appointments [(1) ](
) [(2) ](
) .
2.
Direct Google Calendar Integration via Custom Function:
If you want to skip Cal.com, you can implement a custom function in Retell AI that interacts directly with Google Calendar’s API. This requires:
- Creating a webhook or server endpoint that handles Google Calendar API calls (authentication, reading/writing events) .
- Setting up a custom function in your Retell AI agent that calls your webhook URL and passes parameters as needed.
- Your custom function can then create events (with a summary) or check availability by communicating with Google Calendar [(3) ](
) [(4) ](
) .
Currently, there is no official step-by-step code sample for direct Google Calendar integration in the documentation—only guidance that you’ll need to use a middleware solution (like a server or automation platform such as n8n or Make.com) to connect Retell AI’s custom function to Google Calendar [(5) ](