Start here
Overview
Routing decides who works what—and when it is wrong, teams lose trust in automation. This guide balances deterministic rules with light model assistance and clear overrides.
Core concept
Definition
Routing assigns records to owners or queues using geography, account attributes, product line, language, and rep capacity. It must be explainable to sales leadership.
Business impact
Why it matters
Bad routing creates revenue leakage and political conflict. Transparency and logs matter as much as algorithms.
Practical model
Framework
Layer rules
Start with hard filters: territory and segment. Then skills. Then load balancing among eligible reps.
Fallback queues
When no owner matches, route to an escalation queue with SLA—not a silent drop.
Implementation detail
Detailed breakdown
Model assist
Use classification for product intent when forms are incomplete—but expose confidence and allow rep reassignment with reason codes.
In practice
Real-world example
A multi-office firm combined ZIP-based territories with “overflow” pools during campaigns—preventing hotspots while maintaining audit trails of overrides.
Avoid these
Common mistakes
- Hidden routing tables in code only—ops cannot adjust during reorganizations.
- Ignoring PTO and capacity—SLAs burn out top performers.
Engineering layer
Technical patterns
Rule precedence
- Evaluate `global.vip` → `region.zip` → `round_robin(pool)` in fixed order.
- Log `matched_rule_id` on assignment for disputes.
Build patterns
Code examples
Layered routing
Explicit precedence avoids “magic” assignment.
export function routeLead(lead, rules) {
for (const r of rules.sort((a, b) => a.priority - b.priority)) {
if (r.when(lead)) return { owner: r.assign(lead), rule: r.id };
}
return { owner: 'unassigned-queue', rule: 'fallback' };
}System view
System architecture
[Lead + context]
→ [Rule engine: ordered predicates]
→ [Owner resolution]
→ [CRM assignment + notify]
→ [Audit: rule + inputs]Keep learning
Related topics
Next step
Need routing you can defend in a QBR? PrimeAxiom implements explainable assignment with CRM logs and manager controls.