Registry advertises a retired worker
Detect: Dispatch rejects the capability version or endpoint.
Recover: Refresh the registry and select a compatible eligible route.
Select the appropriate agent or workflow from request intent, capability, authorization, and uncertainty while keeping routing decisions observable and reversible.
Dynamic routing maps an incoming request to an execution path using information available at runtime. The destination may be a specialist agent, a deterministic workflow, a clarification step, or a human queue. Routing should separate eligibility from preference: policy determines which destinations are allowed, then quality and operational constraints determine which eligible destination is best.
A classifier's confidence is not a calibrated probability unless validated as one. Preserve an ambiguity route and evaluate routing against downstream task outcomes. A route that looks semantically plausible can still be wrong if the selected worker lacks the necessary tool, geography, or data entitlement.
In a prototype, hand-labeled examples and a small rule table reveal the main intent boundaries before an LLM router is introduced.
Production requires a versioned capability registry, authorization filtering, calibrated acceptance thresholds, and a clear fallback for mixed intent. Log route reasons without exposing sensitive inputs.
At scale, routing also accounts for regional availability, tenant policy, queue pressure, and cost. Avoid rapid route oscillation by using stable decision windows and recording the chosen policy version.
Extracts language, product, tenant, channel, and explicit requested action.
Removes destinations that lack permissions, residency compatibility, or required capabilities.
Ranks eligible destinations and identifies ambiguity or unsupported requests.
Publishes versioned worker contracts, supported intents, and operational availability.
Compares chosen routes with corrections, escalations, and actual task completion.
flowchart LR
Q["Service request"] --> E["Eligibility filter"]
P["Identity and tenant policy"] --> E
E --> R["Intent router"]
R --> B["Billing workflow"]
R --> N["Network diagnostics"]
R --> C["Clarification queue"]
B --> O["Outcome evaluation"]
N --> O
C --> O
O --> D["Reviewed routing dataset"]Preserve the original request while extracting trusted identity and business context separately.
Apply tenant policy and capability requirements before any probabilistic classification result is considered.
Produce a structured route proposal with relevant evidence and an ambiguity indicator.
Confirm destination health and required tools; reject nonexistent or unauthorized route identifiers.
Send the minimum required request packet with route and policy versions attached.
Record corrections and unresolved cases for evaluation rather than automatically retraining on every user interaction.
Telecommunications · Illustrative enterprise scenario, not a reported customer outcome.
A telecom provider receives requests combining account charges, connectivity outages, and service changes across several countries.
Keyword routing sends an outage described as a billing problem to a team that cannot inspect network telemetry.
The assistant must identify the required capability and respect country-specific service access without losing mixed requests.
A policy filter constrains destinations, and a structured router selects billing, diagnostics, or a decomposition workflow.
When confidence is insufficient or a destination lacks required access, the request enters clarification rather than a random available worker.
Track task completion by route, correction rate, ambiguity rate, and routing overhead. Overall accuracy can hide failures in rare high-impact intents.
| Decision | Benefit | Cost |
|---|---|---|
| Model-based classification | Handles varied language and contextual intent. | Adds inference cost and requires ongoing calibration. |
| Rules before classification | Enforces stable eligibility and common cases cheaply. | Growing rule sets can become difficult to maintain. |
| Load-aware selection | Reduces queue delays when equivalent destinations exist. | Operational convenience must not override capability or policy. |
Detect: Dispatch rejects the capability version or endpoint.
Recover: Refresh the registry and select a compatible eligible route.
Detect: Repeated handoffs or unresolved subrequests appear in outcomes.
Recover: Use decomposition or ask a targeted clarification.
Enforce access independently at the destination.
Calibrate on representative held-out requests.
Include resolution quality, route cost, and escalation burden.