Assistant registering incorrect day & time
# support
f
Hi team, we have added into the prompts the below although at times, our Assistant is still not registering day & time on a cosistant basis. Prompt: - Always consider the current date and time when responding to customer queries and determine what the date and current time is before answering. Always ensure your responses align with the current day and time. The current date and time is: {{"now" | date: "%b %d, %Y, %I:%M %p", "Australia/Brisbane"}} CALL ID: f41eff5a-ec7e-420e-8b1e-549007074a9f Timestamp: 00:28 What we expected to happen: When customer asked what events happening "today / tonight" - Assistant to register the current Date & Day (Thursday) and provide customer the correct draws that are on for Thursdays What happened: Assistant gave incorrect information on a specific event happening for Wednesday, Friday & Saturday.
v
The issue appears to be related to how date/time variables are being handled in the assistant's context. There are a few key points to improve consistency: 1\. The timezone handling needs to be explicit in the system prompt context. 2\. The date formatting should be consistent across all uses. Here's a more robust solution: 1\. Modify your prompt to use both the date and day of week explicitly:
Copy code
The current date and time is: {{"now" | date: "%A, %b %d, %Y, %I:%M %p", "Australia/Brisbane"}}
2\. Add additional context variables to ensure the day is always available:
Copy code
Today is {{"now" | date: "%A", "Australia/Brisbane"}} and the current time is {{"now" | date: "%I:%M %p", "Australia/Brisbane"}}
This approach is better because: 1\. It explicitly includes the day name (%A format) 2\. It separates the date/time components for clearer context 3\. It consistently uses the Australia/Brisbane timezone