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

# Static Variables (Local Variables)

> Node-level variables with fixed or templated values in flow agents

Static variables are **flow-agent only**. They are set at the node level with fixed or templated values and are available to that node and its successors.

## Characteristics

* **Scope**: Node-level; visible to successor nodes
* **Where to define**: In the node’s configuration
* **Value types**: string, number, boolean, array, object
* **Templates**: Values can use `{{variable_name}}` to reference other variables
* **Sync**: Stored in the variable store so availability is tracked correctly

## Supported Data Types

| Data Type | Example Value                       | Use Case                        |
| --------- | ----------------------------------- | ------------------------------- |
| `string`  | `"Hello {{customer_name}}"`         | Text with variable substitution |
| `number`  | `42` or `{{max_attempts}}`          | Numbers or references           |
| `boolean` | `true` or `false`                   | Flags and toggles               |
| `array`   | `["option1", "option2", "option3"]` | Lists of values                 |
| `object`  | `{"key": "value", "count": 5}`      | Structured data                 |

## Example Use Cases

**1. Computed / formatted messages**

```
Variable: greeting_message
Value: "Hello {{customer_name}}, welcome to {{business_name}}!"
Data Type: string
```

**2. Configuration objects**

```
Variable: api_config
Value: {"timeout": 5000, "retries": 3}
Data Type: object
```

**3. Default lists**

```
Variable: available_options
Value: ["Schedule", "Cancel", "Reschedule"]
Data Type: array
```

**4. Flags**

```
Variable: is_premium_user
Value: true
Data Type: boolean
```

Static variables are **not** available in global nodes or in single-prompt agents. See [Availability & Context](./availability-and-context) and [Extracted Variables](./extracted-variables) for how they fit with other variable types.
