Datetime is messed up
# support
s
So the bot thought the date was October 2023. I fixed that by putting "Date: {{date}}" at the start of the prompt. Now it says the current date is January 29th (Correct), however, it thinks today is a Monday when it is a Wednesday. So when I ask to set an appointment next Thursday it messes up. Any ideas?
a
HeySal Thank you for creating the ticket! A member of our team will reach out to you shortly.
v
@Sal It sounds like there might be an issue with the dynamic date handling within the bot's system. To ensure that the bot correctly interprets the current day of the week, you could try explicitly including the day of the week in your prompt, similar to how you've included the date. For example, you could add "Day: {{day_of_week}}" where
{{day_of_week}}
is a dynamic variable that represents the current day of the week. If the bot does not support a dynamic variable for the day of the week, you may need to manually update the day of the week in the prompt or check if there's a setting or configuration that allows the bot to automatically determine the correct day of the week based on the date. If you continue to experience issues with setting appointments on the correct day, please ask support for more info on this. They may be able to provide a solution or a workaround that ensures the bot handles dates and days of the week accurately.
You can continue this conversation by mentioning me in the message.
s
Ok so I added that to the system prompt. It moved to thinking today is Tuesday instead of Monday, but it's actually wednesday. Thoughts?> https://cdn.discordapp.com/attachments/1334271734332784773/1334283099948716053/image.png?ex=679bf778&is=679aa5f8&hm=a65bd6f28e228ad993c849d08a85d8d2549db16afa5969f0c20d424c64513231&
s
Hey @Sal To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help me figure out what went wrong!
s
I fixed this by putting this statement at the beginning and switching model to gpt-4o The current date is {{"now" | date: "%A, %B %d, %Y", "America/New_York"}} and the time is {{"now" | date: "%I:%M %p", "America/New_York"}}.
4 Views