Intelligent Routing
Choosing the right path automatically
TL;DR
Choosing the right path automatically
> Overview
Not every user request needs the same treatment. Routing classifies what the user wants and sends it to the best-fit handler: a cheaper model for simple questions, a specialized one for complex tasks. This is the single biggest lever for cost optimization in AI products and directly impacts your unit economics.
> Why This Matters for Your Product
A simple FAQ lookup does not need a $0.03/request frontier model. A $0.001 model works fine. But a complex multi-step analysis does need the expensive model. Smart routing can cut AI costs by 60–80% while maintaining quality where it matters. This module teaches PMs how to define routing categories, set cost tiers, and monitor misrouting rates.
> Interactive & tools
Pricing (per 1K tokens)
Approximate cost per 1K tokens (early 2026)
| Model | Input ($) | Output ($) |
|---|---|---|
| Claude 3.5 Haiku | 0.0008 | 0.004 |
| Claude Sonnet | 0.003 | 0.015 |
| Claude Opus | 0.015 | 0.075 |
| GPT-4o mini | 0.00015 | 0.0006 |
| GPT-4o | 0.0025 | 0.01 |
| Gemini Flash | 0.000075 | 0.0003 |
With smart routing, 100K requests/day can save $50K–$200K annually vs. sending everything to a frontier model.
Prices change frequently; check provider pricing pages.
Fallback chain
Fallback chain
If the first model’s output doesn’t meet the bar, automatically try a more capable model. Not the same as reflection (same model retrying).
Related Engineering Patterns
These are the technical patterns your engineering team will implement. Understanding them helps you have better conversations.
Key Product Decisions
- [01]What categories of requests does your product handle?
- [02]Which categories justify expensive models vs. cheap ones?
- [03]What is the acceptable misrouting rate before user experience degrades?
- [04]Should you expose the routing decision to users (e.g., Using advanced analysis)?
Ask Your Engineering Team
- →What is our classification accuracy for routing decisions?
- →What is the cost difference between our model tiers?
- →Can we A/B test routing strategies to optimize cost vs. quality?
- →How do we handle fallback when the cheap model underperforms?
Scenario
Routing tool selectionYour customer support tool ingests inbound emails. You need to send each email to one of 4 specialist queues: Billing, Technical, Sales, or General. Volume is 12,000 emails/day. The team is debating how to do the routing.
Emails are short (avg 80 words) and the categories are well-defined. Latency budget per email: under 500ms. The CFO is watching cloud spend.
Want the full PM curriculum?
This module is free. Sign up to unlock all 15 modules, interactive decision games, and the Developer track with 21 engineering patterns.
Sign Up Free