Sub topic 5
Reading usage analytics and spotting trends
This chapter assumes you can edit a simple agent in Agentforce Builder and know what topics, actions, and instructions are. It also assumes you can read percentages and group-by summaries. Analytics tell you where to look. They don't tell you why something failed. That comes later, when you read individual conversations.
What analytics can and cannot tell you
Usage analytics summarize many sessions at once. Typical views show how many conversations the agent handled, how many were resolved, how many were handed to a human, and how these numbers change over time. The exact dashboards and field names depend on your org and release, so check what your org offers.
A single number rarely helps. A 30% escalation rate may be fine for a billing agent and alarming for an order-status agent. Compare against your own baseline and the success metrics you chose earlier.
A three-step reading routine
- Look at the trend. Compare this week to previous weeks, not to an ideal number.
- Split by topic. An overall average can hide one bad topic.
- Sample conversations from the worst slice and read them.
Splitting by topic with a small script
If you can export reviewed sessions, a few lines of code do the same split. The field names below are illustrative, 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())The output is 50% resolution, 50% escalation, and [('Returns', 2)]. The overall rates look mediocre. The topic split shows that every escalation comes from Returns, so Returns is the first topic to review.
Common errors when reading trends
| Mistake | Why it misleads | Better habit |
|---|---|---|
| Reacting to a small sample | Two bad sessions out of four is noise or signal, and you can't tell which | Note the count next to every rate |
| Judging escalation as always bad | Some topics should hand off to a human | Compare against the intended design for that topic |
| Ignoring volume | A topic with a 40% escalation rate and 5 sessions matters less than one with 15% and 5,000 | Rank by escalations, not only by rate |
| Missing a cause outside the agent | A product launch, outage, or new customer segment can shift usage | Check what changed in the business that week |
| Changing several things at once | You can't tell which change moved the metric | Release one targeted change, then compare |
Marking releases on the timeline
Keep a short log of when you activated each agent version. When a trend line bends, the log shows whether a release or an outside event is the likely reason. This also prepares you to compare metrics before and after a release.
Exercise
An agent's overall escalation rate rose from 12% to 20% this week. The topic split shows Order Status at 5% and Returns at 45%, and Returns handled 40 sessions. What should you do first, and why?
Show answer
Open a sample of the escalated Returns conversations and read them. The topic split shows the rise is concentrated in Returns, so reviewing those sessions is the quickest way to find the cause. Also check your release log and recent business events for something that changed this week, such as a new return policy or an agent version change. Don't edit Order Status, since its rate is low.