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
Kings_big💫
06/16/2025, 8:04 PM
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
DamienM
06/16/2025, 8:17 PM
sweet thanks glad i asked assistantOverrides looks much more like what I want to do to replace blocks of context
DamienM
06/16/2025, 8:17 PM
any limit to how long a variable can be? 2k tokens ok etc?
k
Kings_big💫
06/16/2025, 8:22 PM
Variable values can be up to 2k tokens as long as they stay within the model’s token limit..