Skip to main content
Workflows can be exported as self-contained JSON files and imported on any MIRA installation. Exports capture all steps, routing rules, and metadata — no credentials or session data are included.

Exporting a workflow

1

Open Workflows

Press ⌘3 to open the Workflows view.
2

Select the workflow

Click the workflow card, then click ⋮ → Export.
3

Save the file

Choose a location and save as [workflow-name].json.

Importing a workflow

1

Open Workflows

Press ⌘3.
2

Click Import

Click the Import button at the top of the workflow list.
3

Select the JSON file

Pick the .json file. The workflow appears in your list immediately and is ready to run.

Workflow JSON format

The exported JSON mirrors the internal workflow schema exactly. All fields are required unless marked optional.

Workflow root fields

Step fields

stepType valid values:
  • "prompt" — send promptTemplate to the LLM and collect output
  • "transform" — reshape or reformat the previous step’s output
  • "condition" — evaluate conditionExpr; routes based on result
  • "human_review" — pause execution and wait for the user to approve before continuing
outputFormat valid values: "text" · "markdown" · "json" · "code" · "table" onSuccess valid values: "continue" · "pause" onFailure valid values: "retry:1" · "retry:2" · "retry:3" · "skip" · "abort"

Template variables

Version history

MIRA saves a new version each time you save a workflow. To access version history:
  1. Open the workflow editor.
  2. Click ⋮ → Version History.
  3. Browse versions by timestamp.
  4. Click Restore to roll back — this creates a new version entry rather than overwriting the history.

Distributing workflows to your team

  1. Export the workflow JSON.
  2. Commit the file to your team’s shared repository.
  3. Each team member imports the file into their MIRA installation.
Because workflows reference only template variables (not local paths or credentials), the same JSON runs identically on any machine.
Edit this page — Open a pull request