Skip to content
🤖 AI-optimized docs: llms-full.txt

Create Your First Workflow

Build a structured, step-by-step workflow using BMad Builder that guides users through complex tasks with progressive disclosure and focused execution.

  • How workflows use step-file architecture for disciplined execution
  • How to run the workflow builder with Wendy (workflow-builder)
  • How to define your workflow’s purpose and structure
  • How to create sequential steps with progressive disclosure
  • How to validate and test your workflow

A workflow is a structured process that guides an AI through tasks sequentially. Instead of one giant prompt, workflows break complex tasks into focused, sequential steps.

BenefitHow It HelpsExample
FocusEach step contains only instructions for that phaseMeal planning step focuses only on preferences, not shopping
ContinuityTrack progress across multiple sessionsNovel outlining remembers your last scene written
QualitySequential enforcement prevents shortcutsTax workflow ensures all deductions are explored
ReusabilityBuild once, use repeatedlyTrip planner works for any destination

A meal planning workflow breaks down into:

  1. Discovery — What do you like to eat?
  2. Assessment — Dietary restrictions, allergies, goals
  3. Strategy — Meal patterns, prep preferences
  4. Shopping List — Ingredients organized by store section
  5. Prep Schedule — What to prepare when

A trip planning workflow breaks down into:

  1. Destination Research — Budget, timing, interests
  2. Itinerary Building — Daily activities, balance of rest/adventure
  3. Budget Optimization — Where to splurge vs save
  4. Booking Schedule — When to book what for best prices

Workflows use step-file architecture:

my-workflow/
├── workflow.md # Entry point and configuration
├── steps-c/ # Create flow steps (loaded one at a time)
│ ├── step-01-init.md
│ ├── step-02-discovery.md
│ └── step-N-final.md
├── data/ # Reference materials, examples
└── templates/ # Output document templates

The key principle is just-in-time loading — only the current step is in memory. The AI can’t skip ahead or lose focus.

In your IDE (Claude Code, Cursor, etc.), invoke the create-workflow command with Wendy (workflow-builder):

[CW] or "create-workflow"

Wendy will ask how you’d like to start:

OptionWhen to Use
[F]rom scratchYou have an idea but nothing written yet
[C]onvert existingYou have a workflow to convert to BMad format

For your first workflow, choose From Scratch.

Wendy starts with discovery — understanding your idea before making technical decisions.

You’ll be asked:

“Tell me about your idea — what problem are you trying to solve? What’s the vision?”

Be ready to discuss:

  • What problem you’re solving
  • Who will use this workflow
  • What success looks like
  • Whether this is a one-time or repeated process

Once Wendy understands your vision, she’ll help classify the workflow:

TypeDescriptionExample
LinearSteps execute in fixed orderMeal planning, tax organizer
BranchingUser choice determines next stepsWedding itinerary (by venue type)
Repeating LoopSame steps reused with new contentRPG campaign sessions
TypeDescriptionWhen to Use
Intent-basedCollaborative facilitation, creative explorationCreative writing, trip planning
PrescriptiveExact compliance, regulated industriesTax preparation, medical intake
BalancedFramework prescriptive, content flexibleCourse syllabus, room renovation
TypeDescriptionWhen to Use
Single-sessionCompletes in one sittingQuick tasks, less than 8 steps
ContinuableCan stop and resumeComplex tasks, multiple sessions
TypeDescriptionExample
Document-producingCreates persistent output fileMeal plan, trip itinerary
Non-documentPerforms actions without persistent outputData validation, analysis

Wendy guides you through planning the workflow:

  1. Foundation — Name, description, location
  2. Design — Step sequence and menu handling
  3. Tools — What tools/workflows the workflow can access
  4. Requirements — Inputs, outputs, and validation rules

Start with 3-5 steps for your first workflow. You can always add more later. If a step feels too large, break it into smaller steps.

Workflow ComplexityTypical Steps
Simple3-5 steps
Moderate6-10 steps
Complex10+ steps

Now you create the actual step files. Wendy demonstrates progressive disclosure — each step is loaded only when needed.

Each step file contains:

ElementPurpose
FrontmatterStep name, description, file references
Step GoalWhat this step accomplishes
Execution RulesHow the AI should behave
InstructionsWhat the AI should do
MenuUser options (if applicable)

Most steps include a menu for user interaction:

Display: "**Select:** [A] Advanced [P] Party [C] Continue"
#### Menu Handling Logic:
- IF A: Execute {advancedElicitationTask}, then redisplay menu
- IF P: Execute {partyModeWorkflow}, then redisplay menu
- IF C: Save content to {outputFile}, then load {nextStepFile}

Before using your workflow, validate it:

[VW] or "validate-workflow"

Wendy checks:

  • Frontmatter is complete and correct
  • Step structure follows best practices
  • Menus are properly configured
  • Output format is valid

For high-capability LLMs (like Claude), use max-parallel validation:

[MV] or "validate-max-parallel-workflow"

This hyper-optimized validation uses task agents to validate multiple workflow aspects simultaneously in sub-processes for dramatically faster results.

Fix any issues Wendy identifies, then re-validate.

Once validated, install your workflow using the BMad installer. Then invoke it in your IDE:

/your-workflow-name

Run through the complete workflow end-to-end to verify it works as expected.

You’ve created a working BMad workflow with:

  • A defined purpose and clear structure
  • Sequential steps with progressive disclosure
  • Proper validation and error handling
  • Reusable architecture for repeated use

Your project now includes:

_bmad/
└── {module}/
└── workflows/
└── {your-workflow}/
├── workflow.md
└── steps-c/
├── step-01-*.md
└── step-N-*.md
ActionHow
Start building[CW] or create-workflow
Validate[VW] or validate-workflow
Max-parallel validate[MV] or validate-max-parallel-workflow
Edit existing[EW] or edit-workflow
Convert existingChoose [C]onvert option
Study examplesCheck src/workflows/workflow/ in BMB module

How many steps should my workflow have?

Start with 3-5 steps for your first workflow. You can always add more later. If a step feels too large, break it into smaller steps.

What’s the difference between single-session and continuable workflows?

Single-session workflows run in one sitting. Continuable workflows track progress in the output file frontmatter, so users can stop and resume later. Use continuable for complex tasks with 8+ steps.

Can I call other workflows from my workflow?

Yes! This is called workflow chaining. Workflows can be chained so outputs become inputs for the next workflow, creating effective pipelines like brainstorming → research → brief → PRD.

Do I need templates?

Templates are optional but recommended when your workflow produces a structured document (like a report, plan, or checklist). Templates ensure consistent output formatting.

ResourceDescription
What Are WorkflowsDeep technical details on workflow architecture
Workflow PatternsStep types and structure patterns
Edit Agents and WorkflowsModify existing workflows
Workflow SchemaTechnical reference for workflow configuration