Quick Start
1
Write a branching workflow
.praisonai/workflows/classify.md
2
Run it
step1’s output contains success, execution jumps to handle_success and skips handle_failure.How It Works
WorkflowManager evaluates each step’s branch_condition against that step’s output, then jumps to the first matching next step.
Configuration Options
Equivalent Python:
Common Patterns
Success/failure classifier — jump to a handler based on outcome:Best Practices
Name branch targets after real steps
Name branch targets after real steps
Every value in a
branch block must reference an existing ## step. Undefined targets are skipped.Make the match value explicit in step output
Make the match value explicit in step output
Instruct the step to state the match keyword clearly (“Reply with success or failure”) so the branch matches reliably.
Keep one branch block per step
Keep one branch block per step
Use a single
branch block per step for a clear one-to-many jump. Use next_steps frontmatter for the default path.Related
Conditional Execution
Task when / then_task / else_task syntax
YAML Workflows
Full YAML workflow reference
Workflow Routing
Python AgentFlow routing
Tasks
Task fields reference

