Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Academy/Station Academy/Level 3/Building a reusable workflow
Level 3 · Automation fundamentals

Building a reusable workflow

Reuse work with Invoke Workflow, which runs another saved workflow with inputs and outputs, and with exported groups you can import into other projects.

Intermediate≈ 20 min (estimate)Windows, macOSSource-verified
Before this lesson
Workflow organisation
You will learn to
  • Call one workflow from another with Invoke Workflow
  • Pass inputs and receive outputs
  • Share a group with Export group and Import group

Station has two real reuse mechanisms: Invoke Workflow and exported groups.

Invoke Workflow

Invoke Workflow runs another saved .station.json file as one step.

Field (Mac editor)What to enter
Workflow fileThe path to the .station.json file. Relative paths start from the project's folder.
Inputs (JSON)Child variable → value, for example {"customer": "{{customer}}"}. Declare each input as a variable in the child workflow.
Outputs (JSON)Child variable → variable in this workflow, for example {"total": "orderTotal"}.

Example

  1. Build a small workflow Format date with a variable input, a Parse Date and a Format Date that saves to result. Export it as format-date.station.json.
  2. In another workflow, add Invoke Workflow with Workflow file pointing to that file, Inputs {"input": "{{rawDate}}"} and Outputs {"result": "niceDate"}.
  3. Log {{niceDate}}.

Export group and Import group

A visual group can be saved on its own with Export group… in the group menu and inserted into another project with Import group in the editor's ⋯ menu. This copies the steps; later changes are not synchronised.

Which to use

Invoke WorkflowExported group
Change once, used everywhereYesNo, each copy is separate
Visible in the calling workflowOne stepAll its steps
Good forShared building blocksTemplates you adapt

Activities in this lesson

Invoke Workflow · Set Variable · Log

Saved only in this browser.

Source-verified. Steps were checked against the Station source code and authentic screenshots. Not yet executed step by step in the app. 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.