https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can i configure the current date and time with...
# ❓・ai-evy-support
m
@AI Evy how can i configure the current date and time with a specific timezone within retell
a
Thanks for tagging me @mrearthbound. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer You can use Retell's system default dynamic variables to get the current date and time in a specific timezone. [(1) ]() ## Using Timezone-Specific Variables Use the
{{current_time_[timezone]}}
syntax, replacing
[timezone]
with your desired IANA timezone identifier. Examples: -
{{current_time_America/New_York}}
[(2) ]() -
{{current_time_Australia/Sydney}}
[(1) ]() -
{{current_time_America/Chicago}}
[(3) ]() The output format will look like:
"Thursday, March 28, 2024 at 11:46:04 PM AEDT"
[(1) ]() ## Available Time Variables -
{{current_time}}
— Current time in
America/Los_Angeles
(default) -
{{current_time_[timezone]}}
— Current time in your specified timezone -
{{current_calendar_[timezone]}}
— 14-day calendar in your specified timezone ## Where to Use You can include these variables directly in your prompts, begin message, tool configurations, voicemail prompts, and webhook URLs. No additional configuration is needed—these are automatically available system variables that Retell provides.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Simulation Testing Now Live for All Agents](https://www.retellai.com/changelog/simulation-testing-now-live-for-all-agents-c27zh) [[3] Timezone mismatch during outbound calls despite correct profile & Cal.com event settings](https://community.retellai.com/t/timezone-mismatch-during-outbound-calls-despite-correct-profile-cal-com-event-settings/783) ​
Thanks for the follow-up, @mrearthbound. I'll get back to you soon.
m
@AI Evy is there an easy and accurate way for the voicebot to find out what day of the week is a specific date that the user inquires about?
a
### Answer There isn't a built-in Retell dynamic variable that directly calculates the day of the week for an arbitrary date the user provides. [(1) ]() The system default variables like
{{current_time}}
and
{{current_calendar}}
only provide the current date/time and a 14-day calendar from today—they don't perform date calculations for user-specified dates. ## Options to Handle This *1. Use a Custom Function (Tool Call) * You can create a custom function that the agent calls when a user asks about a specific date. The function would receive the date as input, calculate the day of the week on your backend, and return the result to the agent. This is the most reliable approach for accurate date calculations. 2. Rely on the LLM's Reasoning The underlying LLM (GPT-4, Claude, etc.) can often calculate the day of the week for a given date based on its general knowledge. However, this may not always be accurate, especially for dates far in the past or future. For the most accurate results, implementing a custom function that handles the date calculation externally is recommended.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
@AI Evy how do i backup an agent into a json file
a
Thanks for the follow-up, @mrearthbound. I'll get back to you soon.
### Answer You can export and import agents using the Import/Export Agents feature in Retell. [(1) ]() ## How to Export an Agent From the changelog, this feature allows you to export any agent to your different organizations. To export an agent: 1. Go to your agent in the Dashboard 2. Use the export option to save the agent configuration This exports the agent configuration which can then be imported into other organizations or used as a backup. ## Additional Notes - For simulation test cases, you can also import/export them as JSON, duplicate them in the editor, and auto-copy them when duplicating agents I don't have specific step-by-step UI instructions for the exact export process in the available sources. For detailed guidance on the export workflow, check out these potentially useful sources: - [Conversation Flow Overview]() - [Platform Changelogs]() Would you like me to try to answer more generally based on my knowledge?
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.