# Mastra Workflows
Workflows are [[Mastra AI]]'s primitive for deterministic, multi-step task orchestration, full control over data flow, step composition, and execution order. They are graph-based (branching and parallelism), composed of reusable steps with typed input/output schemas. They are the deterministic counterpart to [[Mastra Agents|agents]]: use a workflow when the process is known in advance and you want explicit control logic.
## Key aspects
- Reusable steps with input/output schemas and centralized **workflow state** for sharing values across steps without threading them through every schema
- **Suspend & resume**: pause at designated points, persist state, and resume later with new input, enabling human-in-the-loop approval and multi-session flows
- **Workflow runners**: delegate execution to platforms like Inngest or Temporal for step memoization, retries, [[Durable Execution|durable execution]], and monitoring at scale
- Visualized as DAGs in [[Mastra Studio]]
## References
- https://mastra.ai/docs/workflows/overview
- https://mastra.ai/docs/workflows/suspend-and-resume
## Related
- [[Mastra AI]]
- [[Mastra Agents]]
- [[Durable Execution]]
- [[Mastra Studio]]
- [[Agentic Engineering]]