Update Assistant | Vapi
# general-english
d
Is there a way to make the system prompt dynamic in a live voice agent? Not sure if this only updates the agent for the next session or if it works in realtime https://docs.vapi.ai/api-reference/assistants/update My use case is to update the context mid conversation
k
Yes, use variables and sending assistantOverrides or updating the assistant via API, changes take effect immediately for the next response in the same live session..
d
sweet thanks glad i asked assistantOverrides looks much more like what I want to do to replace blocks of context
any limit to how long a variable can be? 2k tokens ok etc?
k
Variable values can be up to 2k tokens as long as they stay within the model’s token limit..
2 Views