How do agent skill proficiencies and weights refine skills-based Omni-Channel routing accuracy?
Answer
Basics: Not every agent can handle every case, for example "Spanish speaking" or "Billing, level 7+". Skills model that. Admins define Skills (Setup > Skills), assign them to agents with a level, then route work by required skills so that complex items reach experts.
How it works:
- Define Skill records; create a ServiceResource per agent user; add ServiceResourceSkill rows (Skill, resource, SkillLevel 0.0-10.0, dates).
- Enable Omni-Channel and Skills-Based Routing in Omni-Channel Settings.
- A routing request is created, either by the Omni-Channel Flow "Route Work" action (recommended) or by Apex inserting PendingServiceRouting (RoutingType = 'SkillsBased') plus SkillRequirement rows.
- Omni finds available agents (presence status, capacity) who satisfy requirements and pushes the item using the routing model (Least Active or Most Available).
Advanced / deep dive: A required skill with SkillLevel means "at least this level". Requirements marked IsAdditionalSkill are preferences used to rank otherwise-qualified agents rather than hard requirements; check the exact semantics in current docs. If nobody qualifies, the item waits; design fallback logic (timeout and reroute to a general queue, or lower requirement) to avoid starvation. Proficiency lets you model tiers, but too many fine levels make matching brittle, so keep it to a few bands. Skills can also be time-bounded (start/end dates) for training or temporary assignments. Skills-based routing is distinct from queue routing and from Field Service skills (similar objects, different use).
Code / config example:
// Route a case by skill (Apex alternative to the Route Work flow action)
PendingServiceRouting psr = new PendingServiceRouting(
WorkItemId = caseId, ServiceChannelId = channelId,
RoutingType = 'SkillsBased', RoutingPriority = 1,
CapacityWeight = 1, IsReadyForRouting = false);
insert psr;
insert new SkillRequirement(RelatedRecordId = psr.Id, SkillId = billingSkillId, SkillLevel = 7);
psr.IsReadyForRouting = true; // flip only after requirements exist
update psr;
Hidden gotchas & must-remember points:
- Insert PendingServiceRouting with IsReadyForRouting = false, add requirements, then set true.
- Agent needs a ServiceResource record, not just a user and a skill.
- Level comparison is "at least"; levels run from 0 to 10.
- No qualified, available agent means the item stays queued indefinitely.
- Presence status and capacity still apply on top of skills.
- Prefer Omni-Channel flows over custom Apex for new builds.
Best practice: Keep a small skill taxonomy, coarse levels, and an explicit fallback path for unmatched work.