arina_06888
08/26/2025, 5:14 PMAI Evy
08/26/2025, 5:14 PMAI Evy
08/26/2025, 5:15 PM1427703 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:
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.AI Evy
08/26/2025, 5:15 PMAI Evy
08/26/2025, 5:15 PMAI Evy
08/26/2025, 5:15 PMarina_06888
08/26/2025, 5:18 PMAI Evy
08/26/2025, 5:18 PMAI Evy
08/26/2025, 5:18 PMbook_appointment_cal tool configuration includes the necessary parameters for successful booking [(2) ]() [(3) ]() :
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 :
When user selected a slot, please book the appointment by calling the `book_appointment` function.AI Evy
08/26/2025, 5:19 PMbook_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?AI Evy
08/26/2025, 5:19 PMAI Evy
08/26/2025, 5:19 PMarina_06888
08/26/2025, 6:46 PMAI Evy
08/26/2025, 6:46 PMAI Evy
08/26/2025, 6:47 PMCall 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.AI Evy
08/26/2025, 6:47 PMAI Evy
08/26/2025, 6:47 PMAI Evy
08/26/2025, 6:47 PMarina_06888
08/26/2025, 6:58 PMAI Evy
08/26/2025, 6:58 PMAI Evy
08/26/2025, 6:58 PM"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:
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:
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"
}AI Evy
08/26/2025, 6:58 PMlocation.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.AI Evy
08/26/2025, 6:58 PMAI Evy
08/26/2025, 6:59 PMarina_06888
08/27/2025, 11:36 PMAI Evy
08/27/2025, 11:36 PMAI Evy
08/27/2025, 11:37 PMWhen 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.AI Evy
08/27/2025, 11:37 PMAI Evy
08/27/2025, 11:37 PMAI Evy
08/27/2025, 11:37 PMarina_06888
08/27/2025, 11:52 PMarina_06888
08/27/2025, 11:57 PMAI Evy
08/27/2025, 11:57 PMAI Evy
08/27/2025, 11:57 PMWhen 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 :
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.AI Evy
08/27/2025, 11:57 PMAI Evy
08/27/2025, 11:57 PMUser 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.AI Evy
08/27/2025, 11:57 PMarina_06888
08/28/2025, 12:40 AMAI Evy
08/28/2025, 12:40 AMAI Evy
08/28/2025, 12:41 AMAI Evy
08/28/2025, 12:41 AMWhen 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.AI Evy
08/28/2025, 12:41 AMAI Evy
08/28/2025, 12:41 AMarina_06888
08/28/2025, 1:08 AMAI Evy
08/28/2025, 1:08 AMAI Evy
08/28/2025, 1:08 AMAI Evy
08/28/2025, 1:08 AMAI Evy
08/28/2025, 1:08 AM