absent-sapphire
absent-sapphire15mo ago

Current time / inbound call

Hey folks, is not possible inject variables like current date time in inbound calls?
11 Replies
Vapi
Vapi15mo ago
Relevant threads
These are relevant threads you might take a look into before continuing further: - <#1243622706105028619> - <#1233186044975910965>
Vapi
Vapi15mo ago
@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.
grumpy-cyan
grumpy-cyan15mo ago
You can pass it via assistantOverride
absent-sapphire
absent-sapphireOP15mo ago
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?
grumpy-cyan
grumpy-cyan15mo ago
If you tell me more about usecase I can suggest you some workaround but directly it is not possible
absent-sapphire
absent-sapphireOP15mo ago
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.
grumpy-cyan
grumpy-cyan15mo ago
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
Vapi
Dynamic Variables - Vapi
Vapi makes it easy to personalize an assistant's messages and prompts using variables, allowing each call to be customized.
Vapi
Squads - Vapi
Use Squads to handle complex workflows and tasks.
absent-sapphire
absent-sapphireOP15mo ago
Squads only works for outbound no?
grumpy-cyan
grumpy-cyan15mo ago
Nope. It works for both.
absent-sapphire
absent-sapphireOP15mo ago
Ok, the video linked to the docs has incorrect information so.
grumpy-cyan
grumpy-cyan15mo ago
Yeah. But, we will update with official video pretty soon

Did you find this page helpful?