poison_br09
11/19/2025, 3:15 PMAI Evy
11/19/2025, 3:15 PMAI Evy
11/19/2025, 3:15 PM{{current_time}} is a system default variable that can be used in dynamic variables [(1) ]() . However, the chat summary is generated during post-call analysis and is not a place where you can directly inject dynamic variables [(2) ]() [(3) ]() .
The chat_summary field is part of the chat_analysis object, which contains information like sentiment, status, and summary generated after the chat ends [(2) ]() . Dynamic variables work in prompts, begin messages, tool configurations, call handling, and webhook URLs [(1) ]() , but the chat summary itself is an AI-generated text field based on the conversation transcript [(2) ]() [(3) ]() .
If you need the current date/time to appear in your chat interactions or to be referenced by the agent during the conversation, you should use {{current_time}} in your agent's prompts or begin message [(1) ]() . For timezone-specific time, you can use the format {{current_time_America/Los_Angeles}} .
If you're experiencing issues where {{current_time}} isn't populating correctly, some community members have reported similar problems [(4) ]() [(5) ]() [(6) ]() . As a workaround, you could pass your own date/time as a custom dynamic variable in the `retell_llmAI Evy
11/19/2025, 3:15 PMAI Evy
11/19/2025, 3:15 PMAI Evy
11/19/2025, 3:18 PMpoison_br09
11/19/2025, 3:21 PMAI Evy
11/20/2025, 5:03 AMpoison_br09
11/20/2025, 5:03 AMAI Evy
11/20/2025, 5:04 AM{{current_time}} is a system default variable that should work automatically without configuration [(1) ]() . The current time is provided in America/Los_Angeles timezone by default .
Where {{current_time}} works:
- Agent prompts
- Begin message
- Tool configurations (URLs, descriptions, property descriptions)
- Call handling (voicemail prompts, transfer instructions)
- Webhook URLs
Where it does NOT work:
{{current_time}} cannot be used directly in the chat summary [(1) ]() [(2) ]() [(3) ]() . The chat summary is AI-generated text created during post-call analysis [(2) ]() [(3) ]() .
Troubleshooting steps:
1. Verify placement - Ensure you're using {{current_time}} in a supported location (like your agent prompt or begin message) [(1) ]()
2. Check for timezone-specific format - If you need a different timezone, use {{current_time_[timezone]}} . For example: {{current_time_Australia/Sydney}}
3. Note about spaces - Spaces around the variable name are trimmed when evaluating
4. Workaround for chat summary - If you need the date/time to appear in analysis, reference it in your agent's prompt so the AI naturally includes it in conversation, which will then be reflected in the generated summary [(1) ]() [(2) ]()
5. Custom dynamic variable alternative - You can pass your own date/time as a custom dynamic variable in `retell_poison_br09
11/20/2025, 5:05 AMAI Evy
11/20/2025, 5:05 AMAI Evy
11/20/2025, 5:05 AM{{current_time}} in your agent's prompt, the output appears in the agent's spoken responses during the conversation [(1) ]() .
The dynamic variable gets replaced with the actual current time when the agent processes the prompt, and the agent will naturally reference that time information in its replies to the user .
For example, if your prompt includes:
"You are a helpful assistant. The current time is {{current_time}}. Use this information when scheduling appointments."
The agent will have access to the actual current time (e.g., "Thursday, March 28, 2024 at 11:46:04 PM PST") and can reference it in conversation .
Where you'll see the output:
1. Live conversation - The agent will speak responses that include time references based on the populated variable
2. Transcript - After the chat ends, you can retrieve the transcript via the API, which will show what the agent actually said [(2) ]()
3. Message history - The message_with_tool_calls array in the chat response will contain the agent's messages
The dynamic variable itself won't appear as "{{current_time}}" in the output - it gets replaced with the actual time value before the agent generates responses [(1) ]() .poison_br09
11/20/2025, 5:08 AMAI Evy
11/20/2025, 5:10 AMpoison_br09
11/20/2025, 5:10 AMAI Evy
11/20/2025, 5:10 AMAI Evy
11/20/2025, 5:10 AMAI Evy
11/20/2025, 5:10 AMAI Evy
11/20/2025, 5:10 AM{{current_time}} used in conversations) to your own database, you have two primary methods:
1. Extract Dynamic Variables Tool
You can use the Extract Dynamic Variables tool to capture specific information from user responses and save them as dynamic variables [(1) ]() . These variables can then be accessed programmatically.
Steps:
- Add an Extract Dynamic Variable Tool to your agent
- Define variables with names, descriptions, and types (Text, Number, Enum, or Boolean)
- These extracted values become available in the collected_dynamic_variables object after the call ends [(2) ]() [(3) ]()
2. Retrieve Chat Data via API
After a chat ends, you can retrieve the complete chat data using the Get Call API and store it in your database [(2) ]() .
The API response includes:
- transcript - Full conversation text
- transcript_object - Structured transcript with timestamps
- collected_dynamic_variables - Variables extracted during the conversation
- call_analysis - Post-call analysis including summary, sentiment, and custom analysis data
Example API call structure:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;AI Evy
11/20/2025, 5:11 AMAI Evy
11/20/2025, 5:11 AMAI Evy
11/20/2025, 5:29 AMAI Evy
11/20/2025, 5:29 AMpoison_br09
11/20/2025, 6:38 AMAI Evy
11/20/2025, 6:38 AMAI Evy
11/20/2025, 6:39 AM{{current_time}} system default dynamic variable provides the current time in America/Los_Angeles timezone by default [(1) ]() [(2) ]() [(3) ]() . The format includes the day, date, and time (e.g., "Monday, March 24, 2025 at 02:53:01 PM PDT") [(2) ]() .
If you're seeing an incorrect year, this could be due to:
1. Timezone-specific formatting - Try using the timezone-specific format {{current_time_[timezone]}} to ensure you're getting the correct time for your region [(1) ]() [(2) ]() [(3) ]() . For example:
- {{current_time_America/New_York}} [(1) ]() [(2) ]()
- {{current_time_Australia/Sydney}}
2. Variable evaluation - The variable gets evaluated when the agent processes it [(1) ]() . Make sure you're checking the output at the right point in the conversation flow.
3. Custom dynamic variable workaround - If the system variable continues to return incorrect data, you can pass your own date/time as a custom dynamic variable in the retell_llm_dynamic_variables field when creating the chat or call [(1) ]() [(4) ]() .
The documentation confirms that {{current_time}} works in prompts, begin messages, tool configurations, call handling, andAI Evy
11/20/2025, 6:39 AMAI Evy
11/20/2025, 6:39 AMpoison_br09
11/20/2025, 6:40 AMAI Evy
11/20/2025, 6:40 AMAI Evy
11/20/2025, 6:40 AM{{current_time}} system variable should work automatically without configuration .
Since you're experiencing an incorrect year with the default {{current_time}} variable (which uses America/Los_Angeles timezone) , and this appears to be a bug rather than a configuration issue, you should report this to the Retell team.
Based on community reports, there have been similar issues with {{current_time}} not working correctly [(2) ]() [(3) ]() . One community member noted that even without the dynamic variable, the timezone should be current LA timezone, but was seeing incorrect dates like October 2023 [(2) ]() .
To report this issue:
- Visit [Contact Sales]()
- Visit [)
In the meantime, you could try using the timezone-specific format {{current_time_America/Los_Angeles}} to see if that resolves the incorrect year issue [(1) ]() . This explicitly specifies the timezone rather than relying on the default.AI Evy
11/20/2025, 6:41 AMAI Evy
11/20/2025, 6:41 AMpoison_br09
11/20/2025, 6:41 AMAI Evy
11/20/2025, 6:41 AMAI Evy
11/20/2025, 6:41 AM{{current_time}} is returning the wrong year [(1) ]() .
This is a known issue that has been reported by multiple community members [(2) ]() [(3) ]() . The {{current_time}} system default variable should automatically provide the current time in America/Los_Angeles timezone [(1) ]() [(4) ]() , but there have been reports of it behaving inconsistently [(2) ]() or returning past dates [(3) ]() .
What you can try:
1. **Use the explicit timezone format**: Try {{current_time_America/Los_Angeles}} instead of just {{current_time}} [(1) ]() . This explicitly specifies the timezone rather than relying on the default.
2. **Test with a different timezone**: Try {{current_time_Europe/London}} or another timezone to see if the issue is specific to the default timezone [(2) ]() .
3. **Publish your agent**: One community report suggested publishing the agent and testing again [(3) ]() .
Since this appears to be a platform issue rather than a configuration problem on your end, and multiple users have reported similar problems [(2) ]() [(3) ]() , I recommend:
- Visit [CAI Evy
11/20/2025, 6:41 AMAI Evy
11/20/2025, 6:41 AMAI Evy
11/20/2025, 6:45 AM