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"— sendpromptTemplateto the LLM and collect output"transform"— reshape or reformat the previous step’s output"condition"— evaluateconditionExpr; 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:- Open the workflow editor.
- Click ⋮ → Version History.
- Browse versions by timestamp.
- Click Restore to roll back — this creates a new version entry rather than overwriting the history.
Distributing workflows to your team
- Export the workflow JSON.
- Commit the file to your team’s shared repository.
- Each team member imports the file into their MIRA installation.
Edit this page — Open a pull
request