### Answer
To connect your Retell AI agent to Cal.com and create functions like check availability, follow these steps:
## Step-by-Step Setup Process
Step 1: Access Functions in Your Agent
From the Retell AI dashboard, go to the Agents section and click on your agent [(1) ](
) . In the agent settings, find the Functions section on the right panel and click the + Add button to open the available functions list .
Step 2: Add Cal.com Functions
Select the pre-built Cal.com functions from the list :
- **Check Calendar Availability**: This enables your agent to check open time slots based on pre-scheduled intervals
- **Book an Appointment**: After finding the right slot, users can schedule appointments automatically
Step 3: Configure Cal.com Settings
A settings window will pop up for the selected function . Fill in the necessary fields with your Cal.com credentials and configuration details . After filling in the required information, click the Save button to finalize the function setup .
## Using in Different Agent Types
For Conversation Flow Agents:
You can use function nodes to call Cal.com functions [(2) ](
) . The function node is used to call a function, whether it's a pre-built function or a custom function . Pre-built functions include Check Calendar Availability and Book Calendar .
For Single/Multi-Prompt Agents:
Cal.com functions are available as pre-defined tools that include tools to check availability and book calendar [(3) ](
) . These are built-in tools available to all users with configurable triggers and parameters .
## Testing Your Setup
Use the Test button in the agent settings to ensure the Cal.com functions are working as expected [(1) ](htt