.VAPI agent thinks the year is 2023 when trying to...
# support
e
So quick context im trying to build agent to retrieve calender date when i test the webhook it pulls 2023 month and day and after having a convo with the agent its tells me that there system is programmed to 2023. upon checking my prompt nowhere does it say that and when i tell it to use as of today it still pulls 2023 anything i can do to do fix this in the settings or somthing or any one else ever have the same issue?
v
To ensure your Vapi agent always uses the current date and year, update your prompt to reference the dynamic variable
{{now}}
(or
{{year}}
for just the year). For example:
Copy code
text
Today's date is {{now}}.
or, for just the year:
Copy code
text
The current year is {{year}}.
Make sure you are not hardcoding any date values in your prompt or API call. This will pull the correct, current date automatically according to the documentation I have found. Source: - [Vapi Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)
e
what about the date as well to get as current
t
Addthis to your prompt {{Now}}
2 Views