https://retellai.com/?utm_source=discord&utm_medium=seo logo
Cal.com availability issues
# ❓・bug-report
a
the response says “not available” even though the calendar clearly has open slots. Here’s the tool payload for both scenarios: Wednesday 10:00 AM and 8:30 AM (both 30-minute bookings). tool_call_id: tool_call_4452f3 { "start_time": "2025-11-12T10:00:00", "end_time": "2025-11-12T10:00:00" } Tool Result tool_call_id: tool_call_4452f3 {"availability_for_selected_time":"No available slots for specified time range, but there are available slots on time range that's nearby.","availability_nearby":[{"date":"Tuesday, 2025 November 11/11/2025 Greenwich Mean Time","availability_range":["From 10:00 AM to 5:00 PM"]},{"date":"Wednesday, 2025 November 11/12/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 6:30 PM"]},{"date":"Thursday, 2025 November 11/13/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 10:00 AM"]}]} Tool Invocation: check_availability_cal_initial_consultation tool_call_id: tool_call_788412 { "start_time": "2025-11-12T08:30:00", "end_time": "2025-11-12T08:30:00" } Agent: Let me check if Wednesday 3:29 Tool Result tool_call_id: tool_call_788412 {"availability_for_selected_time":"No available slots for specified time range, but there are available slots on time range that's nearby.","availability_nearby":[{"date":"Tuesday, 2025 November 11/11/2025 Greenwich Mean Time","availability_range":["From 8:30 AM to 5:00 PM"]},{"date":"Wednesday, 2025 November 11/12/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 6:30 PM"]},{"date":"Thursday, 2025 November 11/13/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 8:30 AM"]}]}
o
Hello @aslam.m , can you share the prompt using this function
a
Hi Omar, Here’s some additional context: 1 - The main availability check node uses the prompt: # PURPOSE: check calendar for the next 7 days. This part is working correctly — it successfully checks availability and presents the next two available time slots. 2 - The issue occurs when the user says they don’t want those times and asks to check an alternative. At that point, it moves to a second (duplicate) availability check node. The prompt for that node is: Tell the user you're checking the availability. If available: confirm this back to the user. Everything was functioning properly about a week ago, but now this second node fails — even though no changes were made to either the Retell AI setup or the Cal.com configuration.
@Omar Ashraf | Community Lead - any updates on this please?
b
Is this Round Robin Teams event @aslam.m ?
o
Hello @aslam.m , it looks like the start and the end is the same time that's what it returns not Available try change the prompt to check the availability for the user requested time and provide available slots. can you also tell me what llm are you using
a
@blekkk_ - I’m using the free version of Cal.com, so it’s not a Round Robin setup, just the standard booking function.
@Omar Ashraf | Community Lead - Thanks for the suggestion. This is where it gets odd — the payload has now updated correctly to check a 1-hour window (which works fine for my 30-minute appointment). However, for another appointment type that’s 90 minutes long, the payload is still only checking a 1-hour range and keeps returning “no available slot.” Here’s an example: Tool Invocation: check_availability_cal_oral_health_assessment tool_call_id: tool_call_3041e0 { "start_time": "2025-11-13T08:00:00", "end_time": "2025-11-13T09:00:00" } Tool Result tool_call_id: tool_call_3041e0 {"availability_for_selected_time":"No available slots for specified time range, but there are available slots on time range that's nearby.","availability_nearby":[{"date":"Wednesday, 2025 November 11/12/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 6:30 PM"]},{"date":"Thursday, 2025 November 11/13/2025 Greenwich Mean Time","availability_range":["From 9:00 AM to 4:30 PM"]}]} I’ve already updated the prompt to check availability for the requested time and show nearby slots, but it hasn’t fixed the issue. I’m using the Conversational flow agent with GPT-4.1-mini as the global LLM, and all the check availability nodes (as well as the ones before and after that section) are set to GPT-4.1.
o
can you share that updated prompt
the one you have on the function it self
a
I’ve added a screenshot of the prompt used in the function node — let me know what you recommend doing next or if I should tweak anything in the setup. https://cdn.discordapp.com/attachments/1436100304558100540/1436491444633337926/image.png?ex=690fcc69&is=690e7ae9&hm=4f984549786761ae806df4a55944cab9d04d3fe5e7081f587b85a87b737b18b8&
@Omar Ashraf | Community Lead - any updates on this please? As you can see from the payload below, it’s reverted back to checking the same start and end time again. I haven’t changed anything, so it seems to be behaving inconsistently. Tool Invocation: check_availability_cal_oral_health_assessment tool_call_id: tool_call_a69c89 { "start_time": "2025-11-13T11:00:00", "end_time": "2025-11-13T11:00:00" } Tool Result tool_call_id: tool_call_a69c89 {"availability_for_selected_time":"No available slots for specified time range, but there are available slots on time range that's nearby.","availability_nearby":[{"date":"Wednesday, 2025 November 11/12/2025 Greenwich Mean Time","availability_range":["From 11:00 AM to 6:30 PM"]},{"date":"Thursday, 2025 November 11/13/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 5:00 PM"]},{"date":"Friday, 2025 November 11/14/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 11:00 AM"]}]}
o
Hello @aslam.m , Hope you doing fine So the 30 mins is working right but the 90 doesn't ? You can prompt it to check in 2,3,.. hours span for example Like this
Check the availability for the user requested time and provide available slots , ALWAYS check for 2 hours span
a
@Omar Ashraf | Community Lead Here’s the payload for the 30-minute booking, which is working correctly: Tool Invocation: check_availability_cal_initial_consultation tool_call_id: tool_call_829fab { "start_time": "2025-11-12T08:30:00", "end_time": "2025-11-12T09:30:00" } Tool Result tool_call_id: tool_call_829fab {"availability_for_selected_time":[{"date":"Wednesday, 2025 November 11/12/2025 Greenwich Mean Time","availability_range":["From 8:30 AM to 9:30 AM"]}]} I’ve updated the 90-minute booking prompt as you suggested (“Check the availability for the user requested time and provide available slots, ALWAYS check for 2 hours span”), but it’s still not behaving as expected. Here’s the payload for the 90-minute booking: Tool Invocation: check_availability_cal_oral_health_assessment tool_call_id: tool_call_c0ae15 { "start_time": "2025-11-13T09:30:00", "end_time": "2025-11-13T10:30:00" } Tool Result tool_call_id: tool_call_c0ae15 {"availability_for_selected_time":"No available slots for specified time range, but there are available slots on time range that's nearby.","availability_nearby":[{"date":"Wednesday, 2025 November 11/12/2025 Greenwich Mean Time","availability_range":["From 9:30 AM to 6:30 PM"]},{"date":"Thursday, 2025 November 11/13/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 9:30 AM","From 10:30 AM to 4:30 PM"]},{"date":"Friday, 2025 November 11/14/2025 Greenwich Mean Time","availability_range":["From 8:00 AM to 9:30 AM"]}]} -- As you can see, it’s now checking for a 1-hour window instead of 90 minutes. Everything else is unchanged on my end. Would you like me to record a quick video showing the flow? I’d really appreciate getting this resolved as soon as possible.
this is working perfectly fine with me , if it's not working with you after you update this problem please recored this video so i can send it to the team Thank you
a
@Omar Ashraf | Community Lead - that was exactly it! I had the prompt set on the node instead of in the actual Cal.com function settings. I’ve updated it as you showed, and everything’s now working perfectly. Really appreciate your help and patience with this! 🙏
o
That is great to hear