Variable scope
All variables in Vatel are call-scoped, meaning they live for the duration of a single call and are shared across every part of the agent. When a variable is set at any point during a call (whether by an Extract Info step in the conversation, a Set Variables step in a logic flow, or a Webhook response), it is immediately available to every step that runs after it for the rest of that call. If you write to the same variable name again, the new value overwrites the previous one. There is no separate “flow scope,” and variables do not reset when a logic flow finishes. This means a logic flow can set a variable, and the main conversation flow can read that variable after the logic flow completes. It also means you should be careful about reusing variable names across different flows, since a later write will silently replace the earlier value.How to set variables
You can set variables through several mechanisms. Each one is suited to a different situation.Referencing variables
To use a variable’s value in a text field, prompt, or message, wrap the variable name in double curly braces. Any field in the editor that accepts dynamic values will resolve these references at runtime.Referencing node outputs
Every node in the editor also exposes its output as a variable you can reference. The syntax is{{node.<id>.<field>}}, where <id> is the node’s identifier (shown on the node in the editor canvas) and <field> is the name of a key in that node’s output. For nested fields, chain additional dots. For example, if a Webhook node with ID lookup1 returns a JSON body containing { "customer": { "name": "Alice" } }, you would write {{node.lookup1.responseBody.customer.name}} to access the customer’s name.
System variables
The platform provides built-in system variables (like{{caller}} for the caller’s phone number) that use the same double-curly-brace syntax. See System Variables for the full list of what is available.
InputVariable
Many fields throughout the editor accept an InputVariable rather than a plain string. An InputVariable is a structured way to define a single value that a node needs. When you configure an InputVariable, you decide whether the value is a fixed constant or whether it should be looked up from the call’s variable scope at runtime. This flexibility lets you build flows that mix hardcoded settings with dynamic, call-specific data. Each InputVariable has the following fields:Static vs dynamic
When you settype to static, the value is a fixed literal that you define at configuration time. It never changes between calls. Use static values for constants, such as a sender email address, a fixed API endpoint, a default greeting, or a numeric threshold.
type to dynamic, the value is resolved from the call’s variable scope at runtime. The platform looks for a variable whose name matches the name field and uses its current value. Use dynamic values when the data comes from something that happened during the call, such as a caller’s name captured by an Extract Info step or a customer ID returned by a Webhook.
value field empty. The platform resolves the variable by matching its name against the call scope when the step executes. If no variable with that name has been set yet, the value will be empty (or the step may fail if required is true).
Variable naming
Variable names should be lowercase with underscores (e.g.caller_name, order_id, customer_tier). Avoid spaces and special characters. Names are case-sensitive.
