Guides to agent workflows

Map your agent configuration before you build it

Each guide takes one way of passing work between AI agents and works through an example. You decide each agent's role, its tools and its handoff before anyone writes code.

FivePatterns covered
Orchestration patterns

Five orchestration patterns

Each pattern describes a different way agents hand work to each other. You can plan any of them on paper before you open an execution framework.

Prompt chaining

An agent's output becomes the next agent's input, each step building on the one before it, as Anthropic describes in its writing on effective agents.

Read about prompt chaining

Parallelisation

Several agents work the same task at once, and their outputs get compared or combined before anything moves forward.

Read about parallel agents

Orchestrator-workers

An orchestrator agent splits a task into pieces, hands each one to a worker agent, and assembles what comes back.

Read about orchestrators
The planning flow

From objective to agent configuration

A plan starts from what you want the agents to do. Each step below narrows it, from a loose objective to a set of roles you can carry into your execution framework.

  1. Describe your objective

    Write down what the agents need to accomplish, such as pulling data from several sources and producing a summary report. Keep it in your own words. The roles come from it in the next step.

  2. Split the work into roles

    Give each part of the work a named agent role. Each role gets a tool list, a trigger condition and a handoff target. Drawing the roles as boxes with arrows shows the handoff order before any agent runs.

    A first split can be wrong. You check it against what you actually need before going further.

    Matches what you need

    You move on to checking each role.

    Needs adjustment

    You change the role split, a tool list or the handoff order, and redraw the arrows.

  3. Check each role

    Each role needs a full description. That means a name, what it does, its tools, the condition that starts it and where it hands off next. Writing every role out in full catches the gaps a list of names hides.

    One tool, one role

    The tool stays assigned to the role that uses it and the handoff moves on.

    One tool, two roles

    You choose which role keeps the tool call and give the other a different tool or a narrower trigger condition.

  4. Carry it into your framework

    Once the roles and handoff order are set, you write them into the framework you build in.

    The plan gives you the roles, tools and handoff order. Wiring the agents into your framework's runtime is a separate step.

The result is a starting configuration. You still watch how it behaves once it runs, and adjust it from there.

How one plan fits the framework you build in

LangGraph

LangGraph runs a workflow as a graph of nodes and edges. Each step in your plan can become a node, and each handoff an edge.

CrewAI

CrewAI organises a workflow around named roles and the tasks they are given. The roles and tool lists in your plan can become CrewAI's agents, and the handoff order can set the order of its tasks.

n8n

n8n builds a workflow as a chain of connected nodes. Each role in your plan can become a node, and each trigger condition a connection between them.

AutoGen

AutoGen has agents take turns passing messages to each other. The handoff order in your plan can set which agent goes next, and the trigger conditions can set when.

Check before you run it

Each framework has its own rules. Check the plan against them before you deploy it.

Map your agent configuration before you write any code.

Every multi-agent system needs a decision about roles, tools and handoff order before anyone opens an execution framework. The guides walk through each orchestration pattern, from sequential chains to parallel execution, with a worked example and a structured configuration you can carry into your own build.