Loading patterns…
Content-Based Routing(CBR)
Routes requests based on content analysis and classification
In 30 seconds
- What
- Analyzes incoming content to classify it, then routes to specialized handlers based on detected topic, urgency, or type.
- When to use
- Multiple agent types handle different domains and you need automatic triage without predefined routing rules or user selection.
- Watch out
- Misclassification sends requests to wrong agents; verify classification accuracy on edge cases before production deployment.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
Content-Based Routing: Overview
Routes requests based on content analysis and classification
- Automatic content classification
- Topic-based routing decisions
- Multi-modal content analysis
- Dynamic routing rules
The Agent Architect
One pattern, one tradeoff, one production failure story. A short weekly briefing for people building agentic systems.
Weekly email, one-click unsubscribe. We only use your address to send the briefing.
References
The papers, specifications, and repositories this pattern is based on.
- Content-Based Routing in Information-Centric Networks (Zhang et al., 2018)
- Adaptive Content Classification for Dynamic Service Routing (Chen et al., 2021)
- Enterprise Integration Patterns: Content-Based Router - Hohpe & Woolf
- Spring Integration Content-Based Routing
- Kong API Gateway Content-Based Routing
From the engineer behind this catalog
Get your agent architecture reviewed
This page documents one pattern. Your system runs dozens, and most failures live in how they fit together. Have the whole design reviewed against the 288 patterns in this catalog: architecture, reliability, evaluation and cost, every finding mapped to the pattern that fixes it.
€750 instead of €1,500, one week, written report and walkthrough call, until 30 September