madhav_89676
10/09/2025, 7:13 PMAI Evy
10/09/2025, 7:13 PMAI Evy
10/09/2025, 7:13 PM{{current_time}} instead of {{current_date}} [(2) ]() [(3) ]() . The correct dynamic variable for date and time information is {{current_time}} [(2) ]() .
If you've been using {{current_date}} or trying to manually specify dates in your prompt, switch to {{current_time}} [(2) ]() [(3) ]() . This is the proper dynamic variable that Retell AI provides for current date and time information [(2) ]() .
Some users have also found success using external time APIs (like timeapi) for more control over time zones and formatting , but start with {{current_time}} first .
**AI Evy
10/09/2025, 7:13 PMAI Evy
10/09/2025, 7:13 PMmadhav_89676
10/09/2025, 7:17 PMmadhav_89676
10/09/2025, 7:18 PMAI Evy
10/09/2025, 7:18 PMAI Evy
10/09/2025, 7:18 PM{{current time}} in your prompt [(1) ]() . However, the correct syntax requires an underscore, not a space . You should use:
{{current_time}}
The {{current_time}} variable provides the current time in America/Los_Angeles timezone by default . If you need a different timezone, you can specify it using the format {{current_time_[timezone]}} .
Common issues with date variables:
1. **Syntax error**: Using {{current time}} (with space) instead of {{current_time}} (with underscore) will cause the variable not to evaluate properly
2. **Browser caching**: Some users have reported that the date appears incorrect due to browser caching issues [(2) ]() . Try refreshing your browser or testing in a different browser (Safari vs Chrome)
3. **Test data variables**: Make sure you don't have conflicting test data variables set that might override the system time
Recommended prompt structure for time-aware logic:
# Context
current_time : {{current_time}}
business hours :
- Monday – Friday: 9:00 AM – 5:00 PM
- Saturday – Sunday: Closed
If the time is not in business hours, inform the customer that we are closed and end the call using this function "end_call"
[(3) ]()
Try correcting the syntax from {{current time}} to {{current_time}} and test again [(1) ]() .
**AI Evy
10/09/2025, 7:18 PMAI Evy
10/09/2025, 7:18 PM