Sub topic 5
Reading usage analytics and spotting trends
This chapter assumes you can build or edit a simple agent in Agentforce Builder. It also assumes you know what topics, actions, and instructions are, and that you can read percentages and group-by summaries. Here you will learn to read aggregate analytics so you can decide which conversations to open and review first.
What analytics are for
Analytics answer the question "where should I look?" They do not answer "why did this fail?" That second question needs a single conversation and its reasoning trace, which later chapters cover.
Aggregate views are good at three jobs:
- Showing whether volume and outcomes are moving over time.
- Splitting results by topic, action, channel, or period, so a weak area stands out.
- Giving you a baseline to compare against after a release.
They are poor at explaining individual failures. A 40% escalation rate tells you that something is wrong. It does not tell you whether the cause is a vague topic description, a broken action, or missing knowledge.
The signals worth watching
Most agent dashboards combine a few kinds of signals. Learn what each one measures and what it hides.
| Signal | What it tells you | What it can hide |
|---|---|---|
| Session volume | How much the agent is used | A rise may be growth, a marketing campaign, or a loop that creates duplicate sessions |
| Resolution rate | Share of sessions that ended with the customer's need met | Depends on how "resolved" is defined, so a loose definition inflates it |
| Escalation rate | Share of sessions handed to a human | A low rate can mean the agent never lets customers leave, not that it works well |
| Feedback (thumbs up or down) | Direct user opinion | Few users respond, and unhappy users respond more often |
| Topic distribution | Which topics get used | A large "no topic matched" share points to scope gaps |
| Action usage and errors | Which actions run and how often they fail | An action that never runs may be a routing problem, not a lack of demand |
Read these together. A falling escalation rate with a falling feedback score is a warning, not a success. The agent may be holding on to customers it cannot help.
Always compute a rate and a count
A percentage without a count misleads. "Returns escalation rate rose from 20% to 50%" sounds alarming. If the topic had 10 sessions last week and 4 this week, the change is two sessions of noise.
For each topic, keep both numbers in view:
- The count of sessions (the denominator).
- The rate (the numerator divided by the denominator).
Sort by the count of bad outcomes first, not by the rate. The topic with the most escalations is usually where review time pays off most. A small topic with a 100% escalation rate and three sessions can wait.
A worked example: group-by summary
If you can export reviewed sessions, a few lines of code reproduce what a dashboard shows. The field names below are illustrative and are not an Agentforce schema.
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())Running it prints:
Resolution rate: 50%
Escalation rate: 50%
Escalations by topic: [('Returns', 2)]The overall numbers look middling. The group-by view shows the real story: every escalation sits in Returns, and Order Status resolves everything. The next step is to open the Returns sessions, not to rewrite the whole agent.
Spotting trends
A single number is a snapshot. Trends need a time axis and a stable comparison.
Compare like with like
Compare the same weekday span and the same channel. Weekend traffic often differs from weekday traffic in topic mix and in how many users want a human. Compare a full week to a full week.
Look for step changes and drifts
Two shapes appear most often:
- A step change is a sudden jump on a specific date. Look for what changed that day: a new agent version, an edited topic, a changed action, an updated knowledge article, or an outage in a connected system.
- A drift is a slow slide over weeks. Suspects include stale knowledge, new products the agent has no topic for, and seasonal shifts in what customers ask.
Keep a change log
Trends are only readable if you know what you changed and when. Keep a simple log with the date, the agent version, and what was edited. Without it, a step change in a chart becomes a guessing game.
Common errors when reading analytics
- Treating resolution as accuracy. A session marked resolved may contain a wrong answer the customer accepted. Sample resolved sessions too, not only escalated ones.
- Ignoring the "other" bucket. Sessions where no topic fit, or the agent fell back to a default response, show demand your topics do not cover.
- Averaging across channels. A chat widget and a phone-adjacent channel may behave very differently. Split by channel before concluding anything.
- Reacting to small samples. Set a minimum count before you act, such as 30 sessions in a topic, and tune it to your volume.
- Changing several things at once. If you edit three topics and one action in the same release, a metric change cannot be traced to any of them.
- Chasing feedback scores alone. Thumbs ratings come from a self-selected minority. Use them to find conversations to read, not as a final grade.
From a chart to a review queue
The goal is a short, ranked list of conversations to open. A practical sequence:
- Pick a window with enough sessions, such as the last full week.
- Group outcomes by topic and by action.
- Rank groups by number of poor outcomes (escalated, unresolved, or thumbs down).
- Compare the top group against its previous period to see whether it is new or chronic.
- Pull a sample of sessions from that group, including a few resolved ones.
- Record the group and your hypothesis, then open the sessions.
A hypothesis written before you open the session keeps you honest. For example: "Returns requests are being routed to the order topic." The conversation review then confirms or refutes it.
Using analytics after a release
The same views serve as your before-and-after check. Before you release a change, note the baseline for the affected topic: session count, resolution rate, escalation rate, and feedback. After the release, wait until the count is comparable, then compare. Look at neighboring topics too. Narrowing one topic's scope can push traffic into another topic and raise its escalation rate. That is a side effect to catch, not a sign the fix failed.
Exercise
Last week, the Returns topic had 8 sessions with 4 escalations (50%). The Order Status topic had 400 sessions with 60 escalations (15%). Which topic do you review first, and why? What would change your mind?
Show answer
Review Order Status first. It has 60 escalations against 4, so a fix there removes far more human handoffs, and 400 sessions give a reliable rate. The Returns rate rests on only 8 sessions and could be noise. You would switch priority if Returns grew in volume over the next weeks, if its escalations were high-value cases such as refunds with compliance risk, or if reading the 4 Returns sessions showed a clear and cheap fix.
Exercise
The escalation rate drops from 30% to 12% the day after a release, and thumbs-down feedback rises. What are two possible explanations, and what do you check?
Show answer
The new version may be handling more requests well, or it may be failing to escalate when it should and keeping customers in unhelpful conversations. Check the change log for what was released, then read a sample of non-escalated sessions from the new version, especially thumbs-down ones. Also check whether the escalation action or its conditions were changed.