What is a router agent?
A router agent is an agent that classifies an incoming request and sends it to the most suitable specialist agent, workflow, tool or model; it is often the entry point of a multi-agent system.
Unlike a supervisor agent, which stays in control and evaluates results, a router usually steps away after dispatching. Query routing is the RAG side of the same idea, sending a query to the right data source, while a router agent sends a request to the right agent or flow.
- Topic
- Agents and protocols
- Also known as
- Triage agent
How a router agent works
- Specialist agents or flows are defined along with the requests each handles.
- The router identifies intent with a language model or classifier.
- The request passes to the chosen agent with the context it needs.
- If intent is unclear, the router asks a clarifying question or sends the request to a general agent or a human.
In more detail
Routing methods: semantic routers, small classifiers and LLMs
In production, routing does not always require a large LLM. Teams often use embedding-based semantic routers or compact fine-tuned classifiers (such as ModernBERT or small language models of a few billion parameters) for low-latency routing, reserving an LLM router for ambiguous or multi-intent requests.
Multiple intents, confidence thresholds and fallback
Real user messages frequently carry multiple intents at once (for example, checking an invoice while updating a delivery address). Production routers support multi-label routing, priority rules or confidence thresholds that trigger a clarifying question or safe fallback when the top class score is too close to the runner-up.
Unauthorised agent handoff through routing
A router is a high-value security boundary: prompt injection can trick an LLM router into dispatching an untrusted user to an over-privileged internal agent. Downstream specialist agents must independently verify user identity and permissions rather than trusting the router's dispatch alone.
Commonly confused terms
| Term | How it differs |
|---|---|
| Model routing | Model/LLM routing selects which model tier (e.g., fast 8B local model versus large 70B reasoning model) handles a prompt based on complexity and cost, whereas agent routing selects functional domain specialists (billing versus logistics). |
Why a router agent matters for on-premises AI
A widely read engineering guide on agent systems defines routing as a workflow classifying an input and directing it to a specialised follow-up task, separating concerns and enabling more specialised prompts, since without it optimising for one input type can hurt others. It says routing works when distinct categories are better handled separately and classification can be done accurately. Because misclassification sends the whole flow to the wrong agent, router accuracy should be measured separately.
In a parcel carrier's call centre assistant, the router sends tracking, damage claim and invoice questions to separate specialist agents, asking the customer one clarifying question when intent is unclear.
Common questions
How does a router agent differ from a supervisor agent?
A router dispatches to the right agent and usually steps away. A supervisor stays in control throughout and evaluates results.
What if the router misclassifies?
The request reaches the wrong agent and the answer is wrong. Measure routing accuracy; use clarifying questions or human handover when unclear.
Related terms
Sources
In the glossary: Glossary, R to Z