Skip to main content
Two agents run in order: a researcher gathers facts, then a writer summarizes them.

Quick Start

1

Drop the YAML in place

Save this as agents.yaml in an empty folder. Tasks run in the order they are declared — the researcher’s task first, then the writer’s.
2

Run it

Set your API key and run the file with the praisonai CLI:
Change the subject by editing the topic: line — it is interpolated into every {topic} placeholder.

How It Works

The single-brace {topic} interpolation here belongs to the roles-file YAML loader. The Python AgentTeam(variables={...}) path uses double-brace {{key}} placeholders instead — don’t mix the two.

Python equivalent

The same team using friendly top-level imports:

When to use this vs a workflow YAML


YAML Workflows

Loops, planning, memory, and routing in YAML

Prompt Chaining

Chain task outputs into the next step

Multi-Agent Execution

Configure iteration and retry limits

Multi-Agent Hooks

Add lifecycle callbacks between tasks