New Tool Radar

AI Agents & Automation

How to Route an Agent Request to the Right Specialist by Intent

Route each agent request to the specialist whose description matches the request intent, and keep the router narrow.

Schematic with three steps: Write one-scope descriptions for each specialist; Let the coordinator route and nothing else; Run the five test requests and count.

Routing is the coordinator’s only job: read the request, pick the specialist whose description matches its intent, and hand it over. In Google ADK a coordinator agent lists sub-agents, and delegation keys off each specialist’s description field, so vague descriptions cause mis-routing. Write each description as a crisp statement of scope, such as handles billing questions about invoices and refunds, and nothing else. Keep the router narrow: it routes, it does not answer.

What you need

  • Two or more specialist agents, each with a written description
  • A coordinator agent that lists them as sub-agents
  • Five test requests covering each specialist plus one off-topic request

Step 1: Write one-scope descriptions for each specialist

Rewrite each specialist description to name exactly one kind of request it handles, with an example. Remove any wording that overlaps with another specialist.

Step 2: Let the coordinator route and nothing else

Give the coordinator an instruction to route only: pick the specialist whose description matches, and hand over. Do not let it answer questions itself.

Step 3: Run the five test requests and count mis-routes

Run each test request and note which specialist received it. An off-topic request should go to a named fallback, not to the nearest specialist. Fix the description that caused each mis-route.

Worked example: synthetic routing check

The table below is a synthetic example. It shows the expected result of intent routing; no agent was run.

Request Routed to Correct?
Refund for invoice A123 Billing Yes
Reset my password Technical Yes
Change my plan Billing Yes
Off-topic: weather today Fallback Yes

Expected result (UNTESTED). all four requests reach the right specialist or the fallback, with no mis-routes. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Routing keys off descriptions, so overlapping descriptions cause mis-routes.
  • A coordinator that also answers will sometimes answer instead of routing.
  • An off-topic request needs a named fallback, or it lands on the nearest specialist.
  • Routing adds a model call, so for one-specialist work skip the coordinator entirely.

Sources

See all