https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there a way to set time zone dynamically when u...
# ❓・ai-evy-support
r
@AI Evy is there a way to set time zone dynamically when using "Check Calendar Availability (Cal.com)" ? Cause different leads have different timezone ...
a
Thanks for tagging me @razisamuely. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can set timezone dynamically when using the Check Calendar Availability function [(1) ]() . The function includes an optional timezone parameter that can be configured . When setting up the check calendar availability function in Retell, you can add a timezone to be used in the function . Additionally, you can leverage dynamic variables to make this timezone dynamic based on your leads [(2) ]() . You can use dynamic variables in your prompts by surrounding them with double curly braces . For outbound calls, you can set your variables in the
retell_llm_dynamic_variables
field when using the Create Phone Call API :
Copy code
{
  "user_name": "John Smith",
  "product_name": "Premium Plan",
  "account_status": "active"
}
All values in
retell_llm_dynamic_variables
must be strings . You could include a timezone variable like
"user_timezone": "America/New_York"
and reference it in your agent configuration or prompts. For inbound calls, you can supply dynamic variables in the Inbound Call Webhook .
​ To learn more, see the sources I considered: [[1] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[2] 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.
r
@AI Evy When set up "Check Calendar Availability (Cal.com) " for case hwich im not awar to time zone in advanced ... how should i set it ?
a
Thanks for the follow-up, @razisamuely. I'll get back to you soon.
### Answer When setting up the "Check Calendar Availability (Cal.com) " function without knowing the timezone in advance, you have a few options based on the available sources: Option 1: Leave timezone optional When adding the check calendar availability function in Retell, the timezone field is optional [(1) ]() . If you don't specify a timezone, the function will likely use the default timezone from your Cal.com account settings. Option 2: Use a default timezone You can set a default timezone during function setup . Choose a common timezone like "America/New_York" or "UTC" as a fallback when the caller's timezone is unknown. Option 3: Collect timezone information during the call You can configure your agent's prompt to ask the caller for their timezone before checking availability. For example, include instructions in your prompt like:
Copy code
When checking calendar availability, first ask the user for their timezone if not already known, then call the check_calendar_availability function.
Option 4: Use dynamic variables for future calls If you're making outbound calls and have timezone information available, you can use dynamic variables [(2) ]() . Set up a variable like
{{user_timezone}}
in your agent configuration and populate it when making calls through the API. The timezone field being optional [(1) ]() gives you flexibility to handle cases where the timezone isn't known upfront, allowing the system to fall back to default behavior.
​ To learn more, see the sources I considered: [[1] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[2] 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.
r
@AI Evy So if collecting "{{user_timezone}}" while call, how cal.com know to use it ?
a
Thanks for the follow-up, @razisamuely. I'll get back to you soon.
### Answer Based on the available sources, I can see that dynamic variables work throughout Retell AI's system, including in tool configurations and function descriptions [(1) ]() . When you collect a
{{user_timezone}}
during a call, you can use dynamic variables in tool configurations, tool descriptions, and property descriptions . However, the specific implementation details for how the Cal.com integration receives and uses the
{{user_timezone}}
variable aren't explicitly detailed in the available sources. The sources confirm that dynamic variables can be used in tool configurations , but don't provide the exact mechanism for passing timezone data to Cal.com specifically. For outbound calls, you can set dynamic variables in the
retell_llm_dynamic_variables
field when using the Create Phone Call API, and all values must be strings . For inbound calls, you can supply dynamic variables in the Inbound Call Webhook . I don't have the specific documentation on how the Cal.com integration handles the timezone parameter when using dynamic variables. You might want to check the Cal.com integration documentation or contact support for the exact implementation details. Would you like me to try to answer generally based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
r
@User so why using {{user_timezone}} and not {{timezone}}
@AI Evy so why using {{user_timezone}} and not {{timezone}}
a
Thanks for the follow-up, @razisamuely. I'll get back to you soon.
### Answer Based on the available sources, there's no specific requirement to use
{{user_timezone}}
instead of
{{timezone}}
- the variable name is entirely up to you [(1) ]() . Dynamic variables use the
{{variable_name}}
syntax, and you can create variables with any name you choose . The reason I suggested
{{user_timezone}}
in the previous response was to avoid potential conflicts with Retell's default system variables . Looking at the default system variables, Retell provides timezone-related variables like
{{current_time_[timezone]}}
and
{{current_calendar_[timezone]}}
. Using a more descriptive name like
{{user_timezone}}
helps distinguish your custom variable from these system defaults. However, you could absolutely use
{{timezone}}
if you prefer. The key is ensuring your variable name doesn't conflict with existing system variables and is descriptive enough for your use case . When setting up dynamic variables, you can use any name that makes sense for your implementation, whether that's
{{timezone}}
,
{{user_timezone}}
,
{{caller_timezone}}
, or any other descriptive name .
​ 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.
r
@AI Evy So if im choosing any name, how the "Check Calendar Availability (Cal.com) " will know to use it ?
a
Thanks for the follow-up, @razisamuely. I'll get back to you soon.
### Answer ### Answer Based on the available sources, the specific mechanism for how the "Check Calendar Availability (Cal.com) " function receives and uses custom dynamic variables like
{{timezone}}
or
{{user_timezone}}
isn't explicitly detailed in the documentation [(1) ]() [(2) ]() . The sources show that when setting up the check calendar availability function in Retell, you can add a timezone field that is optional [(1) ]() . However, the documentation doesn't specify exactly how dynamic variables are passed to the Cal.com integration's timezone parameter. What we know from the sources: - Dynamic variables can be used in tool configurations and tool descriptions [(2) ]() - The timezone field is optional when setting up the function [(1) ]() - Dynamic variables use double curly braces syntax [(2) ]() For outbound calls, dynamic variables are set in the
retell_llm_dynamic_variables
field :
Copy code
{
  "user_name": "John Smith",
  "product_name": "Premium Plan",
  "account_status": "active"
}
However, the specific implementation details for how your custom timezone variable (whether named
{{timezone}}
,
{{user_timezone}}
, or any other name) gets passed to and used by the Cal.com integration aren't documented in the available sources. I don't have the specific documentation on how the Cal.com integration maps custom dynamic variables to its timezone parameter. Would you like me to try to answer generally based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Check Calendar Availability](https://docs.retellai.com/build/check-availability) [[2] 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.
r
@AI Evy So i cant pass it dynamically while calling ?
a
Thanks for the follow-up, @razisamuely. I'll get back to you soon.
### Answer You can pass timezone dynamically while calling, but the exact mechanism isn't fully detailed in the available documentation. What we know from the sources: For outbound calls, you can set dynamic variables in the
retell_llm_dynamic_variables
field when using the Create Phone Call API [(1) ]() :
Copy code
json
{
  "user_name": "John Smith",
  "product_name": "Premium Plan",
  "account_status": "active"
}
For inbound calls, you can supply dynamic variables in the Inbound Call Webhook . The Check Calendar Availability function includes an optional timezone parameter that can be configured [(2) ]() , and dynamic variables can be used in tool configurations and tool descriptions [(1) ]() . However, the specific implementation details for how your custom timezone variable gets mapped to the Cal.com integration's timezone parameter during the call aren't explicitly documented in the available sources. The sources confirm that all values in
retell_llm_dynamic_variables
must be strings , so you could include something like
"user_timezone": "America/New_York"
, but the exact mechanism for how the Check Calendar Availability function receives and uses this variable during execution isn't detailed. Would you like me to try to answer generally based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Check Calendar Availability](https://docs.retellai.com/build/check-availability) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy Is someone asks the same before me ?
a
Thanks for the follow-up, @razisamuely. I'll get back to you soon.
### Answer Yes, based on the available sources, similar questions about Cal.com integration and timezone issues have been asked before. There have been several related discussions about Cal.com integration challenges [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() : Timezone-related issues: - Users reported problems with the check_calendar_availability function showing all times in AM even when PM slots were available [(1) ]() - There were issues with date and time formatting where the LLM was incorrectly interpreting "A" (AM/PM indicator) as always "AM" - Users experienced problems with Dutch AI voice agents where dates and times were being interpreted as being in the past even when they weren't [(4) ]() General Cal.com integration questions: - Questions about what API endpoint Cal.com uses for the check_calendar_availability function [(2) ]() - Issues where agents offer call times when the user is not available, then fail to schedule because of unavailability [(5) ]() - Problems with Cal.com integration not respecting correct availability settings Multi-calendar scenarios: - Questions about handling multiple closers with different calendars and various solutions like round robin feature
s, distinct calendars, or syncing to different Google calendars [(3) ]() Your specific question about dynamically setting timezone for different leads appears to be a variation of these timezone and availability-related issues that other users have encountered with the Cal.com integration.
​ To learn more, see the sources I considered: [[1] When using check_calendar_availability function, I am getting all the times in AM (same timezone)](https://discord.com/channels/1186424376300679209/1291338582388248637) [[2] cal.com - check calendar availability functoin](https://discord.com/channels/1186424376300679209/1317344782997258272) [[3] Discord message from @usmanabid143 on 2025-03-23](https://discord.com/channels/1186424376300679209/1294891368505937952/1353422537173893284) [[4] Discord message from @houssam.kherrazi_76910 on 2025-03-22](https://discord.com/channels/1186424376300679209/1294891368505937952/1353051817029799957) [[5] Retell -> Cal.com Integration Problem](https://discord.com/channels/1186424376300679209/1343641187185328252) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.