Sub topic 3
Measuring Response Time: First Response, Average Response and Resolution
Assume you know the basics of social platforms, support queues, and service level agreements (SLAs). An SLA is a documented promise about how quickly a team responds or resolves a request. Reliable response-time metrics depend on clear timestamps and consistent rules.
The three core metrics
First response time measures the time from the customer's message to the first human reply. An automated acknowledgement usually does not count unless your policy explicitly says it does.
Average response time is the arithmetic mean of response times across a selected set of messages or cases:
(response 1 + response 2 + ... + response n) / n
A few very slow cases can make this number look worse than most customers experienced. Report the median as well. The median is the middle value after sorting the times.
Resolution time measures the time from the initial customer message until the case is solved, closed, or otherwise given a defined final outcome. Define what “resolved” means before measuring it. A case should not be marked resolved merely because an agent sent a message.
Build a timestamp model
A simple case needs at least these events:
Store timestamps in a consistent time zone, preferably Coordinated Universal Time (UTC), and convert them for display. Record the channel, case identifier, priority, queue, and whether the reply was automated. Also record reopening events. If a customer reopens a closed case, decide whether that creates a new case or extends the original resolution time.
A first response can be calculated directly from two timestamps:
from datetime import datetime
from statistics import mean, median
def minutes_between(start, end):
return (end - start).total_seconds() / 60
cases = [
{
"received": datetime(2026, 3, 2, 9, 0),
"first_reply": datetime(2026, 3, 2, 9, 12),
"resolved": datetime(2026, 3, 2, 10, 0),
},
{
"received": datetime(2026, 3, 2, 9, 30),
"first_reply": datetime(2026, 3, 2, 10, 15),
"resolved": datetime(2026, 3, 2, 12, 0),
},
{
"received": datetime(2026, 3, 2, 11, 0),
"first_reply": datetime(2026, 3, 2, 11, 5),
"resolved": datetime(2026, 3, 2, 11, 20),
},
]
first_response = [
minutes_between(c["received"], c["first_reply"]) for c in cases
]
resolution = [
minutes_between(c["received"], c["resolved"]) for c in cases
]
print("Average first response:", mean(first_response), "minutes")
print("Median first response:", median(first_response), "minutes")
print("Average resolution:", mean(resolution), "minutes")Interpret the numbers
Compare metrics by channel, priority, day, and staffed versus unstaffed periods. A single overall average can hide that urgent complaints are waiting too long while routine questions receive quick replies.
Track the percentage of cases answered within the target as well as the average. For example, a 60-minute target is clearer when reported as “82% answered within 60 minutes” than as an average alone. Review outliers separately. They may indicate missing coverage, incorrect routing, or cases waiting for another team.
Exercise
Three cases have first response times of 5, 10, and 45 minutes. What are the average and median response times, and which better describes a typical case?
Show answer
The average is 20 minutes. The median is 10 minutes. The median better describes a typical case because the 45-minute delay pulls the average upward.