Sub topic 5
Triaging Incoming Messages
Triage is the first decision a team makes about a message, before anyone writes a reply. It answers three questions. What is this message? How urgent is it? Who should handle it? This chapter covers the first two steps and how to make them consistent. Priority levels and routing get fuller treatment in the next chapters.
This chapter assumes you know the major social platforms, what a support team does, and what a service level agreement (SLA) is. It also assumes you have met the response-time metrics from the earlier chapters.
Why triage exists
Social channels deliver a mixed stream. A single inbox can hold a question about pricing, a complaint tagged with a public handle, a compliment, spam, and a report that an account was hacked. If agents answer in arrival order, the hacked account waits behind the pricing question. First response time then looks fine on average while the worst cases go badly wrong.
Triage fixes this by sorting before answering. A good triage step has three properties:
- Fast. It takes seconds per message, not minutes. If triage is slow, it becomes the bottleneck it was meant to remove.
- Consistent. Two agents reading the same message reach the same result.
- Written down. The rules exist as a document or as code, so you can train people, test the rules and change them on purpose.
The triage steps
Most teams run the same sequence, whether a person or software performs each step.
- Filter. Remove spam, bot comments and messages that need no reply, such as a plain "thanks". Decide in advance whether these are closed silently, hidden, or logged.
- Classify. Label the message by type: question, complaint, bug report, purchase intent, safety or legal issue, praise, or other.
- Assess. Note the signals that raise urgency: certain keywords, strong emotion, the public reach of the author, and whether the message is visible to others.
- Prioritize. Assign a priority level from the classification and the signals.
- Route. Place the message in a queue or assign it to an agent. Routing is covered in a later chapter.
Signals that matter
Triage depends on signals you can observe quickly. The common ones fall into four groups.
| Signal | Example | Why it matters |
|---|---|---|
| Content keywords | "fraud", "hacked", "unsafe", "refund" | Points to money, security or safety harm |
| Visibility | Public post versus private message | A public complaint is seen by other customers |
| Reach | Follower count, verified status | A large audience can spread an issue quickly |
| Sentiment and history | Angry tone, repeated contact, earlier open case | Signals a relationship at risk |
No single signal is reliable. A user with 200 followers can report a real safety problem. A user with 2 million followers can ask a routine question. Triage rules work best when they combine signals and let the most serious one decide.
Writing triage rules as code
Even if your team triages by hand, writing the rules as a function forces you to make them precise. The example below assigns a priority from urgent keywords and public reach.
URGENT_WORDS = {"fraud", "hacked", "unsafe", "lawsuit", "refund"}
def priority(text, follower_count, is_public):
words = set(text.lower().split())
if words & URGENT_WORDS:
return "P1"
if is_public and follower_count >= 10000:
return "P2"
return "P3"
print(priority("My account was hacked", 120, False)) # P1
print(priority("Late delivery again", 50000, True)) # P2
print(priority("How do I change my plan?", 80, True)) # P3The order of the checks is the policy. Keywords are tested first, so a hacked-account report from a small private account still outranks a routine public post from a large one. Reverse the two if blocks and the behavior changes.
Known weaknesses of this function
The function is a teaching example. Real traffic will expose several problems:
- Punctuation.
"hacked!"does not match"hacked"becausesplit()keeps the exclamation mark. Strip punctuation before matching. - Word forms.
"hack","hackers"and"hacking"do not match. Add forms or use stemming. - Negation and context. "I love how you handled my refund" matches
refundand becomes P1. Keyword rules over-flag. - Other languages. English keywords miss messages in other languages unless you add lists for each one.
- Sarcasm. "Great, another delay" reads as praise to a keyword filter.
Over-flagging is not harmless. If too many messages become P1, the P1 queue fills and the label stops meaning "urgent". Treat the false-positive rate as something to measure, not ignore.
Testing the rules
Because the rules are code, you can test them against real past messages. Collect a sample of at least a few hundred, label each one by hand with the priority a senior agent would assign, then run the function and compare. Count two kinds of error separately:
- Under-triage. The rule gave a lower priority than the human. This is the dangerous error, because urgent messages wait.
- Over-triage. The rule gave a higher priority than the human. This costs agent time and dilutes the top queue.
Most teams accept some over-triage to keep under-triage near zero for safety, security and legal topics.
Where automation and people each fit
Software is good at the mechanical parts: filtering spam, matching keywords, reading metadata such as follower count and platform. People are better at tone, context and unusual cases. A practical design uses software to propose a priority and lets an agent confirm or override it. Record every override. A pattern of overrides on one rule shows where the rule is wrong.
Never let automation close a message in the P1 category without a human reading it. Later chapters on automation return to this limit.
Triage and response-time metrics
Triage interacts with the metrics from earlier chapters in two ways.
First, the clock. Decide when the first response clock starts: when the message is received, or when triage finishes. The standard choice is receipt, because the customer experiences the wait from the moment they sent it. If your triage takes 20 minutes, those minutes count against your target.
Second, the measure itself. The median first response time resists distortion from a few very slow cases better than the mean does. Report it per priority level, because a single blended number hides the fact that P1 messages may be handled quickly while P3 messages wait.
from datetime import datetime
from statistics import median
def first_response_minutes(received, replied):
return (replied - received).total_seconds() / 60
messages = [
(datetime(2026, 3, 2, 9, 0), datetime(2026, 3, 2, 9, 12)),
(datetime(2026, 3, 2, 9, 30), datetime(2026, 3, 2, 10, 15)),
(datetime(2026, 3, 2, 11, 0), datetime(2026, 3, 2, 11, 5)),
]
times = [first_response_minutes(r, a) for r, a in messages]
print(median(times)) # 12.0The three response times are 12, 45 and 5 minutes. The median is 12. The mean would be about 20.7, pulled up by the single slow reply.
Common errors
- Triaging by arrival order. This ignores urgency. Even a simple three-level system beats first in, first out.
- Too many categories. Fifteen message types slow agents down and produce disagreement. Start with five to eight.
- Judging by reach alone. Large accounts get attention, but a small account may report the real harm.
- Skipping the public check. A complaint visible to others needs a quick public acknowledgment even when the full answer has to move to a private channel.
- Never reviewing the rules. Product launches, outages and seasonal events change what messages look like. Review keyword lists regularly.
Summary of decisions to make
Before you go live with a triage process, settle these points in writing:
- Which messages are filtered out, and how they are recorded.
- The list of message types.
- The signals you check and which one wins when they disagree.
- Whether the response clock starts at receipt or after triage.
- Who may override an automatic priority, and how overrides are logged.
Exercise
A public post from an account with 40,000 followers says "Your app is slow today." A private message from an account with 90 followers says "Someone hacked me and changed my email." Using the priority function in this chapter, what priority does each get, and is that the right outcome? What would break if you swapped the order of the two if checks?
Show answer
The public post gets P2 (public, 40,000 followers, no urgent keyword). The private message gets P1 because "hacked" is in the urgent word list. This is the right outcome: a security problem outranks a slow-app comment regardless of reach. If you swapped the checks, the public post would still be P2, and the private message would no longer match the reach rule, so it would fall to P3. A hacked account would then wait behind routine questions. Note also that "hacked" in the second message matches only because it has no trailing punctuation.
Exercise
Your team collects 300 past messages and compares the function's priorities with a senior agent's labels. The function under-triages 4 messages and over-triages 60. Which number worries you more for safety and security topics, and what would you change first?
Show answer
The 4 under-triaged messages are the bigger concern, because those urgent messages would have waited. First, look at which 4 they were and what words or forms they used (for example "hacking" or "scam" or a non-English phrase), then add those terms or handling to the rules. Then work on the 60 over-triaged messages, since too many false P1 labels dilute the top queue. A common approach is to keep under-triage near zero for safety, security and legal topics and accept some over-triage there.