Mastra Workflows

Workflows are durable, graph-based pipelines composed from typed steps with branching, parallelism, loops, suspension, human-in-the-loop, and event triggers. Step inputs and outputs are validated against Zod schemas and each run is persisted so workflows can be replayed, resumed, and observed.

API entry from apis.yml

apis.yml Raw ↑
aid: mastra-ai:mastra-workflows
name: Mastra Workflows
description: Workflows are durable, graph-based pipelines composed from typed steps with branching, parallelism,
  loops, suspension, human-in-the-loop, and event triggers. Step inputs and outputs are validated against
  Zod schemas and each run is persisted so workflows can be replayed, resumed, and observed.
humanURL: https://mastra.ai/docs/workflows/overview
tags:
- Workflows
- Orchestration
- Durable Execution
properties:
- type: Documentation
  url: https://mastra.ai/docs/workflows/overview
- type: SourceCode
  url: https://github.com/mastra-ai/mastra/tree/main/workflows