https://retellai.com/?utm_source=discord&utm_medium=seo logo
Urgent: Cal.com Booked on different day - Potentia...
# ❓・bug-report
a
Hi Support Team, Another issue has occurred. An appointment was booked for Thursday, October 2nd, at 10:40 AM, even though there were no available slots on Cal.com. It appears the system misinterpreted Wednesday's slots as Thursday's, sending a booking request to Cal.com for Thursday. However, Cal.com then booked the slot on Wednesday, a day with no available slots listed on their platform. We are unsure if this is a Retell or a Cal.com issue. It is imperative that we identify the root cause of these inconsistencies, as they are severely disrupting our booking service. find attached detailed log. https://cdn.discordapp.com/attachments/1423174290458808381/1423174290714656809/public_7.log?ex=68df59d8&is=68de0858&hm=ea1e7fad1a869adba395cc79af5966d9bbcc508ff31b47c0eb87f0cd56dab86b&
@User
s
Hi @akashcoast_36360
Can you check the timezones in Retell Call function and also in Cal.com calendar they should be same and also use current time variable before triggering calendar availability or calendar booking function
Also add in prompt current_time will tell AI current date and time so ai can convert time zone accordingly
Also ask timezone before checking availability and booking function
a
1. Timezone in the function call and cal.com are same. ( some of the booking are done properly, may be 20%, when we try testing also it works some times) 2. Is threre any log/metrics that will show us for these particular calls retell Agent used different timezone ? 3. I see function names are changed, is it new change on retell ? 4. Please find our prompt below, can you help us in re framing the prompt for the said current_time? → Offer two earliest available slots using check_calendar_availability (don't again ask for the day from user) -Mention only the start time of the slot. Each slot is 20 minutes. -if user ask for last slot then don't prompt the end time of the slot, for example if last slot is 4 PM, then you should book for 3:40 PM - ALWAYS try to present two earliest available slots and not a range of slots unless specifically asked. Eg: a) user: next week Response: 9:00 AM or 9:20 AM on Monday [if these are available] b) User: this week Response: 3:00 PM ot 3:40 PM on this thursday [given these are the earliest available slots → Book appointment using book_appointment with {{scheduling_email}} and phone number as {{clinic_phone_number}} https://cdn.discordapp.com/attachments/1423174290458808381/1424212192051466320/image.png?ex=68e32077&is=68e1cef7&hm=0bbf30839e4d2faff4616a4c9bea29c311e5dbd489279c02c30eb9ee52a92f31& https://cdn.discordapp.com/attachments/1423174290458808381/1424212192386879568/image.png?ex=68e32077&is=68e1cef7&hm=b75e1f378ca4c145fea5152d109872c460a956a39813978122f51812305f3999&
Hi @shahretell, Any update on this ?
Hi @shahretell @User Any update ?
s
Hi @akashcoast_36360
Yes you can check what have sent by going into those call transcript and in tool calls you will see tool result in different color highligted click on tool result you will find the result qnd click on tool name you will see what have been sent from llm
After reviewing your prompt it seems llm is getting confused and sending wrong request which causing them to fail
Can you share tool calls and results
a
attached logs with the bug has the tool call request and response pls check
s
Hi Akash check_availability_cal Result: {"error":"Time range is in the past"} 2025-10-01 17:08:37.488 This shows that llm doesn't know what time and date its checking for to avoid this use {{current_time}} before triggering availability check and book function
Include it in prompt before both calendar functions