Sub topic 13
When to Use Omni-Channel Instead of Queue-Based Routing
This chapter assumes you can create queues, write case assignment rules, and read basic Apex and SOQL. It compares two ways to get a case to an agent. Queue-based routing leaves cases in a shared list for agents to claim. Omni-Channel pushes each case to a specific agent. The chapter covers how each works, where each fails, and how to choose.
The problem with pull-based queues
With a queue, an assignment rule sets OwnerId to a queue. The case then sits in a list view until an agent opens it and clicks Accept or changes the owner. This is a pull model. Agents choose what to work on.
The pull model is simple and cheap to run. It also has weaknesses that show up as volume grows:
- Agents cherry-pick easy or high-priority cases, and hard cases age in the queue.
- Nobody controls how many cases one agent holds. One agent can accept ten cases while another has none.
- Routing ignores whether an agent is online, busy, or on break.
- Escalation rules are the only safety net. They react to age, so they fire after the damage is done.
Omni-Channel addresses these by changing who decides. Salesforce, not the agent, picks the next work item.
How Omni-Channel works
Omni-Channel is a routing engine in Service Cloud. It takes a work item, such as a case, a chat, or a messaging session, and offers it to an available agent. The agent accepts or declines the offer in the Omni-Channel utility in the Lightning console.
The main pieces are:
- Service channel. A service channel maps a Salesforce object to routable work. For cases, you enable the Case object as a service channel.
- Routing configuration. This sets the routing priority, the routing model, the capacity a work item uses, and how long an offer stays open before it is declined or rerouted.
- Queue. The same Queue records you already know. You attach a routing configuration to a queue. Work owned by that queue is then routed instead of left for agents to pull.
- Presence status. Each agent sets a status such as Available or On Break. A presence status is linked to one or more service channels. An agent only receives work for channels linked to their current status.
- Capacity. Each agent has a capacity number. Each work item uses some of it. When capacity is full, the agent receives no more work.
Queues are still the entry point. Omni-Channel does not replace the assignment rules or queues from earlier chapters. It adds a push layer on top of them.
Routing models
A routing configuration uses one of two models for choosing an agent.
| Model | How it picks an agent | Good fit |
|---|---|---|
| Least Active | The agent with the fewest open work items, measured against capacity | Even workload across a team |
| Most Available | The agent with the most unused capacity | Teams where agents have different capacities |
Routing priority decides the order in which waiting items are offered. A lower number means a higher priority. Give urgent queues a low number so their cases are offered first.
Skills-based routing
Plain queue routing sends a case to a team. Skills-based routing sends it to a person with the right abilities. You define skills such as "Billing" or "Japanese", assign them to agents with a level, and add skill requirements to a case through a routing rule. Omni-Channel then offers the case only to agents who hold those skills.
Skills-based routing helps when one queue serves mixed work. Without it, you would create many small queues, such as one per language and product. That multiplies assignment rule entries and leaves small queues starved when few agents are online.
What happens to escalation rules
Omni-Channel does not remove the need for escalation. A routed case can still be declined repeatedly, or all agents may be at capacity. Keep these points in mind:
- Escalation rules still evaluate case age and criteria. They can still reassign a case to another queue and notify a manager.
- When an escalation rule moves a case to a different queue, Omni-Channel routes it again using that queue's configuration.
- Business hours still define when escalation time counts.
- Once an agent accepts a case, the agent owns it. A queue-based safety net no longer sees it as queued, so the monitoring query for queue-owned cases will not list it.
That last point changes how you monitor. For queued work, the Owner.Type = 'Queue' query still finds cases that are waiting. For cases that are assigned but not touched, you need a report on owner, status, and last activity date.
Choosing among the three approaches
Three tools can drive prioritization and timing. They solve different problems, so the choice depends on the requirement.
| Requirement | Best tool | Reason |
|---|---|---|
| Send cases to the right team by field values | Assignment rules and queues | Simple, declarative, no extra licensing for routing |
| Keep agent workloads balanced and avoid cherry-picking | Omni-Channel | Pushes work using capacity and presence |
| Route to agents with specific abilities | Omni-Channel with skills | Matches skill requirements to agents |
| Take action when a case is too old | Escalation rules | Age-based, runs on business hours |
| Guarantee response times per customer contract | Entitlements and milestones | Tracks time targets per case, with actions on violation |
| Low volume, small team, one queue | Queues only | Omni-Channel adds setup with little benefit |
Omni-Channel is not a substitute for escalation rules or milestones. It decides who gets a case now. Escalation rules and milestones decide what happens when time passes.
Trade-offs and failure modes
Omni-Channel brings costs that you should weigh before adopting it.
- Setup effort. You configure service channels, routing configurations, presence statuses, capacity, and agent permissions. Missing one piece means no work is offered, and the cause can be hard to see.
- Agent adoption. Agents must keep the utility open and set a correct presence status. Agents who forget to go offline can receive work they will not see.
- Capacity tuning. Set capacity too low and cases wait while agents sit idle. Set it too high and agents are overloaded.
- Console dependency. Push routing is done in the Lightning console with the Omni-Channel utility. Teams working in a standard Lightning app may not get offers.
- Declined work. If every agent declines, the case returns to the queue and is offered again. Without an escalation rule or an alert, it can loop.
- Data model. Omni-Channel stores routing state in separate objects such as
PendingServiceRoutingandAgentWork. Debugging means looking there, not only at the Case record.
You can still work with Omni-Channel from Apex. This snippet puts a case in a queue by DeveloperName, so the queue's routing configuration can pick it up. It reuses the pattern from the earlier Apex chapter.
Group tier2 = [
SELECT Id
FROM Group
WHERE Type = 'Queue' AND DeveloperName = 'Tier2_Support'
LIMIT 1
];
Case c = new Case(
Subject = 'Billing dispute',
Origin = 'Email',
OwnerId = tier2.Id
);
insert c;If the queue has a routing configuration and the Case service channel is enabled, Omni-Channel then offers the case to an available agent. If it does not, the case behaves exactly as in plain queue routing. For this reason, a queue-based design is a safe place to start. You can add Omni-Channel to an existing queue later without rewriting assignment rules.
A migration path
You do not need to switch everything at once. A low-risk order is:
- Keep your assignment rules and queues as they are.
- Enable the Case service channel and create a presence status for it.
- Create a routing configuration and attach it to one queue with moderate volume.
- Pilot with a small group of agents and compare time to first response.
- Add skills-based routing only if one queue needs to serve mixed work.
- Extend to other queues and keep escalation rules as the safety net.
Summary of the decision
Use queues and assignment rules when the team is small, volume is low, and agents can reasonably pick up work themselves. Move to Omni-Channel when you see uneven workloads, cherry-picking, long waits while agents are idle, or a need to match cases to skills. Add entitlements and milestones when the requirement is a contractual response time. Keep escalation rules in every case as the final safeguard.
Exercise
A support team has one queue, and agents often leave older, complex cases while taking easy new ones. Workloads are also uneven. Which tool addresses this, and which existing tool should you keep?
Show answer
Attach an Omni-Channel routing configuration to the queue, so Salesforce pushes cases to agents based on presence and capacity instead of agents choosing. Keep the assignment rules, which still put cases into the queue, and keep the escalation rules, which still catch cases that age without being handled.
Exercise
After an agent accepts a routed case, the query WHERE Owner.Type = 'Queue' AND IsClosed = false no longer lists it. Why, and what would you use to monitor accepted cases that are not being worked?
Show answer
Accepting the case makes the agent the owner, so the owner type is User, not Queue. Monitor these with a report or list view on open cases grouped by owner, with status and last activity date, and keep an escalation rule so stale cases are flagged.