On this page
Recipes Guide
Complete guide to working with PraisonAI recipes
Recipes package agents, tasks, and tools so you can run repeatable workflows from YAML.
from praisonaiagents import Agent
agent = Agent(name="Recipe Runner", instructions="Summarise what PraisonAI recipes provide.")
agent.start("What can I do with recipes?")The user opens a recipe guide, configures roles, and runs praisonai recipe run with variables.
graph LR
subgraph "Templates"
U[๐ agents.yaml] --> A[โ๏ธ Recipe Run]
A --> O[โ
Output]
end
classDef input fill:#6366F1,stroke:#7C90A0,color:#fff
classDef process fill:#189AB4,stroke:#7C90A0,color:#fff
classDef output fill:#10B981,stroke:#7C90A0,color:#fff
class U input
class A process
class O outputQuick Start#
- Simple Usage
List and run a recipe from the CLI.
bash praisonai recipe list praisonai recipe run my-recipe - With Configuration
Pass variables into the recipe at run time.
bash praisonai recipe run my-recipe --var topic="AI agents"
How It Works#
sequenceDiagram
participant User
participant CLI
participant Recipe
User->>CLI: praisonai recipe run my-recipe --var topic=...
CLI->>Recipe: Load agents.yaml, bind variables
Recipe-->>CLI: Role outputs
CLI-->>User: Final resultRecipe Guides#
Learn how to create, use, manage, and debug recipes in PraisonAI.
Build your own recipes from scratch
Use Existing RecipesRun and configure existing recipes
Add Tools to RecipesConfigure tools for your recipes
Manage RecipesUpdate, edit, and delete recipes
Debug RecipesTroubleshoot recipe issues
Different Ways to CreateExplore all recipe creation methods
Quick Reference#
| Task | Command |
|---|---|
| List recipes | praisonai recipe list |
| Add from GitHub | praisonai recipe add github:user/repo/recipe |
| Add local | praisonai recipe add ./my-recipe |
| Run recipe | praisonai recipe run <name> |
| Get info | praisonai recipe info <name> |
| Validate | praisonai recipe validate <path> |
| Init new | praisonai recipe init <name> |
Best Practices#
Keep agents.yaml the single source of truth
Define roles, goals, tools, and tasks in one agents.yaml. Recipes stay portable when everything lives in the recipe directory.
Validate before you run
praisonai recipe validate <path> catches schema errors before execution. Wire it into CI so broken recipes never ship.
Parameterise with variables
Use {{task}}-style placeholders and pass values with --var key=value so one recipe serves many inputs.