# Mastra Workflows — TypeScript Agent Orchestration > Mastra Workflows defines multi-step typed agent flows in TypeScript. Build pipelines with .then(), .branch(), .parallel(), .while(). End-to-end type-safe. ## Install Copy the content below into your project: --- Source: https://tokrepo.com/en/workflows/mastra-workflows-typescript-agent-orchestration Author: