Skip to main content
Workflows that actually orchestrate - not just sequential agent calls. Each example demonstrates real workflow value: phase caching, parallel coordination, or conditional routing.
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.workflow import Workflow, Step

researcher = Agent(name="Researcher", model=OpenAIResponses(id="gpt-5.2"))
writer = Agent(name="Writer", model=OpenAIResponses(id="gpt-5.2"))

workflow = Workflow(
    name="Content Pipeline",
    steps=[
        Step(agent=researcher, task="Research the topic"),
        Step(agent=writer, task="Write based on research"),
    ],
)

workflow.run("AI trends in 2025")

Examples

Workflow Patterns

PatternExampleDescription
Sequential + CachingBlog Post GeneratorPhase checkpoints for efficiency
Parallel → SequentialCompany DescriptionGather concurrently, then synthesize
Conditional BranchingEmployee RecruiterDifferent paths based on output
Classification RoutingNotion ManagerRoute to different actions by type
See Workflow Patterns for detailed documentation.