Skip to content

What is AI orchestration?

Mykhailo Poliarush

Definition

AI orchestration is the coordination layer of an AI system. It decides which model, tool, data source or person handles each step, keeps the state of every run, retries or reroutes failed calls, and pauses for human approval where needed, so separate AI components behave as one process you can test and audit.

What does AI orchestration coordinate?

A production AI feature is rarely one model call. It reads data, calls one or more models, calls tools that change other systems, and sometimes waits for a person. Orchestration is the part that owns the run as a whole.

ComponentWhat the orchestration layer decidesExample
ModelsWhich model handles a step, what happens on timeout, when to fall back to anotherA large model drafts, a smaller one classifies, a second provider takes over on errors
Tools and systemsWhich calls are allowed, how often to retry, how to avoid doing a write twiceCreate a ticket, update a CRM record, send an email
DataWhat context each step receives, and where intermediate results are storedRetrieved passages, the run's state, files produced along the way
PeopleWhere the run stops for approval, who may approve, what happens if nobody answersLegal signs off before a contract summary goes to a customer

The model is one participant among four. Many of the failures this layer exists to prevent sit around the model, not in it: a retry that sends an email twice, a run that dies halfway and starts over, an approval that nobody recorded.

Which layer do people mean by AI orchestration?

Search results mix three layers that share the word. Each has its own tools, so check which layer a product covers before you compare it with another.

LayerWhat gets orchestratedExamples
ApplicationThe steps of one AI process: model calls, tool calls, state, approvalsLangGraph, Temporal
ML pipelinesTraining and data workflows built from containerized componentsKubeflow Pipelines, which compiles pipelines to YAML and runs them on Kubernetes or on Google Cloud Vertex AI Pipelines
ComputeWhere models run: GPUs, nodes, scalingKubernetes, which has had stable support for scheduling AMD and NVIDIA GPUs since v1.26

The Kubernetes side is simple in principle: a vendor device plugin exposes a resource such as nvidia.com/gpu, and containers request it like CPU or memory. GPUs go in the limits section; if you also set requests, the two must be equal (Kubernetes docs, last modified September 2024, an older page but the current official one).

The rest of this page is about the application layer.

How is AI orchestration different from an agentic workflow or agent orchestration?

TermScope
AI orchestrationAny system of models, tools, data and people, with or without agents
Agentic workflowOne design inside it: model calls along a path that your code defines
AI agent orchestrationAnother design inside it: several agents that hand work to each other

A team can need orchestration without any agent at all. A nightly job that summarizes documents with a model, asks a reviewer to approve them, and files the results still needs saved state, retries and an approval step.

What does an orchestration layer add over a plain script?

Four things a short script usually lacks:

  1. State that survives a crash. Temporal's docs describe durable execution: if the process running a workflow crashes, another process rebuilds its state and resumes where it stopped, with local variables and progress intact. Without that, the docs list what you build yourself: a state table, checkpoint columns, a reconciliation job, and retry logic at every call site.
  2. Retries and timeouts per external call. In Temporal, the calls that touch the outside world are Activities, and each gets a retry policy and timeouts from configuration.
  3. Pauses for a person. LangGraph's interrupts suspend a run, save its state through a checkpointer, and wait indefinitely until you resume with an answer. The docs ask for a durable checkpointer in production, backed by a database.
  4. Safe replays. On resume, LangGraph restarts the interrupted node from its beginning, so code before the interrupt runs again. Its docs say side effects placed before an interrupt should be idempotent: running them twice must not change the result.

Point 4 is the easiest one to miss in hand-built orchestration. Any system that resumes will replay some work, so every external write needs a key that makes the second attempt a no-op.

Example: checkpoint, fallback, approval and a write that happens once

This script runs a contract review with three steps: summarize with a model, wait for approval, write to a CRM. The primary model always times out, so the run falls back to a second model. The models and the CRM are stubs, so it runs offline. We ran it with Python 3.11 in an empty directory; delete run-42.json before you run it again.

# What an orchestration layer adds around model calls: saved state, retries with a
# fallback model, a pause for a person, and a side effect that runs once.
# Models and the CRM are stubs, so it runs offline.
import json, os, sys

STATE = "run-42.json"
CRM = []  # stands in for an external system
calls = {"primary": 0}

def primary_model(text):
    calls["primary"] += 1
    raise TimeoutError("primary model timed out")

def fallback_model(text):
    return "Renewal at 4% higher price, 60-day notice period."

def summarize(state):
    for model in (primary_model, primary_model, fallback_model):  # 2 tries, then fall back
        try:
            return {"summary": model(state["document"]), "model": model.__name__}
        except TimeoutError as e:
            print("  retry:", e)
    raise RuntimeError("all models failed")

def approve(state):
    if "approved_by" not in state:
        return "WAIT"  # pause: a person must decide before anything leaves the system
    return {}

def write_crm(state):
    key = f"run-42:{state['summary']}"  # idempotency key: a replay does not write twice
    if key not in {r["key"] for r in CRM}:
        CRM.append({"key": key, "note": state["summary"]})
    return {"crm_written": True}

STEPS = [("summarize", summarize), ("approve", approve), ("write_crm", write_crm)]

def run():
    state = json.load(open(STATE)) if os.path.exists(STATE) else {"document": "contract.pdf text", "done": []}
    for name, step in STEPS:
        if name in state["done"]:
            continue  # finished in an earlier run: skip, do not call the model again
        result = step(state)
        if result == "WAIT":
            json.dump(state, open(STATE, "w"))
            return f"paused at {name}, waiting for approval"
        state.update(result); state["done"].append(name)
        json.dump(state, open(STATE, "w"))  # checkpoint after every step
    return f"finished: {state['done']}"

print("run 1:", run())
s = json.load(open(STATE)); s["approved_by"] = "legal@example.com"; json.dump(s, open(STATE, "w"))
print("run 2:", run())
s = json.load(open(STATE)); s["done"].remove("write_crm"); json.dump(s, open(STATE, "w"))  # crash before the last checkpoint
print("run 3:", run())
print("model used:", s["model"], "| primary calls:", calls["primary"], "| CRM rows:", len(CRM))

Output:

  retry: primary model timed out
  retry: primary model timed out
run 1: paused at approve, waiting for approval
run 2: finished: ['summarize', 'approve', 'write_crm']
run 3: finished: ['summarize', 'approve', 'write_crm']
model used: fallback_model | primary calls: 2 | CRM rows: 1

Run 1 retries twice, falls back, saves the summary and stops at approval. Run 2 starts after a person approves: it reads the checkpoint, skips the summary step (the primary model count stays at 2) and writes to the CRM. Run 3 simulates a crash between the CRM write and the last checkpoint, so the write step runs again. The idempotency key keeps it at one CRM row. When we removed the key check, the same script ended with 2 rows: a duplicate record that nobody asked for.

When do you need an orchestration framework?

A framework is not needed when a request finishes in seconds, holds no state between calls, and changes nothing outside your app. A single function with a timeout is enough.

It starts to pay off when runs last minutes or days, when they wait on people, when they write to systems you cannot roll back, or when an auditor will ask who approved what. At that point you either adopt durable state, retries and interrupts from a framework, or you end up building the same parts by hand, as Temporal's list above describes.

What should you check before an orchestrated AI system goes to production?

  • Every external write has an idempotency key. Test it by replaying a step, as run 3 does above.
  • Every retry has a cap and a timeout, and the last fallback is a person or a clear failure, not an endless loop.
  • The checkpoint store is a database, not memory or a local file.
  • Approvals record who, when and what they saw. Check that a rejected run stops and leaves nothing half-written.
  • Fallback models pass the same evals as the primary, because a silent switch changes output quality.
  • Each run produces one trace across models, tools and approvals. The agent observability entry shows the span structure.

In our agentic process transformation work, each step of a redesigned process gets an owner (an agent, a script or a person), risky actions wait in an approval queue, and an audit log records what each agent did. For the evidence on why process design matters more than the model, read our analysis of AI agents in existing business processes.

Sources

  1. Understanding Temporal, Temporal Documentation, 2026-11
  2. Interrupts, LangChain Docs (LangGraph), 2026-11
  3. Persistence, LangChain Docs (LangGraph), 2026-11
  4. Kubeflow Pipelines overview, Kubeflow, 2026-06-13
  5. Schedule GPUs, Kubernetes Documentation, 2024-09-20

Frequently asked questions

What is the difference between AI orchestration and AI agent orchestration?

AI agent orchestration is one case of it: coordinating several agents that pass work to each other. AI orchestration also covers systems with no agents, such as a model-plus-approval pipeline; for the fixed-path design, see agentic workflow.

Which AI orchestration platform is best?

It depends on the layer. For the steps of an AI process, compare frameworks such as LangGraph and Temporal on durable state, retries and human approval; for ML pipelines, Kubeflow Pipelines or Vertex AI Pipelines; for GPUs and scaling, Kubernetes.

What is AI workflow orchestration?

Running the steps of one AI workflow reliably: in order, with progress saved, failed calls retried and approvals awaited. Temporal, for example, has you write the workflow as ordinary code and supervises each external call.

What is model orchestration in AI?

The routing part of orchestration: choosing which model handles each request, such as a small model for classification and a larger one for drafting, and switching to another model or provider when a call fails.

Building with AI agents? Talk to an engineer.