---
title: "Handoff pattern for AI agents | Agentic Pattern Language"
description: "One agent passes the conversation to another that specializes in what comes next. Sourced from OpenAI, Microsoft, and LangChain."
url: https://agenticpatternlanguage.com/patterns/handoff/
---

9 [Systems of agents](https://agenticpatternlanguage.com/#systems-of-agents)

# Handoff

One agent passes the conversation to another that specializes in what comes next.

Also called Decentralized pattern, Handoff orchestration

OpenAI, Microsoft, LangChain

[How to read this](https://agenticpatternlanguage.com/notation/)

## Alternatives

* [Orchestrator and workers](https://agenticpatternlanguage.com/patterns/orchestrator-workers/)
* [Routing](https://agenticpatternlanguage.com/patterns/routing/)

## The problem

The right specialist becomes clear only partway through the work.

> This pattern is especially effective for scenarios like conversation triage, or whenever you prefer specialized agents to fully take over certain tasks without the original agent needing to remain involved.

OpenAI [A practical guide to building agents](https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf)

> Scenarios where expertise requirements emerge during processing, resulting in dynamic task routing based on content analysis

Microsoft [AI agent orchestration patterns](https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns)

## Therefore

> Handoffs allow an agent to delegate tasks to another agent. This is particularly useful in scenarios where different agents specialize in distinct areas.

OpenAI [Handoffs - OpenAI Agents SDK](https://openai.github.io/openai-agents-python/handoffs/)

> The handoff orchestration pattern enables dynamic delegation of tasks between specialized agents. Each agent can assess the task at hand and decide whether to handle it directly or transfer it to a more appropriate agent based on the context and requirements.

Microsoft [AI agent orchestration patterns](https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns)

## In use

Lyft, in its guest post on LangChain’s blog

> If the intent agent determines during a conversation that the user needs a more specialized agent, it uses Command(goto=..., graph=Command.PARENT) to hand control back to the meta agent, which re-routes to the appropriate specialist, for example, jumping from the driver intent agent to the damage claim agent mid-conversation.

LangChain [How Lyft Built a Self-Serve AI Agent Platform with LangGraph and LangSmith](https://langchain.com/blog/lyft-built-a-self-serve-ai-agent-platform-for-customer-support-with-langgraph-and-langsmith) May 27, 2026

## Where it breaks

Agents can bounce work between each other, and a bad transfer passes on muddled context.

> Avoiding an infinite handoff loop or avoiding excessive bouncing between agents is challenging.

Microsoft [AI agent orchestration patterns](https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns)

> Subgraph handoffs require careful context engineering.…Get this wrong and agents receive malformed conversation history or bloated context.

LangChain [Handoffs](https://docs.langchain.com/oss/python/langchain/multi-agent/handoffs)

## Sources

1. [A practical guide to building agents](https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf) OpenAI
   > In a decentralized pattern, agents can ‘handoff’ workflow execution to one another.
2. [Handoffs - OpenAI Agents SDK](https://openai.github.io/openai-agents-python/handoffs/) OpenAI
3. [AI agent orchestration patterns](https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns) Microsoft
   > The handoff orchestration pattern enables dynamic delegation of tasks between specialized agents.
4. [Handoffs](https://docs.langchain.com/oss/python/langchain/multi-agent/handoffs) LangChain
5. [How Lyft Built a Self-Serve AI Agent Platform with LangGraph and LangSmith](https://langchain.com/blog/lyft-built-a-self-serve-ai-agent-platform-for-customer-support-with-langgraph-and-langsmith) Akshay Sharma (Lyft), LangChain, May 27, 2026

Added Nov 14, 2026
