K Rudy
03/05/2026, 6:18 PMAI Evy
03/05/2026, 6:18 PMAI Evy
03/05/2026, 6:18 PMAI Evy
03/05/2026, 6:18 PMAI Evy
03/05/2026, 6:18 PMK Rudy
03/05/2026, 6:28 PMAI Evy
03/05/2026, 6:28 PMAI Evy
03/05/2026, 6:28 PM{{current_time}} variable already includes the day of the week. [(1) ]()
The format returned is: "Thursday, March 28, 2024 at 11:46:04 PM PST"
So when you use {{current_time}} or {{current_time_[timezone]}}, your agent automatically knows the full day name (e.g., "Thursday") , not just the date.AI Evy
03/05/2026, 6:28 PMAI Evy
03/05/2026, 6:28 PMK Rudy
03/05/2026, 6:39 PMAI Evy
03/05/2026, 6:39 PMAI Evy
03/05/2026, 6:40 PM{{current_time}} only provide the current date/time with the day of the week—they don't calculate the day of the week for an arbitrary date you pass in. [(1) ]()
To make your agent know what day of the week a date like 03/09/2026 falls on, you have a few options:
Option 1: Pre-calculate before the call
When you pass the dynamic variable via the API (for outbound calls) or inbound webhook, calculate the day of the week in your backend and pass it as a separate dynamic variable:
json
{
"appointment_date": "03/09/2026",
"appointment_day": "Monday"
}
Option 2: Use a Custom Function
Create a custom function that calls an external API or your own endpoint to calculate the day of the week from the date. The agent can then call this function during the conversation and use the response. [(2) ]()
Option 3: Rely on the LLM's reasoning
Since the underlying LLM has general knowledge, you can instruct it in your prompt to determine the day of the week from a given date. However, LLMs can sometimes make errors with date calculations, so this approach is less reliable than pre-calculating.
The most reliable approach is **Option 1**—calculate the day of the week in your backend before the call and pass it as an additional dynamic variable.AI Evy
03/05/2026, 6:40 PMAI Evy
03/05/2026, 6:40 PM