How To Give Your AI Agent The Current Date & Time In Vapi

If you're building an AI agent with Vapi, you know how important it is for the agent to have context.

One of the easiest and most impactful upgrades you can give your AI is the ability to access the current date and time. This feature will allow your agent to perform tasks like scheduling, setting reminders, and handle conversations differently depending on opening hours.

In our latest video, I walk you through a simple approach to give your AI agent the current date and time.

By adding this snippet to our prompt, you can give your agent access to the current time, without building extra tools, and this works for any time zone that you are in.

Date and Time Dynamic Variables

⚡️ The current date and time is: {{"now" | date: "%b %d, %Y, %I:%M %p", "Europe/Berlin"}}  

Customise for your location and timezone. For example:

{{"now" | date: "%b %d, %Y, %I:%M %p", "Europe/London"}}

{{"now" | date: "%b %d, %Y, %I:%M %p", "Europe/Paris"}}

{{"now" | date: "%b %d, %Y, %I:%M %p", "America/New_York"}}

{{"now" | date: "%b %d, %Y, %I:%M %p", "America/Los_Angeles"}}

{{"now" | date: "%b %d, %Y, %I:%M %p", "Asia/Dubai"}}

{{"now" | date: "%b %d, %Y, %I:%M %p", "Australia/Sydney"}}       

{{"now" | date: "%b %d, %Y, %I:%M %p", "Pacific/Auckland"}} 

Prompt Template

📄 Download the AI Receptionist Template Prompt: Download Template Prompt Here

Making your AI agent context-aware is a powerful way to improve user experience and functionality. Follow along with the video, download the template, and make your AI smarter today!

If you would like a custom AI solution built for your company, please schedule a meeting with me using this link: calendly.com/cian-conversion-haus/discovery-call