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 →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.
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.
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 →Routing reads the incoming request and sends it to the agent built for that job.
Read about routing →Several agents work the same task at once, and their outputs get compared or combined before anything moves forward.
Read about parallel agents →An orchestrator agent splits a task into pieces, hands each one to a worker agent, and assembles what comes back.
Read about orchestrators →One agent produces a result, a second checks it against a standard, and the first revises until it passes.
Read the evaluator-optimiser guide →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.
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.
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.
You move on to checking each role.
You change the role split, a tool list or the handoff order, and redraw the arrows.
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.
The tool stays assigned to the role that uses it and the handoff moves on.
You choose which role keeps the tool call and give the other a different tool or a narrower trigger condition.
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.
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 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 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 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.
Each framework has its own rules. Check the plan against them before you deploy it.
Decide which agent owns which part of the work
Two agents with the same responsibility usually means one of them is redundant or badly scoped.
Work out which agent gets which tool call
Giving two agents the same tool without a rule for who uses it when creates conflicts later.
Set the sequence one agent passes work to the next
The order decides what each agent can see when it starts, and what it has to ask for again.
Define what starts each agent
An agent without a clear trigger condition runs on every pass, whether the work needs it or not.
Set a limit before an evaluator agent sends work back
A refinement loop without an exit condition can hand work back and forth indefinitely.
Read the evaluator-optimiser guideDecide what each agent carries forward and what it drops
A context window that grows unchecked across handoffs slows every agent that inherits it.
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.