# Orchestration

> Orchestration is the coordination layer of an AI or automation system that decides which steps, models, tools or agents run, in what order, with what data, and what happens when a step fails.

Also called: AI orchestration, LLM orchestration, workflow orchestration, agent orchestration. Category: Agents and automation. Source: https://aibuildindex.com/glossary/orchestration

## In the index

- LangGraph: median $4,400, middle half $500 to $14,100, 216 priced briefs (https://aibuildindex.com/tools/langgraph)
- n8n: median $1,260, middle half $300 to $5,720, 3,548 priced briefs (https://aibuildindex.com/tools/n8n)
- LangChain: median $3,000, middle half $400 to $12,000, 695 priced briefs (https://aibuildindex.com/tools/langchain)

Orchestration is the conductor of an AI build. A single model call is simple, but a real system might retrieve documents, call a model, check the result, call a tool, ask a person, and retry if something breaks. Orchestration is the code or platform that runs that sequence, passes data between steps and keeps track of where each job has got to. For a business buyer it is where reliability, cost control and debuggability are either designed in or left out.

## How it works

An orchestration layer typically handles:

- **Sequencing and branching.** Which step runs next, based on fixed rules or a model's decision.
- **State.** What each running job knows so far, so it can pause, wait for an approval and resume.
- **Tool and model calls.** Invoking APIs, databases and models, sometimes choosing between models by task. See [model routing](https://aibuildindex.com/glossary/model-routing).
- **Failure handling.** Retries, timeouts, fallbacks and alerts. See [error handling](https://aibuildindex.com/glossary/error-handling).
- **Tracing.** Recording each step's inputs, outputs, time and cost so problems can be found. See [observability](https://aibuildindex.com/glossary/observability).

Tools vary by kind of work. LangGraph and similar frameworks orchestrate language model steps and agents in code. n8n, Make and Zapier orchestrate business workflows visually. Durable workflow engines such as Temporal handle long-running jobs that must survive restarts.

For example, a contract review system receives a document, splits it into clauses, runs extraction on each clause in parallel, merges the results, flags risky clauses with a model, waits for a lawyer to review them, and then writes the summary to the matter file. Orchestration is what keeps those steps in order and recovers if the model provider times out halfway through.

## What it means for cost

Orchestration affects both the quote and the running bill:

- **Framework choice.** Visual tools are faster to start; code frameworks give more control for complex or high-volume logic.
- **Durability.** Jobs that run for minutes or days, or wait for humans, need persistent state, which adds design work.
- **Cost control.** Good orchestration caps retries, loops and parallel calls, preventing runaway model spend.
- **Debugging.** Without tracing, fixing a failed multi-step job is slow and expensive.

Ask a builder which orchestration tool they plan to use, how a job recovers from a failure midway, and how you will see what each run did and cost.

## Common questions

### Is orchestration the same as an AI agent?

No. An [AI agent](https://aibuildindex.com/glossary/ai-agent) decides its own next steps inside a loop. Orchestration is the broader control layer, which may run fixed steps, agents, or several agents together. In a [multi-agent system](https://aibuildindex.com/glossary/multi-agent-system), orchestration decides how the agents hand work to each other.

### Do small projects need an orchestration framework?

Not always. A short, linear flow can be a few functions or a single no-code workflow. A dedicated framework earns its place when there are branches, long waits, parallel steps or a need to trace and replay runs.

## Related terms

- [Agentic workflow](https://aibuildindex.com/glossary/agentic-workflow): An agentic workflow is an automated process in which a language model makes some of the decisions, such as choosing the next step, calling a tool or judging whether output is good enough, inside a structure that the builder defines in advance.
- [Multi-agent system](https://aibuildindex.com/glossary/multi-agent-system): A multi-agent system is a design in which several AI agents, each with its own role, instructions and tools, work together on a task by passing work and messages between them, usually under a coordinating agent or fixed workflow.
- [Workflow automation](https://aibuildindex.com/glossary/workflow-automation): Workflow automation is the use of software to carry out a repeatable business process, moving data between systems and taking actions based on triggers and rules, so that people no longer do those steps by hand.
- [Error handling and retries](https://aibuildindex.com/glossary/error-handling): Error handling and retries are the parts of an automation or AI system that detect failed steps, try them again where that is safe, and report or park the work that still fails, so problems are noticed rather than silently lost.
- [Observability](https://aibuildindex.com/glossary/observability): Observability is the ability to see what a live system is doing and why, through logs, traces and metrics, so that errors, slow responses, rising costs and poor AI outputs can be found and explained.
- [Model routing](https://aibuildindex.com/glossary/model-routing): Model routing is the practice of sending each AI request to the most suitable model, for example a cheap, fast model for simple tasks and a more capable one for hard cases, based on rules or a classifier.
