Sub topic 12
Escalating from a service agent to a human
This chapter assumes you know the basics of topics, instructions, and actions, and that you have seen how a service agent runs in a messaging channel. It covers how an Agentforce service agent hands a conversation to a person, what you must configure for that to work, and the failures you will probably hit.
Why escalation is part of the design
A service agent talks to customers, and some conversations should not stay with the agent. The customer may be upset, the request may be outside every topic, or the issue may need a judgment call or an approval. An agent that keeps trying in those cases frustrates the customer and can produce wrong answers.
Plan escalation as a normal path through the agent, not an error case. Decide up front which situations end in a human handoff, then build for them.
Escalation applies to service agents because they face customers in channels where a human service rep can take over. An employee agent usually has no handoff. The employee is already inside Salesforce or another internal tool and can contact a colleague or administrator directly. The sample "My Open Cases" topic reflects this: when data is off-limits, the agent says so and suggests contacting an administrator.
The pieces involved
Escalation depends on four parts that work together.
| Part | Role |
|---|---|
| Escalation topic | Tells the agent when to hand off and what to say. Service agent templates usually include one. |
| Transfer action | The action the topic calls to start the handoff. |
| Omni-Channel flow | Decides where the conversation goes: a queue, a skill-based route, or a specific agent. |
| Messaging channel session | Carries the conversation, with its transcript, from the agent to the human rep. |
Omni-Channel is Salesforce's routing system. It sends work items, such as a chat session, to available service reps based on queues, skills, capacity, and presence status. The agent does not choose a person. It requests a transfer, and the routing configuration picks the destination.
The names of the standard topic and action can differ between releases and templates. Open your agent in Agentforce Builder and check what your org provides before copying a setup from documentation.
What happens during a handoff
The steps in order:
- The customer sends a message. The reasoning engine selects the escalation topic because the customer asked for a person or the message matched the topic's classification description.
- The agent tells the customer what happens next. This message should come before the transfer.
- The agent calls the transfer action.
- The Omni-Channel flow runs and picks a route.
- A rep who is available and has capacity accepts the work item, sees the transcript, and continues in the same conversation.
Writing the escalation topic
An escalation topic follows the same structure as any other topic: a classification description that helps the agent choose it, a scope, and instructions. The wording of the classification description controls how often the agent escalates.
Topic: Escalation
Classification description: Customer asks for a human, is frustrated or upset, or the request is outside every other topic.
Scope: Hand the conversation to a human agent through Omni-Channel. Do not try to solve the issue.
Instructions:
- Tell the customer you are connecting them with a person and that they may wait briefly.
- Call the Transfer to Human action.
- If no human is available, apologize, tell the customer the support hours, and offer to take a callback request.
- Do not promise a wait time.
- Do not continue troubleshooting after the transfer has started.Three points in this example matter.
- The scope forbids solving the issue. Without that line, the agent may start answering and then transfer in the middle of a reply.
- "Do not promise a wait time" prevents the agent from inventing a number. The agent has no live view of queue length unless you give it an action that returns one.
- The no-availability line gives the agent a defined path when routing fails.
Escalation inside other topics
The order status example from the topic chapter already contains an escalation rule: if the action returns "Order not found", ask the customer to check the number once, then offer a human. Rules like this belong in the topic where the failure occurs. They set a retry limit, one more attempt here, so the customer is not stuck in a loop.
Common triggers worth writing explicitly:
- The customer asks for a person, in any wording.
- An action fails or returns nothing useful after one retry.
- The customer repeats the same question, which suggests the answers are not helping.
- The request involves a decision the agent is not allowed to make, such as a refund over a limit.
- The conversation touches a sensitive subject your policy reserves for people.
Configuring routing
Handoff only works if Omni-Channel is set up correctly. A typical checklist:
- Omni-Channel is enabled and presence statuses exist for your reps.
- A queue exists for the team that receives escalations, with the right members.
- An Omni-Channel flow routes the incoming session to that queue or to a skill-based route.
- The messaging channel the agent uses is linked to that flow as its escalation route, with a fallback queue for when the flow cannot decide.
- Reps have the permissions and capacity settings they need to accept messaging sessions.
Test this configuration on its own before you test the agent. If you can route a normal messaging session to a rep without the agent, routing works, and any remaining problem is in the agent's topic or action.
Context that travels with the conversation
A human who joins knowing nothing forces the customer to repeat everything. The transcript carries the conversation. You can also carry structured context, such as the verified customer record, the topic that failed, and a short summary, if your routing flow and the agent's variables are configured to pass it. Decide what the rep needs in the first ten seconds and make sure each item is passed. Treat whatever is passed to the rep as subject to the same access rules as everything else in your org.
Edge cases and failure modes
- No one is available. Outside business hours or when every rep is at capacity, the session can sit in a queue. Define business hours, a fallback queue, and the agent's message for this case. Otherwise the customer waits with no explanation.
- The agent never escalates. The classification description is too narrow, or other topics have descriptions broad enough to win. Test with phrases like "let me talk to a real person" and "this is useless".
- The agent escalates too often. The description is too broad, for example "any complaint". Then the agent hands off conversations it could have resolved, and the human queue fills with routine work.
- The transfer starts but the agent keeps talking. The instructions do not say to stop after the action. Add an explicit line.
- The channel does not support handoff. Not every channel works with Omni-Channel handoff. Confirm that your channel supports it before promising it in the design.
- Wrong destination. A flow that routes everything to one queue sends billing questions to a technical team. Pass the topic or intent to the flow and branch on it.
- Authentication gaps. If the human rep needs a verified identity, the agent should complete verification before the transfer, or the rep must do it after. Choose one and state it in the instructions.
Measuring escalations
Escalation rate is a useful signal, but it has no universal good value. A high rate with correct handoffs means your agent knows its limits. A high rate on simple questions means a topic or action is failing. Review escalated conversations by reason, such as customer request, action failure, or out of scope, and fix the most common one first. The testing and monitoring chapters cover the tools for this.
Exercise
A customer types "I want to speak to someone" and the agent keeps answering in the Order Status topic instead of transferring. Name two places to look, and one test you would run after the fix.
Show answer
Check the Escalation topic's classification description, which may not describe requests for a person, and check whether the Order Status description or instructions are broad enough to capture the message. Test again with several phrasings, such as "let me talk to a real person" and "get me a human", and confirm the agent calls the transfer action each time and that a rep receives the session.
Exercise
The agent calls the transfer action successfully, but the customer waits indefinitely at 2 a.m. What configuration and instruction changes prevent this?
Show answer
Define business hours and a fallback route in Omni-Channel so the flow can detect that no one is available. In the Escalation topic, add an instruction for the no-availability case: apologize, state the support hours, and offer a callback request instead of leaving the customer waiting.