https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am trying to integrate cal
# ❓・ai-evy-support
s
@AI Evy I am trying to integrate cal.com to my agent. How would I do that? I don't see the function button in my agent tabs
a
Thanks for tagging me @soybrayanxd0121. I'll look through relevant sources and get back to you shortly.
### 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:
Copy code
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.
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
If you're still not seeing the Functions button, make sure your agent is properly configured and you're looking in the right panel of the agent settings interface [(1) ]() .
​ To learn more, see the sources I considered: [[1] AI Scheduling Assistant with Cal.com | Retell AI](https://www.retellai.com/blog/cal-coms-preset-tools) [[2] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[3] Book Calendar](https://docs.retellai.com/build/book-calendar) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.