https://retellai.com/?utm_source=discord&utm_medium=seo logo
question if there was a flow the goes from 9-5, th...
# ❓・ai-evy-support
c
@AI Evy question if there was a flow the goes from 9-5, then there is a flow for after hours does retell know what time it is so then it knows
a
Thanks for tagging me @chicobolo. I'll look through relevant sources and get back to you shortly.
### Answer Yes, Retell AI provides system variables that give your agent access to the current time, which you can use to route calls between business hours and after-hours flows [(1) ]() . The platform offers these default system variables : -
{{current_time}}
- Current time in America/Los_Angeles (e.g., "Thursday, March 28, 2024 at 11:46 PM PST") -
{{current_time_[timezone]}}
- Current time in a specified timezone, for example:
{{current_time_Australia/Sydney}}
-
{{current_hour}}
- Current hour as a fraction in America/Los_Angeles (e.g., "3.5") -
{{current_hour_[timezone]}}
- Current hour as a fraction in specified timezone For routing between 9-5 and after-hours flows, you can use these time variables in your Conversation Flow transition conditions . The
{{current_hour}}
variable is particularly useful for creating time-based routing logic . You can also use the Code Node to implement more complex time-based logic if needed [(2) ]() . The Code Node allows you to write custom JavaScript that can evaluate the current time and return values that determine which flow path to take .
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Code Node](https://docs.retellai.com/build/conversation-flow/code-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.