https://retellai.com/?utm_source=discord&utm_medium=seo logo
{{current_time_America/Los_Angeles}} doesn't work.
# ❓・bug-report
u
Hi team. I'm using conversational flow and I have a condition that checks if the office is opened or not. (screenshot shows the condition) When testing the agent I manually set the variable {{current_time_America/Los_Angeles}} inside the "Dynamic Variables" to:
Copy code
Thursday, March 28, 2024 at 4:22:04 PM
which means that the office is opened. However, it goes to the "Else" route instead. Any idea why? Thanks.
@User I have the dynamic variable on the agent prompt as well btw.
I even asked the agent what time it is, but it still couldn’t provide the date—even with the {{current_time_America/Los_Angeles}} variable included multiple times in the prompt and nodes.
r
Change your prompt to: Current time is : {{current_time_America/Los_Angeles}}
u
I obviously already have that mate.
l
{{current_time_America/New_York}} isn't working me either. giving PDT instead of EDT..
u
@User please let me know your take on this.
I think the bug is actually related to the condition node it self because it feels like is always going to the Else route
s
Hi @_jota_ thank you for reaching us. Use Retell’s Time Format – Replace {{current_time_America/Los_Angeles}} with Retell’s built-in time variable (e.g., {{current_time}} or {{now}}). Simplify Condition – Compare time only (e.g., 4:22 PM vs. full date string). Test Hardcoded – Temporarily set time = "4:22 PM" to confirm the condition works.
u
Thans @shahretell . How do you check the timezone in account settings? I don't see the option.
@shahretell I did all of that but the problem is not even with the time variable. It's with the condition/logic split node
I have multiple instructions for the agent on how to know if the office is open or closed. But when the conversation goes to the logic split node, where it needs to decide if it goes to the "office opened" route or "office closed" route, it doesn't understand what to do next. It's like it doesn't know anything from the prompt. For the conversation to get out of that logic split node, I need to tell the agent that the office is open or closed so that it can choose a path to go to. Any idea why? Am I doing something wrong? @User @shahretell
@eviewang_ would be great to get your take on this
It just gets stuck
Hey @hy4409 , do you have any idea why this is happening?
e
you dont need to set dynamic variables any more