Workflow Patterns
Workflow patterns are reusable solutions to common workflow design problems.
Available Patterns
| Pattern | Use Case |
|---|---|
| Minimal Graph | Decide what earns a branch, a loop, or a separate agent turn |
| Information Collection | Gather agent capabilities or user preferences at workflow start |
| Skip Pattern | Allow users to skip optional steps |
| Validation Loop | Verify results and retry on failure |
| Repair Reach | Route a repair by where the correction actually landed |
| Branching | Different paths for different scenarios |
| Dynamic Files | Template-based file paths for reusability |
| Step Verification | Verify step completion before proceeding |
| Escalation | Handle failures with user intervention |
| Subagent Review | Delegate reviews to independent subagents |
| Completeness Self-Review | Check every requirement against the real artifact before delivery |
| Process Revision | Change a plan, checklist, or corpus from inside a running workflow |
| Replan Pattern | Revise a multi-step plan after execution has started |
| Operating Mode | Run unattended without losing reviews or authority gates |
| Workspace | Organize workflow files in a dedicated workspace directory |
| Notes Persistence | Store and retrieve data across steps and executions |
| Artifacts Publishing | Publish HTML content with shareable public URLs |
| Static Configuration | Store curated instructions as variableRegistry defaults for consistency |
| Anti-Patterns | Common workflow design mistakes to avoid |
Pattern Selection Guide
Unsure how many nodes the graph needs? → Minimal Graph
Need to collect configuration? → Information Collection
Need optional steps? → Skip Pattern
Need quality control? → Validation Loop
A small fix keeps paying for the whole validation chain? → Repair Reach
Need different paths? → Branching
Need reusable file references? → Dynamic Files
Need to verify completion? → Step Verification
Need failure handling? → Escalation
Need independent verification? → Subagent Review
Need to prove every requirement was met? → Completeness Self-Review
Need to change the process while it runs? → Process Revision
Need to revise a plan mid-execution? → Replan Pattern
Need the workflow to run unattended? → Operating Mode
Need organized working files? → Workspace
Need data to survive across executions? → Notes Persistence
Need to publish a shareable page? → Artifacts Publishing
Need consistent agent instructions? → Static Configuration
Need to avoid common mistakes? → Anti-Patterns