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.