Sub topic 5
Triage: deciding what to answer first
Triage is the practice of sorting incoming comments and messages so the most urgent and most important ones get answered first. This chapter assumes you already know the common message types (questions, complaints, praise, spam) and have set response-time standards. Here you combine those two ideas into a working order of operations.
Why triage matters
An inbox is rarely processed in the order messages arrive. If you answer oldest-first, a refund request about a broken product can sit behind forty "love this!" comments. If you answer whatever looks interesting, you will drift toward easy, pleasant replies and neglect the hard ones.
Triage gives you a repeatable rule for choosing the next message. It protects three things:
- Customers with real problems, who lose patience quickly and may post publicly.
- Your response-time standards, which are only meaningful if the urgent items actually meet them.
- Your own time, since spam and low-value messages should not consume attention that questions need.
The working model: urgency and impact
Two questions decide priority for most messages.
- Urgency: How quickly does the cost of waiting grow? A safety report or a payment problem gets worse by the hour. A compliment does not.
- Impact: How much is at stake if this goes wrong? Consider who can see the message (a public comment on a viral post reaches far more people than a private message), how serious the issue is, and whether it involves legal, safety, or privacy concerns.
Most teams turn this into a small number of priority levels.
| Priority | Typical content | Target action |
|---|---|---|
| 1. Urgent | Safety issues, legal threats, refund or order problems, account or payment trouble, public complaints gaining attention | Reply first, often escalate |
| 2. Question | Product, shipping, pricing, or availability questions | Answer within your standard response time |
| 3. General | Praise, reactions, tags, casual comments | Reply when time allows, in batches |
| 4. Spam | Scams, promotions, repeated junk links | Hide, delete, or report per guidelines |
Notice that spam is last for replying, but it is not ignored. Moderation actions (hiding or removing) are quick, and it is often worth doing them early so spam does not distract readers or other team members. The priority number describes the order of replies, not whether you look at the item.
Modifiers that change the order
The base category is a starting point. Adjust it with these factors.
- Visibility. A public complaint under a popular post usually moves up. The same complaint in a private message can wait slightly longer, because fewer people see it.
- Sender influence. A journalist, a partner, or a creator with a large audience may deserve faster attention. Be careful here: treat all customers fairly in the substance of your help, and use influence only to decide when to alert the right person.
- Age against the standard. If your standard is one hour for questions, a question at 50 minutes beats a fresh one.
- Repeat contact. A person writing a third time about the same problem is a stronger signal than a first message.
- Sensitive content. Anything involving health, minors, threats of harm, or personal data should go up and often needs escalation.
A triage flow
The flow below shows the order of checks. Safety and legal checks come before everything else, because their cost of being wrong is highest.
A simple rule-based triage in code
Before a team adopts a dedicated inbox tool, keyword rules show the idea clearly. The script below sorts a small inbox so urgent items come first and spam last.
from dataclasses import dataclass
@dataclass
class Message:
text: str
is_public: bool
SPAM_TERMS = ("free followers", "dm for promo", "click my profile")
URGENT_TERMS = ("refund", "broken", "unsafe", "lawyer", "scam")
PRIORITY = {"urgent": 1, "question": 2, "general": 3, "spam": 4}
def classify(msg: Message) -> str:
text = msg.text.lower()
if any(term in text for term in SPAM_TERMS):
return "spam"
if any(term in text for term in URGENT_TERMS):
return "urgent"
if "?" in text:
return "question"
return "general"
inbox = [
Message("Love this!", True),
Message("My order arrived broken. Can I get a refund?", False),
Message("DM for promo, free followers", True),
Message("Do you ship to Canada?", True),
]
for msg in sorted(inbox, key=lambda m: PRIORITY[classify(m)]):
print(classify(msg), "-", msg.text)Running it prints the broken-order message first as urgent, then the shipping question, then general, then spam. Python's sorted is stable, so messages with the same priority keep their original arrival order. That matches the oldest-first rule inside each level.
Where the rules fail
Keyword rules are blunt, and you should know their failure modes.
- False urgency. "This is a scam, great deal!" or "I love it, no refund needed" contain urgent words but are harmless.
- Missed urgency. "I've been waiting three weeks and I'm furious" has no listed keyword, so it lands as general.
- Spam order matters. The spam check runs before the urgent check. A real customer who writes "free followers scam, I want a refund" would be hidden as spam. Test the order of your rules.
- Language and slang. Misspellings, other languages, and sarcasm defeat simple matching.
- Questions without a question mark. "Tell me when it's back in stock" is a question that this code calls general.
Real inbox tools use similar rules, plus sentiment detection and machine classification. They share the same weaknesses, so a human should review the urgent and ambiguous items.
Handling the queue day to day
Good triage is a habit, not just a rule set. A practical routine looks like this.
- Scan first, reply second. Spend a few minutes sorting and tagging before writing anything. Replying while scanning pulls you toward whatever you read first.
- Clear the top level fully. Handle all urgent items and escalations before moving to questions.
- Moderate spam in one pass. Hide or report it together, so you do not keep stopping to deal with it.
- Batch general replies. Reactions and praise can be handled in a single block, often with light, personal responses rather than copy-pasted ones.
- Mark what is pending. If you are waiting on another team, tag the message so it does not look unhandled, and set a time to check back.
Here is an example of a triaged queue and the reasoning behind its order.
| Arrival order | Message | Visibility | Decision |
|---|---|---|---|
| 1 | "Love the new colors" | Public | Priority 3, batch later |
| 2 | "Is this safe for kids? My son got a rash" | Private | Escalate now: possible safety issue |
| 3 | "Where is my order? It's been two weeks" | Public | Priority 1, reply publicly and move to DM |
| 4 | "Do you restock in blue?" | Public | Priority 2 |
| 5 | "Click my profile for free followers" | Public | Spam, hide and report |
Message 2 is handled first even though it arrived second, because of the possible health issue. Message 3 follows because it is both a service failure and visible to others.
Common errors
- Triaging by arrival time only. Fast and fair-looking, but urgent items wait behind trivial ones.
- Triaging by mood. Answering what feels easy or fun leaves difficult messages aging.
- Too many priority levels. Six or seven levels slow the sorting itself. Three or four is usually enough.
- No escalation level. If safety and legal content is just "urgent", it may be handled by the person who happens to see it, rather than by the right team.
- Never reviewing the rules. New product launches and new scams change your message mix. Review keywords and categories regularly, for example monthly.
- Ignoring hidden channels. Message requests, filtered folders, and tagged mentions often sit outside the main inbox. Check them on a schedule.
Key points
- Triage orders the inbox by urgency (cost of waiting) and impact (what is at stake and who can see it).
- Check safety and legal content first, then spam, then complaints, then questions, then general comments.
- Adjust the base priority for visibility, repeat contact, message age, and sensitive content.
- Keyword rules are a useful starting point but produce false and missed alerts, so review urgent and ambiguous items by hand.
- Lower priority means later, not never.
Exercise
Your keyword rules check for spam terms before urgent terms. A customer writes publicly: "Your page got hacked and is sending 'free followers' links. This is a scam, I want a refund." How does the Python classifier from this chapter label it, why is that a problem, and what change would fix it?
Show answer
It labels the message "spam" because the text contains "free followers", and the spam check runs first. The customer would have the comment hidden and no one would reply, even though it contains a possible account compromise and a refund request. One fix is to check urgent terms before spam terms. A better fix is to flag messages that match both lists for human review, since they could be either real problems or spam that borrows urgent words.
Exercise
Three messages arrive at the same time. (A) A public comment: "Where is my order? Two weeks and nothing." (B) A private message: "Do you offer gift wrapping?" (C) A private message: "The heater I bought started smoking. Is that normal?" Put them in order and give a reason for each position.
Show answer
C, then A, then B. C describes a possible safety hazard, so it is escalated immediately and takes priority over everything. A is a service failure and is public, so others can see how fast you respond; reply publicly with an acknowledgement and move the details to private messages. B is an ordinary question, handled within the standard response time.