Current time / inbound call
# support
a
Hey folks, is not possible inject variables like current date time in inbound calls?
v
message has been deleted
@Antonio Moura Absolutely, you can inject variables such as the current date and time into inbound calls. This is typically done through dynamic scripting or using variables within your voice application. The exact method to do this would depend on the specifics of your voice application platform or API. If you're using VAPI, you would typically retrieve the current date and time programmatically within your application's code and then use that information to customize the call flow or responses in real-time. If you need assistance with the specific code or method to achieve this, please provide more details about your setup or the programming language you're using, and I'd be happy to guide you further!
You can continue this conversation by mentioning me in the message.
s
You can pass it via assistantOverride
a
For inbound calls?
How? It's triggered by any webhook when a call is received?
I mean, it's possible to use assistantOverrides in an ongoing call?
s
If you tell me more about usecase I can suggest you some workaround but directly it is not possible
a
There are 3 usecases: 1 - Update a dynamic variable when a inbound call is received. So suppose I have {{name}} in my assistant prompt, I would like to update the value when my assistant receives a call. 2 - Update the whole system prompt when a call is received. 3 - Update the assistant system prompt and tools in a ongoing call.
s
1. It can be done via https://docs.vapi.ai/assistants/dynamic-variables 2,3. It can be done via Squads https://docs.vapi.ai/squads
a
Squads only works for outbound no?
s
Nope. It works for both.
a
Ok, the video linked to the docs has incorrect information so.
s
Yeah. But, we will update with official video pretty soon
3 Views