https://retellai.com/?utm_source=discord&utm_medium=seo logo
u
Hello, We've recently been experiencing issues with cal.com calendar availability and cal.com calendar bookings. Some of our agents have been messing up on these functions I can provide a call id if needed.
Call id is call_fc55cea6124505e24d04d18e279
l
Have you been able to resolve this
u
No we have not
l
I’d be happy to take a closer look and help troubleshoot where things might be going wrong. Could you confirm if this is happening with all agents or just specific ones? Also, do you want me to directly check your Cal.com setup, or would you prefer I guide you step by step to fix it? That way, I can better scope the work and see the best way to support you.
u
This happens with all agents. I would prefer to have some guidance on the step by steps to improve our cal.com setup
o
Hello @.navigator can you share what problem you are facing
What error are you seeing?
"time": "two weeks from now Monday 9:00 AM",
Copy code
{
  "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},\"Invalid event length\"]"
}
That is one of the errors we are getting. So when the user says two weeks from now, we get that error
l
Since this is happening for all agents, I’ll walk you through a short step-by-step checklist you can run now to isolate and fix the issue. Or preferably we talk in dm
o
Did you give your agent what is the current time today ?
If not give your agent the current time and it will be fixed
for example
put this in your prompt
## Context Today is : {{current_time_America/New_York}}
Change your time zone based how you want, in this format` {{current_time_[timezone]}} for example: {{current_time_Australia/Sydney}}`
u
Hey yushoo I'd love to get a step by step. It's fine to do it in this chat since I can always reference back to it
I'll change up the agent we have to reflect this and run a test. I'll post the results here once I've tested it out
Hello Omar, will I need to input the current time as a dynamic variable each time we make a call? I tested by not adding in a value for the dynamic and adding one in. When not adding one in - I received an error of no bookings available When adding in a current time of "Monday, Sept 22" I received the following: {"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},\"no_available_users_found_error\"]"}
o
Don't put the current time manually use the variable This is a built in variable that will have the today day date and time
make sure you put the correct time zone for the variable and the function it self
l
Alright , you can messages me I can’t seems to be able to message you
u
Testing now. I'll get back you you in a bit
Sorry for the delay. This seems to have fixed the issue Thank you!
o
You are welcome .