Skip to main content
Every step in a workflow has a type that controls how MIRA processes it, and instructions that are plain-language prompts enhanced with template variables.

Step types

prompt

A prompt step sends the step’s instructions (plus resolved template variables) to the active reasoning engine and waits for a response.Use prompt steps to:
  • Ask the engine to research, analyse, summarise, or rewrite
  • Chain reasoning across multiple passes with {{prev_output}}
  • Include document context with {{document}}
Example instruction:

Template variables

If {{ document }} is used in a step but no documents are uploaded and enabled, the variable resolves to an empty string. Add a human_review step before document-dependent steps to catch this condition.

Combining variables

Variables can be combined freely in a single instruction:
Edit this page — Open a pull request