https://retellai.com/?utm_source=discord&utm_medium=seo logo
Issue with book_appointment function
# ❓・bug-report
b
Hi, I'm encountering an issue where my book_appointment function fails in the conversation flow, returning the following error: {"error":"Error calling Cal Event Type API: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 400\nresponse status: 400\nresponse data: [{\"message\":\"1\"},\"no_available_users_found_error\"]"} However, when I invoke the same function in a single prompt, it works perfectly without any errors. The API key and event ID are the same in both cases. How can I resolve this issue?
the check_availability works perfectly, to clarify
s
please check if your event type id is correct
b
it is
s
ok then please share transcript and tool call invocation and results
b
that's it
s
are you using {{current_time}} in the prompt and what's your timezone?
b
no, i do not use, but optional time zone is Us/La
s
you have to use {{current_time}} in your prompt
b
how to use it?
s
You can say something like: This is today's date and time: {{current_time}}. Please consider this in checking calendar availability and booking.
Something like that
b
how should i pass current date?
s
thats included in {{current_time}}
b
but i mean, how to passs {{current_time}}, so it know what this variable means?
through make.com?
s
it will automatically replace that variable with the current date and time in pst timezone.
that's just an internal variable of retell.
b
okey, that's great
i will check if it works real quaick
s
Just try and ask it what date and time it is
b
okey, that works just fine, is there any way of changing time zone of {{current_tme}}?
s
yes, just shared a video about how to do that with different timezones: https://discord.com/channels/1186424376300679209/1186462578310910112/1341520085944238092
b
okey, thank u very much