Sub topic 4
Choosing metrics that fit your agent
Prerequisites and scope
This chapter assumes you have built a simple agent in Agentforce Builder and know what topics, actions, and instructions are. You should also be comfortable reading percentages and group-by summaries. By the end, you will be able to pick a small set of metrics that match what your agent is for. You will also be able to compute them from conversation records and read them without being misled.
Metrics are the "monitor" step of the improvement loop. They tell you whether the agent is healthy and where to look first. They do not tell you why a conversation failed. That needs a review of individual conversations, which later chapters cover.
Start from the agent's purpose
A metric is only useful if it measures something the agent is supposed to do. Two agents in the same org can need very different numbers.
- A service agent that answers order questions exists to resolve requests without a human. Resolution rate and escalation rate matter most.
- An agent that helps employees find policy answers exists to give correct, grounded answers. Feedback signals and answer quality matter more than escalation.
- A sales assistant that books meetings exists to complete an action. The count of completed actions matters more than the length of the chat.
Write the purpose as one sentence before you pick numbers. For example: "Resolve order status questions without a human, and hand off returns cleanly." That sentence suggests the metrics: share of sessions resolved, share escalated, and whether returns go to a person with the right context.
Core metric families
Most agents need a few metrics from each of these families.
| Family | Example metric | What it tells you | Common trap |
|---|---|---|---|
| Outcome | Resolution rate | Share of sessions where the customer's need was met | Depends on how "resolved" is defined |
| Handoff | Escalation rate | Share of sessions passed to a human | Low is not always good |
| Feedback | Thumbs up or down rate | How users rate individual responses | Few users give feedback |
| Volume | Sessions per day, per topic | Where demand is | Growth can hide falling quality |
| Behavior | Action success rate, turns per session | Whether actions run and conversations are efficient | Short is not always good |
Exact metric names and availability in Agentforce analytics change between releases. Check what your org's dashboards and exported data offer, and define any metric you compute yourself in writing.
Resolution rate
Resolution rate is the number of resolved sessions divided by all sessions. The hard part is the word "resolved." Decide up front what counts. Possible definitions include:
- The customer's last message was positive or there was no further contact.
- The agent completed the intended action, such as returning an order status.
- A reviewer marked the session as resolved after reading it.
Each definition has a cost. The first is cheap but noisy, since a customer who gives up looks like a customer who is satisfied. The second is precise but only works for action-driven requests. The third is accurate but slow, so you can only apply it to a sample. Pick one, write it down, and keep it stable so that trends mean something.
Escalation rate
Escalation rate is the number of sessions handed to a human divided by all sessions. A high rate can mean the agent is failing. It can also mean the agent is working as designed, for example when policy says refunds above a threshold always go to a person.
A very low escalation rate is not automatically good either. An agent that never escalates may be trapping customers in loops. Look at escalation together with resolution. If both are low, many sessions end with the customer abandoning the chat, which is the worst outcome.
Feedback signals
Feedback signals are direct ratings from users, such as a thumbs up or thumbs down on a response, and any comments. They are valuable because they come from the person who saw the answer. They are limited because only a small fraction of users respond, and those who do tend to be unusually happy or unhappy. Treat feedback as a pointer to conversations worth reading. Do not treat it as an unbiased score.
Computing metrics from session records
The following script computes resolution rate, escalation rate, and escalations per topic from exported session records. The field names are illustrative and are not an Agentforce schema. Map them to whatever your export contains.
from collections import Counter
# Hypothetical export of reviewed sessions. Field names are illustrative,
# not an Agentforce schema.
sessions = [
{"id": "s1", "topic": "Order Status", "resolved": True, "escalated": False},
{"id": "s2", "topic": "Returns", "resolved": False, "escalated": True},
{"id": "s3", "topic": "Returns", "resolved": False, "escalated": True},
{"id": "s4", "topic": "Order Status", "resolved": True, "escalated": False},
]
total = len(sessions)
resolution_rate = sum(s["resolved"] for s in sessions) / total
escalation_rate = sum(s["escalated"] for s in sessions) / total
escalations_by_topic = Counter(s["topic"] for s in sessions if s["escalated"])
print(f"Resolution rate: {resolution_rate:.0%}")
print(f"Escalation rate: {escalation_rate:.0%}")
print("Escalations by topic:", escalations_by_topic.most_common())The output is:
Resolution rate: 50%
Escalation rate: 50%
Escalations by topic: [('Returns', 2)]The overall numbers look mediocre but give no direction. The group-by line is the useful part: both escalations come from Returns, so that topic is the first one to review. This is the pattern to follow. Compute a headline rate, then split it by topic to find where the problem sits.
Segment before you conclude
An overall rate can hide the problem. If 90 percent of sessions are order status and those go well, the overall resolution rate looks healthy while Returns fails almost every time. Always segment by at least:
- Topic, to find which area of the agent is weak.
- Channel, since a web chat and a messaging channel can behave differently.
- Time period, to see whether a change helped.
- Customer type, if your business serves very different groups.
Segments also create a sample-size problem. Two sessions in a topic is an anecdote. Before you act on a rate for a segment, check how many sessions it contains. A table of counts next to the percentages prevents most false alarms.
Pairing metrics so they check each other
Any single metric can be gamed or can mislead. Pair metrics so that improving one at the expense of another becomes visible.
- Resolution rate with escalation rate. If escalation drops but resolution does not rise, customers are leaving.
- Resolution rate with feedback. If the agent marks sessions resolved while users rate responses down, your definition of resolved is too generous.
- Volume with outcome metrics. A new topic that attracts many sessions can pull the overall rate down even though nothing got worse in the old topics.
Set baselines and targets
A number has no meaning without something to compare it to. Before you change the agent, record a baseline: the metric values over a recent, representative period, such as two weeks of normal traffic. After a release, compare the same metrics over a period of similar length and similar traffic mix. Later chapters cover release validation in detail. For now, remember that you can only prove an improvement if you measured the starting point.
Targets should come from the business need and from what is realistic. A target such as "resolve 70 percent of order status sessions without a human" is testable. A target such as "make the agent better" is not.
Common mistakes
- Choosing a metric because the dashboard shows it, not because it reflects the agent's purpose.
- Changing the definition of "resolved" midway, which makes before and after numbers incomparable.
- Reading a segment with a handful of sessions as a trend.
- Optimizing escalation rate downward without checking that customers still get help.
- Treating feedback ratings as representative of all users.
Exercises
Exercise
Your overall escalation rate fell from 30% to 12% after a release, but resolution rate stayed at 55%. What does this combination suggest, and what do you check next?
Show answer
Fewer sessions reach a human, yet no more sessions are resolved. That suggests customers are abandoning conversations or being kept in loops instead of getting help. Check the sessions that ended with neither resolution nor escalation, read a sample of them, and look at feedback ratings and turns per session for the affected topics.
Exercise
A segment shows a 0% resolution rate for the topic "Cancellations" over the past week. List two checks to make before rewriting that topic.
Show answer
First, count the sessions in the segment. If there are only a few, the rate is not reliable. Second, confirm how "resolved" is defined for that topic. If cancellations are always handed to a human by design, a 0% agent resolution rate is expected, and the useful measure is whether the handoff included the right context.