Sub topic 12
Tuning escalation and human handoff
This chapter covers how to review, diagnose, and adjust the point where an Agentforce agent passes a conversation to a person. It assumes you can edit topics, instructions, and actions in Agentforce Builder. You should also be able to read a conversation's reasoning steps and compute basic rates, as covered in earlier chapters.
Why escalation needs its own tuning
Escalation is the agent's exit path. A good exit path sends the right conversations to people, at the right moment, with enough context for the person to continue. Two failures pull in opposite directions:
- Too little escalation. The agent keeps going when it should stop. Customers loop, get wrong answers, or abandon the chat.
- Too much escalation. The agent hands off conversations it could have resolved. Human queues fill up, and the agent saves little work.
A third failure is a bad handoff. The conversation reaches a person, but the person has no context, the queue is closed, or the customer must repeat everything.
Escalation rate alone cannot tell you which of these you have. A high rate may be healthy for an agent built to triage hard cases. A low rate may mean the agent is trapping customers. You must read the conversations behind the number.
Where escalation sits in the loop
Escalation tuning is one of the four fixes available after you classify a failure. The loop is still monitor, diagnose, change, test, release.
Diagnose before you change anything
Start with escalated sessions and sort them by cause. Take a sample of escalated conversations, and also a sample of non-escalated conversations that ended badly. The second group shows missed escalations, which the escalation rate cannot reveal.
For each conversation, ask:
- Was escalation correct? Did the customer need a person, for example for a policy exception, a complaint, or a request the agent has no action for?
- Was the timing right? Did the agent escalate at the first clear sign, or after several failed turns?
- Was the trigger legitimate? In the reasoning trace, did the agent choose escalation because of a rule you wrote, because no topic matched, or because an action failed?
- Was the handoff usable? Did the human receive the context they needed?
Record the answers in a simple table so patterns show up.
| Pattern | What you see | Likely cause |
|---|---|---|
| Unnecessary escalation | Agent could answer, but hands off early | Instruction says "escalate if unsure" with no definition of unsure; topic missing or too narrow |
| Late escalation | Customer repeats the request three or more times before handoff | No rule for repeated failure or explicit requests for a person |
| Missed escalation | Customer asks for a human, agent keeps answering | Escalation not reachable from the active topic |
| Dead-end handoff | Escalation fires but nobody picks up | Routing, queue, or business-hours configuration |
| Context-free handoff | Human asks the customer to start over | No summary or key fields passed to the human |
Fixing the trigger
Escalation in Agentforce is typically handled by a topic and an action that route the conversation to a person through Omni-Channel. The exact setup depends on your org and channel, so confirm the names in your own Builder. What you tune is when the agent decides to use it.
Write escalation rules as observable conditions. Compare these two instructions:
BEFORE
Escalate to a human if you are not sure how to help.
AFTER
Connect the customer to a human agent when any of these is true:
- The customer asks for a person, a manager, or a phone call.
- The customer has repeated the same request twice and your last two answers did not resolve it.
- The request is about a refund above the limit in the refund policy, or about a legal complaint.
- An action fails twice in a row.
Before connecting, tell the customer you are handing them to a person.The first version relies on the model's sense of uncertainty, which varies from one conversation to the next. The second names events you can see in a transcript, so you can check whether the agent followed it.
Keep escalation conditions separate from the topics where they apply. If a rule such as "customer asks for a person" applies everywhere, place it where it applies to every topic, not inside a single topic's instructions. The reasoning trace shows whether the escalation topic was even a candidate when the customer asked.
Use the fallback pattern from the earlier example. A topic that cannot find an order should say so and offer a human, instead of guessing:
If no order is found, say so and offer to connect the customer to a human agent.Fixing the handoff
A correct trigger still fails if the handoff is poor. Check these items:
- Availability. Check business hours and queue capacity. If no one is available, the agent should say so and offer an alternative such as a callback or a case, not claim a person is coming.
- Routing. Confirm the conversation reaches the intended queue or skill group. Escalations from a billing topic should not land in a general queue by default.
- Context passed. Decide what the human needs: customer identity, the order or case, what was tried, and why the agent escalated. Where your setup supports it, pass these as variables or a summary so the person does not ask again.
- Customer expectations. The agent should state what happens next and roughly how long it may take, only if your operations can keep that promise.
Choosing escalation metrics
Pair the escalation rate with measures that show whether escalation was appropriate. Using the group-by approach from earlier chapters, you can split escalations by topic and by reason.
from collections import Counter
# Hypothetical reviewed sessions. Field names are illustrative,
# not an Agentforce schema.
sessions = [
{"id": "s1", "topic": "Order Status", "escalated": False, "needed_human": False},
{"id": "s2", "topic": "Returns", "escalated": True, "needed_human": True},
{"id": "s3", "topic": "Returns", "escalated": True, "needed_human": False},
{"id": "s4", "topic": "Order Status", "escalated": True, "needed_human": False},
{"id": "s5", "topic": "Returns", "escalated": False, "needed_human": True},
]
escalated = [s for s in sessions if s["escalated"]]
unnecessary = [s for s in escalated if not s["needed_human"]]
missed = [s for s in sessions if s["needed_human"] and not s["escalated"]]
print(f"Unnecessary escalations: {len(unnecessary)} of {len(escalated)}")
print(f"Missed escalations: {len(missed)} of {len(sessions)} sessions")
print("Unnecessary by topic:", Counter(s["topic"] for s in unnecessary).most_common())The needed_human field comes from your manual review, not from the platform. It is a judgment you record for a sample, so treat the resulting rates as estimates. With a small sample, a few conversations can swing the numbers a lot.
Other useful signals include how many turns passed before escalation, how often customers asked for a person, and what share of handoffs were picked up. Feedback signals such as thumbs down on a turn before an escalation can also point to late handoffs.
Test the change
An escalation change can fix one case and break another. Tightening a rule may stop unnecessary handoffs but also block a needed one. Cover both directions in your regression set:
Test case: Customer asks for a person
User utterance: Can I talk to someone? This isn't working.
Expected topic: Escalation
Expected action: Connect to human agent
Expected response: Tells the customer a person will take over. Does not ask for more troubleshooting first.
Test case: Routine question is not escalated
User utterance: Where is my order 10482?
Expected topic: Order Status
Expected action: Order lookup
Expected response: Gives the status. Does not offer a human unless the lookup fails.Run the full set after each change, not only the new cases. Then release and compare escalation rate, unnecessary and missed escalation counts, and handoff pickup rate to the prior version. Allow enough traffic for the comparison to mean something, and watch for a drop in escalations paired with a drop in resolution. That combination means customers are being held in the agent, not helped by it.
Common mistakes
- Treating a lower escalation rate as success without checking for missed escalations.
- Writing "escalate when unsure" and expecting consistent behavior.
- Fixing the trigger but never testing the handoff end to end, including outside business hours.
- Passing no context, so the human restarts the conversation.
- Reviewing only escalated sessions and never sampling the ones that ended without a handoff.
Exercise
After a release, the escalation rate for the Returns topic fell from 30% to 12%, and the resolution rate stayed flat. What does this suggest, and what do you check next?
Show answer
Fewer handoffs without more resolutions suggests customers may be stuck or abandoning instead of being helped. Sample Returns sessions that ended without resolution or escalation, look for customers asking for a person or repeating requests, and check the reasoning trace to see whether the escalation topic was reachable. Count missed escalations before calling the change an improvement.
Exercise
Rewrite this instruction so a reviewer can verify it from a transcript: "Escalate when the customer seems frustrated."
Show answer
Name observable events, for example: "Connect the customer to a human agent if they ask for a person, if they have repeated the same request twice without resolution, or if they use the words complaint or cancel account." Each condition can be found in a transcript, so a reviewer can check whether the agent followed it.