### Answer
To integrate Cal.com with your Retell AI agent, you'll need to add the Cal.com functions through the Functions section in your agent settings [(1) ](
) .
Here's the step-by-step process:
Step 1: Access Functions in Your Agent
From the Retell AI dashboard, go to the Agents section and click on your agent . In the agent settings, find the Functions section on the right panel and click the + Add button to open a list of available functions .
Step 2: Add Cal.com Functions
You'll need to add two functions:
1.
Check Calendar Availability - for checking available time slots [(2) ](
)
2.
Book Appointment - for booking appointments on the calendar [(3) ](
)
Step 3: Configure Each Function
For both functions, you'll need to provide [(2) ](
) [(3) ](
) :
- Tool name (must be unique within that agent)
- API Key from Cal.com
- Event Type ID
- Tool description
- (Optional) Timezone
Step 4: Get Required Credentials
To get your Cal.com credentials :
- **Event Type ID**: Open your created event type in Cal.com, look at the URL - the number in the URL is your event type ID
- **API Key**: Go to "Settings" in your Cal.com dashboard, navigate to "Developer" section, then click on "API Keys"
Step 5: Update Your Agent Prompt
Include explicit instructions in your prompt about when to invoke the functions . For example:
When user stated a time range, please check the calendar availability by calling the `check_calendar_availability` function and let user know whether that range work or not.
When user selected a slot, please book the appointment by calling the `book_appointment` function.