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

Workflow Patterns

Understanding workflow patterns helps you design workflows that fit your specific needs. Different domains and use cases require different structures, intent levels, and execution patterns.

Steps execute in a fixed order from start to finish. Each step leads directly to the next.

AspectDetails
FlowStep 1 → Step 2 → Step 3 → … → Final
Best forSequential processes where each step builds on the previous
ExamplesMeal planning, tax organizer, life review

Real-world example: Personalized meal planning

  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

User choice determines which steps execute next. Different paths lead to different outcomes.

AspectDetails
FlowStep → [Choice A → Path A] or [Choice B → Path B]
Best forWorkflows where user characteristics determine the approach
ExamplesWedding itinerary, course syllabus, room renovation

Real-world example: Wedding itinerary coordinator

  1. Venue type → [Indoor] or [Outdoor] or [Hybrid]
  2. If Outdoor → Weather contingency planning
  3. If Hybrid → Virtual setup coordination
  4. Vendor coordination (all paths)
  5. Day-of schedule (customized by venue type)

The same steps execute repeatedly with new content each cycle.

AspectDetails
FlowStep 1-N → [Repeat with new content]
Best forOngoing processes that produce multiple outputs
ExamplesRPG campaign sessions, SOP writer, content production

Real-world example: Tabletop RPG campaign builder

  1. Session concept → [Repeat per session]
  2. NPC creation
  3. Scene setup
  4. Key beats
  5. Generate session document
  6. [Back to step 1 for next session]

Collaborative facilitation — the AI guides, explores, and adapts based on user input.

Use for: Most workflows — creative, exploratory, collaborative

Instruction style: “Help the user understand X using multi-turn conversation. Probe to get good answers. Ask 1-2 questions at a time, not a laundry list.”

The LLM figures out: Exact wording, question order, how to respond

DomainExampleIntent Pattern
Creative writingNovel outliner”What does your character want?” Open-ended exploration
TravelTrip planner”What’s your ideal balance of adventure and rest?”
LearningPersonal tutor”How does YOUR brain work best?”
FitnessCoach”What truly motivates you?”

Exact compliance — the AI follows a specific script without deviation.

Use for: Compliance, safety, legal, medical, regulated industries

Instruction style: “Say exactly: ‘Do you currently experience fever, cough, or fatigue?’ Wait for response. Then ask exactly: ‘When did symptoms begin?’”

The LLM follows: Exact script, specific order, no deviation

DomainExamplePrescriptive Pattern
TaxYear-end organizerExact categories for compliance
LegalTermination checklistState-specific requirements verbatim
MedicalSymptom intakeClinical protocol, no variation

Framework prescriptive, content flexible.

Use for: Semi-structured domains where consistency matters but user input varies

DomainExampleBalance Pattern
EducationCourse syllabusFramework fixed, content flexible
Home improvementRoom renovationCode compliance prescriptive, design intent-based

Completes in one sitting. Simpler structure, no continuation logic.

AspectDetails
Best forQuick tasks, less than 8 steps
Init patternStandard step-01-init.md
State trackingNot needed
ExamplesTax organizer, SOP writer

Can stop and resume later. Tracks progress in output file frontmatter.

AspectDetails
Best forComplex tasks, 8+ steps, multiple sessions likely
Init patternContinuable step-01-init.md + step-01b-continue.md
State trackingstepsCompleted array in frontmatter
ExamplesNovel outliner, wedding itinerary, meal planning

State tracking example:

---
stepsCompleted: ['step-01-init', 'step-02-discovery', 'step-03-strategy']
lastStep: 'step-03-strategy'
lastContinued: '2025-01-15'
status: IN_PROGRESS
---
Step TypeUse CaseMenu Pattern
Init (non-continuable)Single-session startAuto-proceed
Init (continuable)Multi-session startContinuation detection
Continuation (01b)Resume workflowRoutes to next step
Middle (standard)Collaborative contentA/P/C menu
Middle (simple)Data gatheringC only
BranchUser choice determines pathCustom letters
Validation sequenceMultiple checksAuto-proceed
Final polishOptimize documentNone
FinalCompletionNone

Collaborative steps where alternatives are valuable.

Display: "**Select:** [A] Advanced Elicitation [P] Party Mode [C] Continue"

Use for: Creative exploration, quality gates, user input refinement

Data gathering or simple progression steps.

Display: "**Select:** [C] Continue"

Use for: Init steps, document discovery, simple progression

User choice determines different paths.

Display: "**Select:** [L] Load Existing [N] Create New [C] Continue"

Use for: Conditional workflows, alternative paths

No menu — automatic progression.

Display: "**Proceeding to next step...**"

Use for: Init steps, validation sequences

Steps append to a plan document, then a build step consumes it.

Step 1 → Creates plan.md
Step 2 → Appends requirements
Step 3 → Appends design
Step 4 → Build step consumes plan → Creates artifacts

Use for: Complex workflows requiring planning before execution

Steps append directly to the final document.

Step 1 → Creates final-doc.md
Step 2 → Appends Section 1
Step 3 → Appends Section 2
Step 4 → Polish step optimizes entire document

Use for: Most workflows — simpler, faster to results

No persistent document output — performs actions and reports.

Use for: Validation, analysis, data processing

Use this decision tree to design your workflow:

START: Creating a workflow
├─ Does the user need multiple sessions?
│ ├─ YES → Continuable (add step-01b-continue.md)
│ └─ NO → Single-session (simpler init)
├─ How do steps connect?
│ ├─ Fixed order → Linear
│ ├─ User choice → Branching
│ └─ Repeat content → Repeating loop
├─ What's the intent level?
│ ├─ Creative/collaborative → Intent-based
│ ├─ Compliance required → Prescriptive
│ └─ Mixed → Balanced
└─ What's the output pattern?
├─ Plan first, then execute → Plan-then-build
├─ Build directly → Direct-to-final
└─ No document needed → Analysis only
DomainStructureIntentSessionOutput
Meal planningLinearIntent-basedContinuableDirect-to-final
Tax organizerLinearPrescriptiveSingle-sessionAnalysis only
Novel outlinerBranchingIntent-basedContinuableDirect-to-final + polish
Wedding plannerBranchingIntent-basedContinuableDirect-to-final
RPG campaignRepeating loopIntent-basedContinuablePer-session output
Course syllabusBranchingBalancedContinuableStructured template
SOP writerRepeating loopPrescriptiveSingle-sessionIndependent outputs
ResourceDescription
What Are WorkflowsWorkflow concepts and architecture
Workflow CustomizationTri-modal structure and modification
Workflow SchemaTechnical reference