
user_id. If ten users are talking to your agent simultaneously, their variable values are completely independent.
Creating variables
You can create a variable from anywhere your can insert them — type{ in most text inputs across Voiceflow to see your existing variables or create a new one inline.


Using variables
Reference a variable by typing{ and selecting it from the searchable menu. Variables work inside playbook instructions, API tool URLs and headers, condition steps, response messages, and more. If you’re in a place where you need to use a variable, type { and it the menu will pop up.

Setting variable values
Persisting variables across sessions
When you create or edit a variable, you can choose whether its value persists across sessions for the same user. This lets you decide, per variable, whether your agent remembers a value when someone returns and starts a new session with the sameuser_id, or starts fresh each time.
To set this, open the Variables tab in the sidebar, create or select a variable, and switch Persist across sessions on or off.
- On: the variable keeps its value when the same user starts a new session, so your agent can pick up where it left off (eg: greeting a returning customer by name or remembering their plan tier).
- Off: the variable resets to its default value at the start of each new session, so it only lasts for the duration of a single session.