> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vatel.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Variables

> Write named values for later steps in the call

The Set Variables node lets you store named values during a call so that later steps can use them. Think of it as writing a label on a sticky note and putting it somewhere every other step can see it. Once you set a variable called `priority`, any later step, any other flow on the same call, and even the agent's prompt can read it with `{{priority}}`.

This is useful when you need to carry information forward. For example, a start flow might look up a customer record via webhook and then use Set Variables to store `customer_name`, `account_id`, and `plan_type` so the main conversation and end flow can reference them.

You can use the Set Variables node on **Start**, **End**, and any custom flow you have created. On the Main Flow, this option is greyed out and cannot be selected. The settings header in the panel reads **Variable**.

![Variable settings with an empty declaration and Add Declaration](https://mintcdn.com/devpro-38b0cd42/hdbCFLBnzC5gA6Ir/images/configure/set-variables-settings.jpg?fit=max\&auto=format\&n=hdbCFLBnzC5gA6Ir\&q=85\&s=cc007171426c78a89e8a991cdedf2785)

Set Variables on a flow. The header is Variable, the name box shows a \$ prefix, and no declarations have been added.

## Fields

| Field | What you set |
| - | - |
| Title | A label for this step so you can identify it on the graph. |
| Variable Declarations | One or more variable cards. See "Adding declarations" below. |

### Adding declarations

Each variable you want to set gets its own card in the **Variable Declarations** section. Click **Add Declaration** to create a new card.

Each card has two fields:

* **Variable Name** is the name you are creating or updating. The `$` symbol shown in the input box is a visual indicator only; it is not part of the actual name. If you type `priority`, the stored name is `priority` and you reference it elsewhere as `{{priority}}`.
* **Value** is what gets stored under that name. You can type static text (a fixed value like `high` or `123 Main St`) or use a `{{variable}}` reference to copy a value from somewhere else (like `{{caller_name}}`).

You can add as many declarations as you need. If you set a variable name that already exists from a previous step, the new value overwrites the old one.

### Scope and lifetime

Variables set by this node are available for the rest of the current call. That includes later steps in the same flow, steps in other flows that run on the same call, and the agent's prompt. Once the call ends, the variables are no longer active (though they may appear in logs and transcripts).

### Special variable: continue\_call\_queue

On any flow except the Start flow, you will see an info button next to the Variable Declarations section. This button explains a special variable called `continue_call_queue`.

This variable only matters when you are using [Dispatch](https://docs.vatel.ai/configure/editor/dispatch.md) with the Dial type in Queue mode. In that scenario, the dispatched agent calls one number at a time. When a call finishes, the system checks `continue_call_queue` to decide what to do next:

* Setting the value to `true` tells the parent queue to move on to the next number.
* Setting the value to `false` tells the parent queue to stop, treating this call as the final answer.

The value is case-insensitive (`True`, `TRUE`, and `true` all work the same way). If the on-call person presses the Answered DTMF digit on the Dispatch node, that takes priority over this variable.

This special variable does not apply to Attended transfer. The info button is not shown on the Start flow because Start flows run before any dispatching context exists.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.