Variables

Variables Block

Variables creates named values that later Blocks can use with {{variableName}} syntax.

At a glance

Best for
Reusable Flow inputs
Syntax
{{variableName}}
Produces variables
Yes
Error handle
No

What it does

Variables stores one or more named values. Later Blocks can insert those values into URLs, selectors, text fields, templates, and other settings that accept variables.

Use it near the start of a Flow for target URLs, search terms, file names, labels, and other values that should be easy to change later.

Use it when

  • Define a target URL once and reuse it later.
  • Store a search term or label before browser actions run.
  • Keep related inputs together near the start of a Flow.

Do not use it when

  • The value should be produced from another Block output.
  • You need to combine several variables into one string; use Template.
  • The value is only used once and does not need a name.

Settings

Add one row for each variable. Each row has a type, name, and value. Later Blocks reference the saved name with {{variableName}}.

Variable type

Required: Yes
Variables
No
Description
Controls how the value is stored and shown in the editor.

Name

Required: Yes
Variables
No
Description
The variable name later Blocks reference inside double curly braces.

Value

Required: No
Variables
Depends on type
Description
The saved value. Object values can use the object editor modes in the app.

Outputs

Each variable row produces a variable with the configured name. Use the name directly inside double curly braces in later Blocks.

{{variableName}}configured value

Reference any variable created by this Block with its configured name.

definedVariablesarray

Run output listing the variables defined by the Block.

countnumber

Number of variables defined by the Block.

Example Flow

Variables often sits near the start of a Flow so browser Blocks can reuse the same values.

  1. Define variables such as targetUrl and searchTerm.
  2. Use {{targetUrl}} in Go To URL.
  3. Use {{searchTerm}} in Fill Input or Template.

Errors and fixes

Start with symptoms visible in the editor or Inspector, then check the earliest Block that produced the wrong page state, variable, or output.

A later Block receives an empty value.

Check
Confirm the variable Block runs before the Block that references it.
Fix
Move Variables earlier in the Flow or reconnect the path.

The literal text {{variableName}} appears in output.

Check
Check that the variable name exactly matches the saved name.
Fix
Fix the spelling or create the missing variable before it is used.

Local and cloud runs

Local and cloud runtimes both write Variables Block entries into Flow state before later Blocks interpolate settings.

Secret values are stored separately from normal variables in the runtime.