https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do you integrate with cal
# ❓・ai-evy-support
a
@AI Evy how do you integrate with cal.com?
a
Thanks for tagging me @arina_06888. I'll look through relevant sources and get back to you shortly.
### Answer To integrate with Cal.com in Retell AI, you'll need to set up two main functions: Check Calendar Availability and Book Appointment [(1) ]() . ## Setup Process: 1. Create Cal.com Account and Event Type [(2) ]() - Visit cal.com to create an account - Navigate to "Event Types" section and click "New" - Configure your event settings and save 2. Get Required Credentials - **Event Type ID**: Open your created event type and look at the URL - the ID is the number in the URL (e.g., ` where
1427703
is your event type ID) - **API Key**: Go to "Settings" → "Developer" → "API Keys" in your cal.com dashboard 3. Add Functions in Retell AI [(1) ]() From the Retell AI dashboard: - Go to Agents section and select your agent - Access the Functions section and click + Add - Choose "Check Calendar Availability" and "Book Appointment" - Enter your Cal.com API Key and Event Type ID 4. Update Agent Prompt [(2) ]() Include explicit instructions for when to invoke the function:
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.
## Custom Fields Support: If you've added custom fields in Cal.com, you can now use them in Retell [(3) ]() . When using Cal.com functions, you can instruct the agent to collect specific information, and it will automatically display the collected data in the booking event . The integration enables AI voice agents to check live availability and book appointments instantly during voice calls [(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] New Dashboard, Warm Transfer, Cal.com Fields, and Partner Programs!](https://www.retellai.com/changelog/new-dashboard-warm-transfer-cal-com-fields-and-partner-programs) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy how do i make sure the appointment is booked and the confirmation email is going to be sent to the caller to the provided email?
a
Thanks for the follow-up, @arina_06888. I'll get back to you soon.
### Answer Based on the available sources, to ensure appointments are booked and confirmation emails are sent through Cal.com integration with Retell AI, you need to configure the booking function properly [(1) ]() . The
book_appointment_cal
tool configuration includes the necessary parameters for successful booking [(2) ]() [(3) ]() :
Copy code
javascript
{
  "type": "book_appointment_cal",
  "name": "book_appointment",
  "description": "Book an annual check up.",
  "cal_api_key": "cal_live_xxxxxxxxxxxx",
  "event_type_id": 60444,
  "timezone": "America/Los_Angeles"
}
To ensure proper booking and email confirmation: 1. Configure your Cal.com Event Type properly - Make sure your event type in Cal.com is set up to send confirmation emails to attendees [(1) ]() . 2. Update your agent prompt to explicitly instruct when to call the booking function :
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
3. Collect the caller's email - Your agent should be prompted to collect the caller's email address before attempting to book the appointment . The confirmation email functionality is handled by Cal.com itself once the booking is successfully made through the API. The
book_appointment_cal
tool will pass the collected information (including email) to Cal.com, which then handles sending the confirmation email according to your Cal.com event type settings . However, I don't have specific documentation about troubleshooting email delivery issues or detailed email configuration steps in the available sources. For more detailed email configuration guidance, you may want to: - Visit [Contact Sales]() - Visit [) Would you like a general answer based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Book Calendar](https://docs.retellai.com/build/book-calendar) [[2] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) [[3] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) ​
a
@AI Evy im having trouble integrating with cal.com. break down step nby step how my ai agent is able to schedule a caller through cal.com
a
Thanks for the follow-up, @arina_06888. I'll get back to you soon.
### Answer Here's a complete step-by-step breakdown for integrating your AI agent with Cal.com to schedule callers: ## Step 1: Create Appointment Booking Functions [(1) ]() Start by creating an AI agent tailored for appointment booking . Add the "Check Availability" and "Book Appointments" functions to your agent, making it ready to handle scheduling tasks . ## Step 2: Set up the Functions Connect your agent to a Cal.com account by entering the necessary credentials and event ID . Make sure to configure the correct time zone settings on both the Cal.com platform and the Retell AI dashboard . ## Step 3: Add Function Logic to Prompts Define the scenarios where the appointment booking functions will be triggered . For example:
Copy code
Call the 'Check Availability' function and provide available slots to the customer. When the customer selects a time, trigger the 'Book Appointment' function to confirm the booking.
## Step 4: Configure Cal.com Integration [(2) ]() From the Retell AI dashboard, go to the Agents section . Click on the agent you wish to configure (e.g., "Dentist Receptionist (Multi-Prompt) ") . In the agent settings, find the Functions section on the right panel . Click the + Add button to open a list of available functions . Choose "Check Calendar Availability" from the functions list and fill out the sections in the form . Then select "Book Appointment" and fill out the sections in the form . A settings window will pop up for the selected function where you fill in the necessary fields . After filling in the required information, click the Save button to finalize the function setup . ## Step 5: Test Your Agent Use the Test button in the agent settings to ensure the Cal.com functions are working as expected . ## Step 6: Monitor Appointments and Optimize [(1) ]() Once an appointment is booked, view it directly on the dashboard . Review and refine your agent's prompts to further enhance customer interactions and optimize results . ## Key Integration Benefits [(2) ]() Retell AI's integration with Cal.com combines the power of AI-driven automation with Cal.com's intuitive preset tools, enabling AI Voice Agents to autonomously manage scheduling . By integrating Cal.com's features, Retell AI Voice Agents can access real-time availability, check open time slots, and book appointments instantly . ## Important Configuration Notes Retell AI ensures all bookings are time zone-aware [(1) ]() . Configure the time zone settings in both the Cal.com account and the Retell AI dashboard for accurate scheduling . You can personalize the appointment booking process by a
dding dynamic variables to personalize prompts, such as including customer names or specific appointment details during the interaction . Following these steps will enable Cal.com's calendar scheduling tools for automated management in your Retell AI voice agent [(2) ]() .
​ To learn more, see the sources I considered: [[1] Automate Scheduling with AI Appointment Booking | Retell AI](https://www.retellai.com/features/book-appointments) [[2] AI Scheduling Assistant with Cal.com | Retell AI](https://www.retellai.com/blog/cal-coms-preset-tools) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy its not working still. here are the errors: Tool Invocation: book_appointment_cal tool_call_id: tool_call_b3a1cf { "time": "tomorrow 10 AM", "name": "Irina Oguyenko", "email": "" } tool_call_id: tool_call_b3a1cf {"error":"Error calling Cal Booking API: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 400\nresponse status: 400\nresponse data: [{\"message\":\"1\",\"data\":null},\"custom in 'responses': {email}email_validation_error\"]"}
a
Thanks for the follow-up, @arina_06888. I'll get back to you soon.
### Answer Based on the error you're seeing, there are two main issues preventing the Cal.com booking from working: ## Issue 1: Email Validation Error The error shows
"email": "<UNKNOWN>"
and
email_validation_error
. Your agent needs to collect a valid email address before attempting to book the appointment [(1) ]() . ## Issue 2: Time Format The time format
"tomorrow 10 AM"
may not be properly formatted for the Cal.com API. ## Solutions: 1. Update your agent prompt to collect email : Make sure your prompt explicitly instructs the agent to collect the caller's email address before booking:
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
2. Configure the book_appointment_cal tool properly [(2) ]() [(3) ]() : Ensure your tool configuration includes the timezone parameter:
Copy code
javascript
{
  "type": "book_appointment_cal",
  "name": "book_appointment", 
  "description": "Book an annual check up.",
  "cal_api_key": "cal_live_xxxxxxxxxxxx",
  "event_type_id": 60444,
  "timezone": "America/Los_Angeles"
}
3. Address the API structure issue [(4) ]() : Based on community feedback, Cal.com booking errors can sometimes be resolved by ensuring the location parameters are properly structured. You may need to explicitly prompt the agent to pass
location.type
and
location.integration
correctly . 4. Ensure your Cal.com setup is complete [(1) ]() : - Verify your Cal.com API key is correct - Confirm the Event Type ID exists and is properly configured - Check that your Cal.com event type allows bookings The core issue appears to be that the agent isn't collecting a valid email address from the caller before attempting the booking. Update your agent's prompt to explicitly request and validate the email address before proceeding with the appointment booking.
​ To learn more, see the sources I considered: [[1] Book Calendar](https://docs.retellai.com/build/book-calendar) [[2] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) [[3] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[4] Cal.com booking errors](https://discord.com/channels/1186424376300679209/1377380250954105064) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy im still not able to get scheduled on cal.com through my ai agent on retell. please help
a
Thanks for the follow-up, @arina_06888. I'll get back to you soon.
### Answer I understand you're still having trouble with Cal.com scheduling through your Retell AI agent. Let me provide a comprehensive troubleshooting approach based on the documentation. ## Complete Setup Verification ### 1. Cal.com Account Configuration [(1) ]() First, ensure your Cal.com setup is correct: - Visit cal.com to create an account - Navigate to "Event Types" section and click "New" - Configure your event settings and click "Save" ### 2. Get Required Credentials - **Event Type ID**: Look at the URL in your browser - the event type ID is the number in the URL - **API Key**: Go to "Settings" → "Developer" → "API Keys" in your cal.com dashboard ### 3. Add Functions in Retell AI [(2) ]() From your Retell AI dashboard: - Go to Agents section and click on your agent [(3) ]() - Access the Functions section and click + Add - Choose "Check Calendar Availability" and "Book Appointment" - Enter your Cal.com API Key and Event Type ID [(2) ]() - Add timezone configuration ### 4. Critical Prompt Configuration [(1) ]() Update your agent prompt to explicitly handle the booking process:
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.
## Key Configuration Requirements ### Time Zone Settings [(2) ]() Retell AI ensures all bookings are time zone-aware . Configure the time zone settings in both the Cal.com account and the Retell AI dashboard for accurate scheduling . ### Email Collection Your agent must collect the caller's email address before booking. Add dynamic variables to personalize prompts, such as including customer names or specific appointment details during the interaction . ## Testing and Monitoring - Use the Test button in the agent settings to ensure the Cal.com functions are working as expected [(3) ]() - Once an appointment is booked, view it directly on the dashboard [(2) ]() - Review and refine your agent's prompts to further enhance customer interactions and optimize results ## Integration Benefits [(3) ]() Retell AI's integration with Cal.com enables AI Voice Agents to access real-time availability, check open time slots, and book appointments instantly . If you're still experiencing issues after verifying these steps, I recommend: - Visit [Contact Sales]() - Visit [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[2] Automate Scheduling with AI Appointment Booking | Retell AI](https://www.retellai.com/features/book-appointments) [[3] AI Scheduling Assistant with Cal.com | Retell AI](https://www.retellai.com/blog/cal-coms-preset-tools) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @arina_06888. I'll get back to you soon.
### Answer If your agent isn't reaching the check availability node, this is typically a prompt engineering or agent configuration issue. Here are the key troubleshooting steps: ## Prompt Configuration Issues [(1) ]() The most common cause is improper prompt engineering. Your agent's prompt must explicitly instruct when to call the calendar function [(2) ]() :
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.
## Multi-Prompt Agent Configuration [(3) ]() If you're using a multi-prompt agent, ensure you've defined when to call the function properly. For example :
Copy code
3. Confirm the date, time, and timezone selected by user: "Just to confirm, you want to book the appointment at ...". Make sure this is a time from the available slots.
4. Once confirmed, call function book_appointment to book the appointment.
​ To learn more, see the sources I considered: [[1] Prompt Engineering](https://www.retellai.com/glossary/prompt-engineering) [[2] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[3] Build a multi-prompt agent](https://docs.retellai.com/build/single-multi-prompt/write-multi-prompt) [[4] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[5] Multiple calendar availability functions?](https://discord.com/channels/1186424376300679209/1397338184739979395) ​
## Conversation Flow Issues [(4) ]() If using Conversation Flow, check your transition conditions. You need proper transition conditions to move between nodes . The conditions can be either: - **Prompt conditions**:
User said something about booking a meeting
- **Equation conditions**: Mathematical conditions using dynamic variables ## Common Issues from Community [(5) ]() Based on community feedback, when using multiple calendar functions, you need to be very specific in your prompt about which calendar to use . One user noted they had to be specific about what to use as the start and end times when calling the function . ## Debugging Steps 1. Check your prompt specificity - Be explicit about when to invoke the calendar function [(1) ]() 2. Verify function configuration - Ensure your Cal.com API key and Event Type ID are correctly configured [(2) ]() 3. Test transition logic - If using multi-prompt or conversation flow, verify your state transitions are working [(3) ]() [(4) ]() 4. Review agent behavior - Test with specific time-related requests to trigger the function The agent should automatically call the check availability function when users mention specific times or ask about availability, but only if your prompts are configured to recognize and act on these triggers.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
a
Thanks for the follow-up, @arina_06888. I'll get back to you soon.
, it's recommended to use explicit instructions about when to call tools [(4) ]() :
### Answer If your agent is stuck at the "WHAT'S THEIR COMPANY?" node and not progressing to the availability check, this is likely a transition condition issue in your Conversation Flow setup. ## Common Conversation Flow Issues [(1) ]() Based on the available documentation, Conversation Flow agents require proper transition conditions to move between nodes . The constrained framework of Conversation Flow provides predefined pathways for interactions, but these need to be configured correctly . ## Transition Configuration Problems For Conversation Flow agents, you need to ensure your transition conditions are properly set up to move from the company information collection node to the calendar availability node . The system provides enhanced node and transition definitions to create seamless interactions . ## Community-Reported Issues There have been similar issues reported in the community where users experienced problems with appointment functions in Conversation Flow [(2) ]() . One user specifically mentioned that "Can't get check calendar availability or schedule appointment function nodes to work with conversational flow. Works great in multi-prompt" . ## Potential Solutions 1. Check your transition conditions - Ensure the transition from the company node to the availability node is properly configured [(1) ]() 2. Verify function node setup - Make sure your calendar availability function node is correctly configured with your Cal.com credentials [(3) ]() 3. Review prompt engineering - For complex tasks involving multiple nodes and tools
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.
[(3) ]() 4. Consider Multi-Prompt instead - Based on community feedback, if Conversation Flow continues to have issues with appointment functions, Multi-Prompt agents may work better for calendar integrations [(2) ]() The issue appears to be related to the transition logic between nodes in your Conversation Flow setup rather than the calendar function itself.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[2] Conversational flow - Appt functions](https://discord.com/channels/1186424376300679209/1353128993238548581) [[3] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[4] General prompt engineering guide](https://docs.retellai.com/build/prompt-engineering-guide) ​
a
@AI Evy am i able to speak to a human who can help me resolve this issue? nothing is working
a
Thanks for the follow-up, @arina_06888. I'll get back to you soon.
### Answer I understand your frustration with the Cal.com integration issues. For direct human support, you can: - Visit [Contact Sales]() [(1) ]() - Visit [) You can also work with certified partners who specialize in Retell AI integrations [(2) ]() . Many partners listed offer AI voice agent solutions and custom integrations that could help resolve your specific Cal.com scheduling issues . Based on the community discussions, some users have found success working with integration specialists when facing similar challenges with appointment booking functions [(3) ]() .
​ To learn more, see the sources I considered: [[1] Voice API: Integrate Phone AI Agents with Your System | Retell AI](https://www.retellai.com/blog/how-to-integrate-phone-ai-agents-with-your-existing-api-systems) [[2] Find a Certified Partner | Retell AI](https://www.retellai.com/partners) [[3] Retell -> Cal.com Integration Problem](https://discord.com/channels/1186424376300679209/1343641187185328252) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.