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:
Based on the following research: {{prev_output}}

Write a concise 3-paragraph executive summary suitable for a non-technical audience.
Highlight the three most important findings.

Template variables

VariableResolves to
{{input}}The initial text typed in the prompt box when the workflow was started.
{{prev_output}}The full text output of the immediately preceding step.
{{document}}The concatenated content of all documents enabled in the current session.
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:
You are reviewing a contract.

USER REQUEST: {{input}}

CONTRACT TEXT:
{{document}}

PRIOR ANALYSIS:
{{prev_output}}

Identify any clauses that conflict with the user's request.
Edit this page — Open a pull request