### Answer
The issue you're experiencing is that your agent needs to use the "Check Calendar Availability" function before attempting to book appointments [(1) ](
) . Retell AI provides two separate Cal.com functions that work together for proper scheduling workflow [(1) ](
) [(2) ](
) .
To fix this, you need to:
1.
Add the Check Calendar Availability function to your agent alongside your existing Book Calendar function [(1) ](
) . This function retrieves open time slots instantly [(3) ](
) .
2.
Update your agent's prompt to explicitly define when to check availability first. The documentation recommends including this in your prompt [(1) ](
) :
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.