Sub topic 12
Handing off to a human
This chapter covers how to design escalation for requests an Agentforce agent should not handle. It assumes you know what topics and actions are, and that you have read the chapters on the agent user, permission sets, and instructions.
Why escalation is a guardrail
Permission sets and topics limit what an agent can do. They do not decide what the agent should do when a customer asks for something outside those limits. Without a defined path, the agent may guess, stall, or loop. Escalation gives it a safe exit: pass the conversation to a person who has the authority and context to handle it.
Escalate when:
- The request is out of scope, such as a refund, a price change, or an account change.
- The agent cannot find the data it needs, and a retry did not help.
- The customer asks for a person.
- The customer is upset, or the topic is sensitive.
The working model
Escalation has three parts that must all be present.
- A rule. The topic instructions state when to escalate.
- A mechanism. The agent has an escalation action, which usually routes the conversation to a person through Omni-Channel.
- A destination. A queue or flow with available, correctly skilled people.
If any part is missing, the handoff fails. A rule with no destination leaves the customer waiting. A destination with no rule means the agent never uses it.
Writing the escalation rule
Put the rule in the topic instructions, and make it specific. Name the trigger and the action to take. This is the example from the instruction chapter:
Only answer questions about the status of the customer's own orders.
Never share information about other customers.
Never offer refunds, price changes, or account changes. If the customer asks for one, tell them you are transferring them to a human agent.
If you cannot find the order, say so and ask the customer to confirm the order number.The third line is the escalation rule. It names three triggers (refund, price change, account change) and tells the agent to say it is transferring the customer. The fourth line sets a retry before giving up. If you add "then transfer to a human agent" after the retry, the agent has a complete path for the not-found case.
Connecting the escalation action
Rules in text only work if the agent has a way to act on them. In Agentforce, a service agent can be given an escalation action that hands the session to a person. In Service Cloud messaging, this is routed through a Omni-Channel flow to a queue. Check these points in setup:
- The agent's channel is connected to an Omni-Channel routing configuration.
- The queue has members who are online during the hours the agent is active.
- The routing flow passes the conversation context, so the person does not ask the customer to start over.
- The escalation action is included in every topic where escalation is expected, not only one.
What the human sees, and what they can do
The agent user is not the person who takes over. The human works under their own profile and permission sets. This has two effects.
- The human can often do things the agent user cannot, such as issue a refund. That is the reason for escalating.
- The conversation transcript may contain data the human is not allowed to see. Review what the handoff passes along, and keep it to what the receiving team needs.
Common errors
| Problem | Cause | Fix |
|---|---|---|
| Customer is told "transferring you" and nothing happens | Instructions say to transfer, but no escalation action or routing exists | Add the action and test the route |
| Agent escalates too often | Rules are broad, such as "escalate if unsure" | List specific triggers |
| Agent never escalates | Rule is missing from the topic that received the request | Add the rule to each relevant topic |
| Conversation sits unanswered | Queue has no one online | Set business hours and a fallback message |
| Customer repeats everything | Context not passed in the handoff | Include the transcript or summary |
Check your design
Test escalation as you would any guardrail. Send a refund request, a request for a person, and an order number that does not exist. Confirm that each reaches the queue, that the agent says what is happening, and that the human sees the context.
Exercise
A customer asks the order status agent for a refund. The agent replies "I am transferring you to a human agent," but no person ever joins. Name two things to check.
Show answer
Check that the agent has an escalation action, not only an instruction saying to transfer. Then check the routing: that the channel connects to an Omni-Channel flow and queue, and that the queue has agents online. Also confirm the escalation action is available in the topic that handled the request.
Exercise
Why should you keep the agent user's permissions minimal even when instructions tell the agent to escalate refund requests?
Show answer
Instructions are guidance the model follows, and it can fail or be bypassed by a crafted request. Permissions are enforced by the platform. If the agent user cannot issue refunds, a failed instruction still cannot cause one.