workflow command manages reusable multi-step workflows stored in .praison/workflows/.
Quick Start

Two Ways to Run Workflows

Template-Based Workflows
List Workflows
Execute Workflow
Execute with Options
Show Workflow Details
Create Workflow Template
Inline Workflows
Run workflows directly from the command line without creating a template file:Inline Workflow Format
CLI Options
Workflows use global flags (same as other commands):Workflow YAML Schema
framework: key
YAML workflow files accept a top-level framework: key. Only praisonai (case-insensitive) is supported by the native execution engine.
The
framework: validation only applies to the native YAML workflow executor (Workflow.run()). To run CrewAI or AutoGen, use the framework adapters path via praisonai --framework crewai agents.yaml — see Framework Availability for adapter details.Workflow File Format
Workflows are stored in.praison/workflows/ as Markdown files with YAML frontmatter:
How It Works
- Load: Workflow file is loaded from
.praison/workflows/ - Variables: Variables are substituted into step prompts
- Execution: Each step is executed sequentially with its configured agent
- Context: Results from each step are passed to the next
Examples
Research Workflow
Deployment Workflow
Release Workflow
Programmatic Usage
Best Practices
Auto-Generate Workflows
Fixed in PR #2147:
praisonai workflow auto was non-functional in all previous releases — every call raised a NameError on _models_cache and surfaced as Generation failed: in the CLI. The command now works as documented below.Available Patterns
Pattern Examples
Orchestrator-Workers
Orchestrator-Workers
Central orchestrator analyzes the task and delegates to specialized workers:Generated workflow includes:
- Orchestrator: Analyzes task, determines required workers
- Workers: Researcher, Analyst, Writer (run in parallel)
- Synthesizer: Combines all worker outputs
Evaluator-Optimizer
Evaluator-Optimizer
Iterative refinement with feedback loops:Generated workflow includes:
- Generator: Creates initial content
- Evaluator: Scores content (1-10), provides feedback
- Loop: Continues until score >= 7 or max iterations
Parallel
Parallel
Multiple agents work concurrently:
Routing
Routing
Classifier routes to specialized agents:

