Home › AI Skills 2027 › Orchestration Patterns
AI SKILLS 2027 · 06 OF 10

Orchestration Patterns

One agent with the right tools solves most problems. Some jobs are too big, too wide or too varied for one agent, and splitting them up helps. The skill is knowing which kind of job you have, and coordinating the pieces so nothing is lost in between.

By Nimit Solanki, CTO of estaie15 min, interactiveBeginner friendly

Definition: Orchestration patterns are the standard ways of splitting work across AI model calls and agents, and coordinating them: chaining steps, routing requests, running work in parallel, delegating to workers, checking and retrying, and handing tasks from one agent to another.

1 The big idea

Split the work only when it helps

When people first build with AI agents, a common idea is to copy a company: a "manager" agent, a "researcher" agent, a "writer" agent, all talking to each other. It looks impressive in a diagram. In production it is often slower, more expensive and harder to debug than one well-built agent.

That does not mean one agent is always right. Some jobs really are better split up. Pricing 50 properties is 50 independent pieces of work that can run side by side. A guest message might need to go to a booking specialist or a maintenance specialist. A draft reply might be better after a second pass that checks it against the policy.

The useful question is not "how many agents?" It is "what shape is this work?" Is it a fixed sequence, a choice between paths, many similar pieces, or an open-ended problem? Each shape has a pattern that fits it. And for a lot of work, the best orchestrator is not an agent at all. It is ordinary code: a loop, an if-statement, a queue.

Think of a restaurant kitchen. A small café has one cook who does everything, and that works well. A busy hotel kitchen has stations: grill, sauces, pastry, and a head chef who checks every plate before it leaves. Stations help when there are many dishes at once. They hurt if every order has to be passed between five people, and nobody tastes the food before it goes out.

2 Interactive map

Six orchestration patterns

Click any pattern to see how it works, a real example, and the trap to watch for. Switch to Start here to see the baseline every pattern should be compared with.

TRY IT
Prompt chain Routing Fan-out Orchestrator Evaluator loop Handoffs

Prompt chaining

A fixed sequence of steps, each one a model call that takes the previous output as input. Code runs the sequence and can check the output between steps.

Read all 6 parts as text
Prompt chaining
A fixed sequence of steps, each one a model call that takes the previous output as input. Code runs the sequence and can check the output between steps. Example: For a new listing: step 1 extracts facts from the owner's notes, step 2 writes the description, step 3 translates it into Arabic. A check between steps confirms the bedroom count matches. Without it: One giant prompt tries to do all three at once, and when the result is wrong you cannot tell which part failed.
Routing
A first step classifies the request and sends it to the right specialist: a different prompt, tool set or model for each kind of request. Example: Guest messages are sorted into booking changes, maintenance issues and general questions. Maintenance goes to an agent that can open work orders. Nothing else can. Without it: One agent carries every tool for every case, gets confused about which to use, and has permissions it rarely needs.
Parallel fan-out
Many independent pieces of work run at the same time, each with its own small context, and the results are gathered at the end. Code usually does the splitting. Example: Nightly pricing: 50 properties, each checked by its own worker in parallel, 10 at a time. Each worker sees one property, its competitors and its rules. Without it: One agent works through all 50 in a row. It is slow, and its context fills with 49 properties it no longer needs.
Orchestrator and workers
A lead agent looks at an open-ended task, decides how to break it up, sends focused briefs to worker agents, then checks and combines what comes back. Example: For "why did bookings drop in the Marina last month?", the lead sends one worker to check prices, one to check reviews and one to check listing visibility, then writes the summary. Without it: Either one agent investigates everything with an overloaded context, or a fixed workflow misses the angle nobody planned for.
Evaluator and optimiser
One step produces a draft. Another step checks it against clear criteria and sends back specific feedback. Repeat until it passes or a round limit is hit. Example: A reply to a complaint is drafted, then checked: does it follow the refund policy, promise nothing we cannot do, and answer every question? If not, it is redrafted once. Without it: First drafts go straight out, including the ones that promise a refund the policy does not allow.
Handoffs
One agent passes the whole conversation or task to another, along with a summary of what it knows. The first agent then steps back. Example: A sales agent qualifies a corporate lead, then hands over to a bookings agent with a structured note: company, dates, number of guests, budget range, decision maker. Without it: The second agent asks the customer everything again, or misses the one detail that mattered, such as the budget ceiling.

These patterns combine. A real system might route a request, fan out the research, and run an evaluator loop on the final answer. Fixed patterns (chain, route, fan-out) are easier to predict and test. Agent-led patterns (orchestrator, handoffs) are more flexible, and harder to control.

3 Step-by-step simulator

One job, four ways it can go

The job: "Prepare tomorrow's pricing report for our 50 Dubai properties." Compare one agent doing it alone with an orchestrator and workers, then see what happens when a worker gets it wrong or a brief leaves something out.

SIMULATOR
  1. Requestuser
  2. Planorchestrator
  3. Brief workersorchestrator
  4. Workers runworkers
  5. Check resultsharness
  6. Combineorchestrator
  7. Deliverharness
Ready

One agent

A single agent does all 50 properties itself, one after another. It can work. Watch where it starts to strain.

Read the walkthrough as text

One agent

A single agent does all 50 properties itself, one after another. It can work. Watch where it starts to strain.

  1. The request arrives. A revenue manager asks for tomorrow's report at 18:00, as every day.
  2. The agent makes a plan. The agent decides to go through the properties in order: fetch occupancy, fetch competitor prices, propose a price, move on.
  3. It works, one property at a time. The first properties go well. But every tool result stays in the context: by property 30, the agent is reading through 29 earlier properties' competitor data to make each new decision.
  4. The strain shows. The context is close to full and each step is slower and more expensive than the last. Detail from early properties can be mixed up with later ones. The harness has to start trimming old results to keep going. Why it matters: A long single run is not broken, but the context becomes a junk drawer. This is exactly the shape of work where splitting helps.
  5. It finishes, slowly. The agent completes the report with little time to spare before the 19:00 review, and nobody can easily tell which properties got careful attention and which got a rushed decision.
  6. Delivered, with a lesson. The report is delivered. Nothing failed outright, but the shape of the job (many similar, independent pieces) points to fan-out.

Orchestrator + workers

The same job, split into 50 small, independent pieces. Code does the planning, because the steps are the same every night.

  1. The request arrives. Same report, same time.
  2. The plan is code, not a debate. The steps are identical for every property, so no agent needs to invent a plan. Code splits the job into 50 pieces, with a budget for the whole run. Why it matters: When the plan is the same every time, writing it in code makes it faster, cheaper and testable. Save agent-led planning for open-ended work.
  3. Every worker gets a complete brief. Each brief is filled from a template with required fields: the property, tomorrow's date, the owner's minimum price, the maximum change allowed per day, and the expected output format.
  4. Workers run side by side. Each worker sees only its own property and competitors. Its context stays small and focused. Workers cannot start more workers.
  5. Every result is checked in code. Each answer must match the output format, stay above the owner's floor and move no more than the daily step limit. All 50 pass.
  6. Combine the checked results. Only checked results are combined into the report, with a short summary of the biggest changes for the revenue manager.
  7. Delivered on time. The report is ready in minutes. In this setup the prices are suggestions: the revenue manager approves them before anything changes (the Suggest autonomy tier).

A worker gets it wrong

One worker misreads a competitor price and suggests a number that is wildly off. Without a check, it goes straight into the report.

  1. The request arrives. Same report.
  2. Plan. 50 tasks, 10 at a time, one budget.
  3. Brief. Complete briefs for all 50.
  4. One worker reads a price wrong. A competitor page lists a villa at "AED 4.500" with a full stop as the thousands separator. The worker reads it as four and a half dirhams, and suggests AED 45 a night for a villa usually priced around AED 4,500.
  5. The check catches it. AED 45 is far below the owner's floor and a 99% drop from today. The check rejects it and retries the worker once with the error explained. The retry is still wrong. Why it matters: In a multi-agent system, one worker's mistake can flow into the final answer and look just as confident as the rest. Checking each result before combining is what stops it.
  6. Combine, and say what is missing. The report includes 49 checked prices. The Palm villa is listed separately as "needs a person to check", with the reason, instead of being quietly dropped or guessed.
  7. Delivered, honestly. The revenue manager sees one flagged item at the top. It takes a minute to check by hand. The other 49 are unaffected.

Lost in the handoff

This time the orchestrator is an agent writing free-text briefs. It forgets to pass on one rule. The workers do exactly what they were told.

  1. The request arrives. Same report, but this team lets an agent write the briefs in its own words.
  2. The lead agent plans. The lead agent reads the owner contracts and the pricing rules, and plans the work.
  3. A brief leaves something out. The lead writes short briefs: "Price property X for tomorrow based on demand and competitors." It does not mention the owners' minimum prices. That information was in its context, but not in the briefs. Why it matters: A worker only knows what its brief says. Every handoff is a chance to lose context, and the agent writing the brief rarely notices what it left out.
  4. Workers follow the brief. Demand is soft this week. Four workers suggest prices below what the owners agreed to. They are not wrong given what they were told.
  5. The rule in code still holds. The owners' floors are checked in code against the contract data, not against the brief. Four suggestions are blocked and sent back with the floor stated.
  6. Combine. All 50 prices now respect the contracts.
  7. Delivered, and the brief is fixed. The team changes the setup so briefs are built from a template with required fields. A missing floor now stops the job before any worker runs.

The point: splitting the work made it faster and kept each context small. But the safety came from plain code around the agents: complete briefs, a check on every result, limits on delegation and one budget for the whole job.

4 Choosing

One agent, or several?

Stay with one agent when

  • Each step depends on the one before
  • The whole task fits comfortably in one context
  • Speed and low cost matter more than breadth
  • You cannot yet test what you have
  • The job is a conversation with one customer

Split the work when

  • The work breaks into independent pieces
  • Each piece needs its own focused context or tools
  • Different requests need different specialists or permissions
  • Quality improves with a separate checking pass
  • Pieces can run at the same time to save time
  • You can check each piece before combining

If you are unsure, start on the left. It is much easier to split a working single agent than to debug a team of agents that never worked.

5 Coordinate your agents

Turn on coordination rules. Watch the failures disappear.

These are the classic multi-agent failures: work lost between agents, agents disagreeing, costs that multiply. Tick the rules your system has and see which failures you are protected from.

TRY IT
0/8failure types covered
  • A worker never hears about the owner's minimum priceThe handoff dropped it.
  • Two agents tell the guest different check-in timesEach works from its own copy.
  • A simple question wakes up six agents and costs far more than it shouldNobody asked if one would do.
  • Agents keep delegating to each other and never finishNo limit on hand-offs.
  • One worker's wrong number ends up in the final reportResults are trusted blindly.
  • The combine step breaks because one worker replied in proseNo agreed output format.
  • The same lead gets two follow-up emails from two agentsTwo agents can take the same action.
  • Nobody can tell which agent made the bad callEach agent logs on its own.
Read which part prevents which failure
  1. A worker never hears about the owner's minimum price: prevented by Structured briefs.
  2. Two agents tell the guest different check-in times: prevented by Single source of truth or One owner per action.
  3. A simple question wakes up six agents and costs far more than it should: prevented by Simplest pattern first or One job budget.
  4. Agents keep delegating to each other and never finish: prevented by Delegation limits or One job budget.
  5. One worker's wrong number ends up in the final report: prevented by Result checks.
  6. The combine step breaks because one worker replied in prose: prevented by Output schemas.
  7. The same lead gets two follow-up emails from two agents: prevented by One owner per action.
  8. Nobody can tell which agent made the bad call: prevented by Job-wide tracing.

Notice that "add another agent" fixes none of these. Every one is fixed by a rule about how agents connect. (Agents disagreeing can also be a useful signal: when two independent checks disagree, that is a good moment to ask a person.)

6 Optional: what it looks like in code

Fan-out with checks, in 14 lines

The orchestrator from the simulator, as plain code. No agent decides the plan, because the plan is the same every night. The highlighted line is what stops one bad worker from poisoning the whole report.

Python-style pseudocode
def pricing_report(properties, budget=Budget(model_calls=200)):
    briefs = [make_brief(p, date=TOMORROW, floor=p.owner_floor,
                         max_step=0.15, schema=PriceSuggestion)
              for p in properties]                # required fields, or it fails here
    results = run_parallel(price_worker, briefs, max_workers=10, budget=budget)
    good, flagged = [], []
    for brief, r in zip(briefs, results):
        if not within_rules(r, brief):              # schema, floor, step limit, sane range
            r = retry_once(price_worker, brief, feedback=r.problems)
        if within_rules(r, brief):                  # checked again after the retry
            good.append(r)
        else:
            flagged.append((brief.property, r))     # shown to a person, never guessed
    return combine(good, flagged)                   # the report says what is missing
price_worker is a small agent with read-only tools and no way to start other agents. run_parallel stops when the job budget runs out, so a stuck worker cannot run up the bill.

7 The rules I build by

Seven principles of orchestration

Start with one agent

Add agents only when you can name the problem they solve: a full context, independent pieces, different permissions or a needed second check.

Use code for the plan when you can

If the steps are the same every time, a loop or a queue is cheaper, faster and easier to test than an agent deciding what to do.

Split by independence, not by job title

Good splits are pieces that do not need each other. "Researcher", "manager" and "writer" agents that constantly talk are usually one job cut in the wrong place.

Treat every brief as a contract

Required fields, a clear goal, the rules that apply and the output format. A worker only knows what its brief says.

Check every result before you combine

Schema, ranges and business rules in code. A wrong answer from one worker should be flagged, not averaged into the report.

One owner for each real action

Many agents can read and suggest. Only one should be able to send the email, change the price or issue the refund.

Budget and trace the whole job

One cost cap, one delegation limit and one trace ID across every agent, so the job stops on time and you can follow what happened.

8 Common mistakes

Things teams say right before a multi-agent mess

"Let's build a team: a CEO agent, a manager agent and three specialists."

Org charts are for people, who need to divide work because each person is limited. Agents are cheap to copy and expensive to coordinate. Design around the shape of the work, not around job titles.

"More agents means more intelligence."

More agents means more model calls, more handoffs and more places to lose information. Multi-agent setups can use many times more tokens than a single agent. Sometimes that buys better results on wide, hard problems. Often it just buys a bigger bill.

"The agents can just talk to each other and work it out."

Free conversation between agents is hard to predict, hard to test and can loop. Prefer clear structures: code that sends briefs out and collects checked results back.

"The orchestrator will catch any mistakes."

The orchestrator is also a model. It can be just as confident about a wrong worker result as the worker was. Put the checks that matter in code between the workers and the final answer.

"Each agent gets its own copy of the data, to keep things simple."

Then two agents will eventually disagree about a price, an availability or a check-in time, and both will be sure. Agents should read from the same source of truth at the moment they need it.

9 Check yourself

Four quick questions

Question 1Every night you need prices for 50 properties, using the same steps each time. Which is the best starting design?

Question 2A worker suggests AED 45 a night for a villa usually priced around AED 4,500. What should the system do?

Question 3A bookings agent takes over from a sales agent but does not know the customer's budget. What is the best fix?

Question 4When is a multi-agent design most likely to be worth its extra cost?

10 Do this today

Six steps to simpler, safer orchestration

Pick one agent system you are building or buying. Work down this list. Your ticks are saved in this browser.

11 Questions people ask

Agent orchestration FAQ

What is AI agent orchestration?

Agent orchestration is how you coordinate several model calls or agents to complete one job: who does which part, in what order, with what information, and how the results are checked and combined. It can be done by code (a workflow) or by a lead agent that decides how to split the work.

When should you use multiple AI agents instead of one?

Use several agents when the work splits into independent parts that each need their own focused context, tools or permissions, or when a separate checking step clearly improves quality. For short, sequential or latency-sensitive tasks, one well-built agent is usually faster, cheaper and easier to debug.

What is the orchestrator-worker pattern?

In the orchestrator-worker pattern, a lead agent breaks an open-ended task into pieces, sends each piece to a worker agent with a focused brief, then checks and combines the results. It suits tasks where you cannot know the sub-tasks in advance. When the sub-tasks are always the same, plain code can do the orchestrating instead.

What is the difference between an AI workflow and an AI agent?

In a workflow, code decides the steps and the model fills in each one, for example extract, then write, then translate. In an agent, the model decides the next step itself, in a loop. Workflows are more predictable and easier to test; agents are more flexible for open-ended work. Many good systems mix both.

Why do multi-agent systems fail?

Common causes are context lost in handoffs, agents working from different copies of the data, one agent's mistake flowing into the final answer unchecked, agents delegating to each other without limit, and costs multiplying with every extra call. Most of these are fixed by structure around the agents rather than by better prompts.

Are multi-agent systems more expensive?

Usually, yes. Every agent reads its own context and makes its own model calls, so a multi-agent run can use many times the tokens of a single agent. That can be worth it for wide, valuable tasks, but it should be a measured choice with a budget for the whole job.

12 Glossary

Words you'll hear

Orchestration
Coordinating several model calls or agents so they complete one job together.
Workflow
A fixed sequence of steps defined in code, where the model fills in each step.
Agent
A model in a loop that decides its own next step, using tools, until the job is done.
Orchestrator
The code or lead agent that splits the work, sends briefs and combines results.
Worker
A focused agent or model call that handles one piece of a bigger job. Also called a sub-agent.
Prompt chaining
Running model calls in sequence, each using the previous output.
Routing
Classifying a request first, then sending it to the right specialist.
Fan-out
Running many independent pieces of work at the same time, then gathering the results.
Evaluator loop
One step drafts, another checks against criteria and gives feedback, until it passes.
Handoff
Passing a task or conversation from one agent to another, with a summary of what is known.

Finished this topic? Track your progress through all ten.

For teams

Want your team to design agent systems like this?

I run AI agents in production at estaie that set prices, find customers and look after guests. This page comes from building and running them.

WORKSHOP

AI Skills 2027, for your engineering team

A hands-on workshop where your engineers pick the right orchestration pattern for a real job in your business, and build it with briefs, checks and limits.

  • One skill in depth, or all ten as a bootcamp
  • On site in the UAE or remote
  • Your team leaves with working code, not slides
Enquire about a workshop
REVIEW

Have your agent system's design reviewed

I check how your agents split and hand off work, against the failure types on this page, and give you a written list of what to simplify or fix first.

  • For teams about to launch, or just after an incident
  • Plain-English findings your board can read
Ask about a review

The series

All ten AI Skills for 2027

  1. Harness Engineering
  2. Loop Engineering
  3. Context Engineering
  4. Tool Design
  5. Memory Architecture
  6. Orchestration Patterns
  7. Guardrails & Permissions
  8. Evals for Agents
  9. Human-in-the-loop Design
  10. Observability & Tracing

Published 2 December 2026. Written by Nimit Solanki from building production agents at estaie.

Get the free Playbook by email

Seven short lessons on taking an agent from prototype to production. One a day, free. You may also hear about my course and consulting. Opt out any time.

Your email is never shared.