heche
03/19/2026, 10:08 PMAI Evy
03/19/2026, 10:08 PMAI Evy
03/19/2026, 10:08 PM{{current_time}} dynamic variable and set up equation-based transitions [(1) ]() [(2) ]() .
2. Add time-checking logic in your agent prompt [(2) ]() [(3) ]()
Include instructions like:
1. Check the {{current_time}}.
2. If the time is between 9:00 AM and 5:00 PM:
- Proceed to transfer the call using the function transfer_call.
3. If the time is outside of these hours:
- Inform the user that call transfers are only available between 9 AM and 5 PM.AI Evy
03/19/2026, 10:08 PMAI Evy
03/19/2026, 10:08 PMAI Evy
03/19/2026, 10:08 PMheche
03/19/2026, 10:18 PMAI Evy
03/19/2026, 10:18 PMAI Evy
03/19/2026, 10:19 PM{{current_time}} dynamic variable [(1) ]()
Retell AI provides system default dynamic variables including {{current_time}} which shows the current time in America/Los_Angeles (e.g., "Thursday, March 28, 2024 at 11:46:04 PM PST") .
If you need a different timezone, use {{current_time_[timezone]}} format, for example {{current_time_Australia/Sydney}}.
2. Add explicit tool-calling conditions in your prompt [(2) ]()
In your state prompt or general prompt, include clear instructions about when to call the transfer tool. Retell recommends giving explicit trigger conditions for each tool with clear "call TOOL_X when…" rules and exact tool names.
Example prompt section:
Current time: {{current_time}}
Tool Usage Instructions:
- Only call the transfer_call tool if the current time is between 9:00 AM and 5:00 PM PST
- If the time is outside business hours (before 9:00 AM or after 5:00 PM) , inform the caller that transfers are only available during business hours and offer to take a message or schedule a callbackAI Evy
03/19/2026, 10:19 PMdefault_dynamic_variables in your Retell LLM configuration as key-value pairs that get injected into your prompt.
Important note: This approach relies on the LLM following your prompt instructions. If you find the tool is still being called outside business hours, you may need to strengthen your tool-calling instructions or add conversation examples to fine-tune the behavior. [(2) ]()AI Evy
03/19/2026, 10:19 PMAI Evy
03/19/2026, 10:19 PM