Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Level 3 · Automation fundamentals

Variables

Store a value under a name and use it anywhere in a workflow with {{name}}, so the same task can work with different values.

Intermediate≈ 15 min (estimate)Windows, macOSWorkflow engine-tested
Before this lesson
Building a workflow without recording
You will learn to
  • Create a variable in the Variables panel or with Set Variable
  • Insert a variable with {{name}}
  • Record a variable while recording
  • Know the naming rules
Sample files
hello-station.station.json

A variable is a named box that holds a value: a name, a number, a date, a list. Steps can read from it and write to it.

Three ways to create one

  1. Variables panel (bottom of the editor): click +, give it a name and a value. The value is the starting value for every run.
  2. Set Variable step: sets Variable Name to Value while the workflow runs. Value Type can also be random with Min and Max.
  3. While recording: click Variable on the recording toolbar, enter a name and the value to use now. Station types the value and records {{name}}, so later runs use whatever the variable holds.

Many steps also produce a variable: fields such as Save To Variable create or update one.

Using a variable

Write the name between double braces in any text field: Hello {{who}}. When the step runs, Station replaces {{who}} with the current value. A name Station does not know is left as written, which makes typos easy to spot in the log.

Some fields expect the name itself, without braces: for example the Variable of an If Condition, the Collection Variable of a Loop, or the operands of Math. The field's hover help tells you which.

Naming rules

  • Letters, numbers and underscores, starting with a letter: customer, invoice_no, total2.
  • Names are not case-sensitive: Total and total are the same variable.
  • Choose names that say what is inside.

Try it

Import hello-station.station.json from Building a workflow without recording, change who in the Variables panel and run again.

Activities in this lesson

Set Variable · Type Text · Log

Saved only in this browser.

Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.