neerajjoshi_
07/30/2026, 3:03 PMAI Evy
07/30/2026, 3:03 PMAI Evy
07/30/2026, 3:04 PMis_business_hours) and use it in transition conditions or prompts to control tool execution. [(1) ]() However, note that Retell AI supports dynamic variables as strings, not as booleans. [(2) ]()
Best Approach:
1. Set a string variable (e.g., business_hours_active) to "true" or "false" based on the current time
2. Use equation-based transition conditions to check the variable before allowing the flow to reach nodes that call the tool [(3) ]()
3. In prompts, reference the variable to guide the LLM's behavior
Example in Conversation Flow:
- Use a Logic Split or transition with an equation condition like {{business_hours_active}} == "true" before the tool-calling node
- If false, route to an alternative path that skips the tool
Setting Time-Based Variables:
You can leverage system variables like {{current_hour}} or {{current_time}} to calculate whether you're in business hours, then store the result in a custom dynamic variable. [(1) ]()
In Prompts:
Include instructions like: "If {{business_hours_active}} equals 'false', do not mention or use the booking tool." [(3) ]()
The key is treating your boolean as a string value and using equation conditions in your conversation flow transitions to control which nodes (and therefore which tools)AI Evy
07/30/2026, 3:04 PMAI Evy
07/30/2026, 3:04 PMneerajjoshi_
07/31/2026, 9:12 AMAI Evy
07/31/2026, 9:12 AMAI Evy
07/31/2026, 9:12 AM{{business_hours_active}})
3. Set the condition to only allow activation when appropriate
Example equation conditions:
- {{business_hours_active}} == "true"
- {{current_time}} > 9 AND {{current_time}} < 18
Evaluation order matters:
When transition checks run, the evaluation order is:
1. Always edge (if present)
2. Equation conditions - evaluated deterministically before prompt conditions
3. Prompt conditions - evaluated by the LLM alongside global node entry conditions
4. Else edge
5. Stay in current node
Since equation conditions are evaluated before prompt conditions, placing an equation condition on your global node will block its activation when the condition is false.
Key point: Equation conditions can only reference dynamic variables, so ensure your time-based logic sets a variable like {{business_hours_active}} before the global node evaluation occurs.AI Evy
07/31/2026, 9:12 AMAI Evy
07/31/2026, 9:12 AMneerajjoshi_
07/31/2026, 9:37 AMAI Evy
07/31/2026, 9:37 AMAI Evy
07/31/2026, 9:38 AMAI Evy
07/31/2026, 9:38 AMAI Evy
07/31/2026, 9:38 AM