unwilling-turquoise•14mo ago
How to insert Current Date Into Prompt?
I am trying to set the current date in the prompt. I saw from previous post that I can use {{date}}, however, it does not return the correct date.
https://auth.vapi.ai/storage/v1/object/public/recordings/7766a510-36ff-468e-90d5-ce3d70d37319-1722404126976-b8b4beaa-8a4d-40ed-bb30-3a6b0451835f-mono.wav
I am adding this in the first line. Is there any wrong?
You are a friendly voice sales assistant for "Sleep Well". For your reference, today's date is {{date}}.
5 Replies
@sh.lim
It seems like you're trying to use a template variable
{{date}}
to dynamically insert the current date into your prompt. However, if {{date}}
is not being replaced with the actual date, it's possible that the system you're using does not recognize this placeholder or requires a different method to insert the current date.
To resolve this, you might need to use a specific function or method provided by the system to get the current date. If you're working with a Voice API or a scripting environment, there may be a built-in function to get the current date.
If you're looking for assistance on how to set the current date in your prompt using VAPI, please provide more details about the scripting capabilities or the context in which you're trying to set the date, and I'll be happy to help you further. If this is a feature that VAPI supports, you might need to refer to the documentation or ask support for more info on this.
You can continue this conversation by mentioning me in the message.robust-apricot•14mo ago
@sh.lim we will resolve this thankyou for reporting.
wise-white•13mo ago
I am having the same issue. Are there any Updates or work arounds?
robust-apricot•13mo ago
yet to be fixed.