# What is the difference between queue-based routing and skills-based routing in Service Cloud?

**Topic:** Service Cloud · **Difficulty:** Medium · **Tags:** Service Cloud, Skills-Based Routing, Queue Routing

Read it on the site: https://www.forcechallenges.com/interview-questions/what-is-the-difference-between-queue-based-routing-and-skills-based-routing-in-service-cloud

## Answer

**Basics:** In queue routing you create queues (for example Billing, Tier 1), put agents in them, and either have agents pull work manually or let Omni-Channel push it. Skills-based routing adds a competency layer: Skills such as "Spanish" or "Networking" are assigned to Service Resources; work items declare required skills, so only qualified agents receive them. It reduces transfers and mis-routing.

**How it works:** Queue-based: Setup > Queues (supported objects), Routing Configuration (priority, capacity units per item, model Least Active or Most Available), link the configuration to the queue, enable Omni-Channel, Presence Statuses and Configurations. Skills-based: create Skills (Setup > Skills), assign them to agents (Service Resource records with skill levels), then route through an Omni-Channel flow (Route Work action, type Skills) or by creating `PendingServiceRouting` and `SkillRequirement` records.

**Advanced / deep dive:** Skills-based routing still honors agent presence and capacity; skills only filter the candidate set. Routing models: Least Active (fewest open items) and Most Available (highest unused capacity); external routing is available for custom engines. Mixed strategies are common: route to a queue first and fall back to skills, or use a flow that checks case fields to decide. Skill levels, additional "or"-style conditions and skill expiry exist, but keep skill taxonomies small, since maintenance is the main cost. Queue-based routing works for simple teams and is easier to audit; skills-based reduces queue sprawl for many product-language combinations. Both integrate with chat, messaging, voice and custom objects through service channels.

**Code / config example:**
```apex
// Skills-based routing from Apex (one case; bulkify by lists in production)
PendingServiceRouting psr = new PendingServiceRouting(
  WorkItemId = c.Id, ServiceChannelId = channelId, RoutingType = 'SkillsBased',
  RoutingPriority = 1, CapacityWeight = 1, IsReadyForRouting = false,
  RoutingModel = 'MostAvailable');
insert psr;
insert new SkillRequirement(RelatedRecordId = psr.Id, SkillId = skillId, SkillLevel = 3);
psr.IsReadyForRouting = true; // set last so skills exist before routing starts
update psr;
```

**Hidden gotchas & must-remember points:**
- Set `IsReadyForRouting = true` only after skill requirements are inserted.
- Skills-based routing does not replace presence and capacity; it adds a filter.
- Agents must be Service Resources with skills assigned, or no one matches.
- Queue-based push routing needs a routing configuration on the queue.
- No matching skilled agent means work waits, so configure fallback or overflow.
- Case assignment rules are separate from Omni-Channel routing.

**Best practice:** Start with queues, move to skills only where fine-grained matching measurably reduces transfers, and keep a fallback path.

---
Source: ForceChallenges · last updated 2026-11-02
