Sub topic 2
Triage: deciding what to answer first
What this chapter assumes
This chapter assumes you have read the previous chapter on question types: content, technical, logistical, and personal. You should know how to read a short Python function, because the examples use one. You should also have worked in a course platform or discussion forum, so that terms like "thread", "tag", and "unanswered queue" are familiar.
Triage means sorting incoming questions so that the right ones get attention first. The word comes from emergency medicine, where staff cannot treat everyone at once. A course Q&A has the same constraint on a smaller scale. When you have 40 students, you can read every post the day it arrives. When you have 4,000, you cannot, and answering in the order posts arrive stops working.
Why first-come, first-served fails
A first-in, first-out queue treats every post as equally urgent. Consider three posts that arrive in a row:
- "Is the final project worth 30% or 40%?" (due in three weeks)
- "The assignment 2 upload button gives an error and the deadline is in two hours."
- "I am struggling a lot and thinking of quitting."
Answering them in arrival order serves the least urgent one first. The second post has a hard deadline. The third needs a human reply from the right person, not just a fast one. Triage fixes this by asking two separate questions about each post: what is it, and how soon does it matter?
The working model: category and urgency
A practical triage model scores each question on two independent axes.
- Category says what kind of help is needed and who should provide it. Typical categories are billing, technical, content, logistical, and personal.
- Urgency says how much delay costs the student.
Keep the axes separate. A billing question is not automatically low priority, and a content question is not automatically high priority. Category decides routing. Urgency decides order.
Signals that raise urgency
Urgency comes from the cost of waiting. Look for these signals:
- A deadline close to the post time. "Due tonight" outranks "due next month".
- Blocked progress. The student cannot continue without an answer, for example a broken download or a locked quiz.
- Money or access. A student charged twice, or locked out of paid content.
- Safety or wellbeing. Language about distress, harassment, or harm. These always go to a person, immediately.
- Many affected students. If ten posts report the same broken video, the real issue is one outage, not ten questions.
- Time-limited events. Live sessions, exams, and certificate windows.
Signals that lower urgency
- The question can be answered by an existing FAQ entry.
- The student is asking out of curiosity, not to get unblocked.
- The answer does not change anything the student will do this week.
Low urgency does not mean ignore. It means the post can wait, be batched, or be answered by a template or a peer.
A priority matrix
Combine the signals into a small number of levels. Three or four levels are enough. More levels make the rules harder to apply consistently.
| Level | Meaning | Example | Typical handling |
|---|---|---|---|
| P1 | Blocked now, or wellbeing or access at risk | Upload fails two hours before a deadline | Immediate, human, may escalate |
| P2 | Blocked soon, or money involved | Charged twice for the course | Same working day |
| P3 | Normal learning question | "Why does this loop run forever?" | Within the standard target |
| P4 | Informational, answered elsewhere | "Where are the slides?" | Template, FAQ link, or peer |
The handling column connects to later chapters. Target times for each level belong to the response-time chapter, and the decision to hand a P1 to someone else belongs to the escalation chapter. Here the aim is only to assign the level correctly.
The order of the checks matters. Safety comes first because it must never be hidden behind a lower rule. The FAQ check comes late because a student who is blocked should not be sent a link as a substitute for help.
Automating the category step
Category assignment is a good first candidate for automation because the rules are simple and mistakes are cheap to fix. The following function checks keywords in a fixed order and returns the first matching category. If nothing matches, it returns "general".
RULES = [
("billing", ("refund", "invoice", "charge")),
("technical", ("error", "install", "traceback")),
("content", ("lecture", "quiz", "slide")),
]
def triage(text):
lowered = text.lower()
for category, keywords in RULES:
if any(word in lowered for word in keywords):
return category
return "general"
print(triage("I get an error when I install the course files")) # technicalThe function lowercases the text once, then walks the rules in order. any(...) stops as soon as one keyword is found. The first matching rule wins.
Gotchas in keyword rules
Keyword triage is useful and also fragile. Know its failure modes before you rely on it.
- Order decides ties. "I was charged twice and now I get an error" matches both billing and technical. The function returns billing because that rule comes first. That is a reasonable choice here, since money outranks a generic error, but you should choose the order on purpose and write it down.
- Substrings match unexpectedly. The word "charge" matches "in charge of" and "discharge". Plain
inchecks substrings, not words. If this causes errors, match whole words with a regular expression. - Negation is invisible. "I do not need a refund" still matches billing.
- Language and spelling. Students write in many languages and make typos. Keywords written in English will miss them, and those posts fall into "general".
- The fallback hides misses. If "general" grows large, your rules are out of date. Review a sample of "general" posts regularly.
Keyword rules also say nothing about urgency. They assign a category only. To estimate urgency you need separate checks, such as a deadline lookup, which the next section sketches.
Adding urgency to the rules
You can extend the same idea to urgency, keeping it as a separate function so the two axes stay independent. This example assumes you know each assignment's due time. It is a sketch to show the structure, and the word lists are placeholders for your own.
from datetime import datetime, timedelta
WELLBEING = ("hopeless", "give up", "harass", "unsafe")
BLOCKED = ("cannot", "can't", "unable", "locked out", "fails")
def urgency(text, due_at, now):
lowered = text.lower()
if any(phrase in lowered for phrase in WELLBEING):
return "P1"
blocked = any(phrase in lowered for phrase in BLOCKED)
if blocked and due_at is not None and due_at - now <= timedelta(hours=24):
return "P1"
if blocked:
return "P2"
return "P3"
now = datetime(2026, 11, 28, 12, 0)
due = datetime(2026, 11, 28, 14, 0)
print(urgency("I can't upload my file", due, now)) # P1A wellbeing match returns P1 before anything else, mirroring the diagram. The deadline check uses a 24-hour window, which you should tune to your course. A flagged post is a prompt for a person to look, not a final judgment. Treat any automatic P1 as "a human must read this now", and let people downgrade it.
Handling duplicates and clusters
Many questions at scale are the same question. When a lecture video fails, dozens of students post within an hour. Triage should detect this pattern, because the best response is one fix and one announcement, not dozens of individual replies.
When you notice a cluster:
- Pick one thread as the main one and answer it fully.
- Link the others to it, or merge them if your platform supports merging.
- Pin or announce the resolution if the issue affects the whole course.
- Raise the priority of the main thread, since many students are affected.
The automation chapter covers how to detect near-duplicates in code. For triage, the point is the decision: a cluster is one incident with a higher priority, not many low-priority posts.
Who does the triage
At small scale, the instructor triages. At larger scale, split the work:
- A first reader (a teaching assistant or moderator) assigns category and priority and answers P4 questions from the FAQ.
- A category owner takes the posts routed to them: a subject expert for content, a support person for technical or billing issues.
- A named person handles any P1 wellbeing post. Decide in advance who that is, and what they do if they are away.
Write the rules down in a short document, with examples for each level. Triage rules that exist only in one person's head fail when that person is on leave, and new moderators will apply them differently.
Common errors
- Using too many levels. Moderators stop agreeing on what separates P3 from P4.
- Treating category as priority. Content questions are not less important than technical ones. A student blocked on a concept before a quiz is P1 too.
- Never reviewing the rules. Check each week for posts that were mislabeled, and adjust the keywords and thresholds.
- Answering the loudest student first. Repeated posts and capital letters signal frustration, not necessarily urgency. Read for the actual deadline and blocker.
- Skipping the acknowledgment. If a P1 needs time to fix, send a short reply right away saying you have seen it and what happens next.
Putting it together
A workable triage routine has five steps:
- Read the post and decide the category.
- Check the wellbeing, deadline, and money signals to set the level.
- Check whether it duplicates an existing thread or an FAQ entry.
- Route it to the category owner, or answer it yourself.
- Record any rule that failed, so the rules improve.
This routine gives you a defensible order of work. It also produces the data you need later, because a labeled category and level on every post make response-time targets and health metrics possible.
Exercise
A post says: "I was charged twice for the course and now I also get an error when I open lecture 3." It arrived at 9:00, and the student's next quiz is due in six days. Using the keyword function in this chapter, which category is returned, and which priority level would you assign by hand? Explain one reason the two answers might differ in how you handle the post.
Show answer
The function returns "billing", because the billing rule comes first and "charge" matches "charged". By hand, this is P2: money is involved and the student is partly blocked, but the quiz is six days away, so it is not P1. The handling differs because the post contains two issues. Billing is the routed category, but the lecture error needs a technical owner too, so you reply to the student, route the billing part to support, and check whether the lecture 3 error is a wider outage affecting other students.
Exercise
Your rule list gives "general" to 35% of posts after a month. What does this suggest, and what are two actions you can take?
Show answer
It suggests that the keyword rules no longer match how students write, or that new topics have appeared. Two actions: sample 30 to 50 "general" posts, read them, and add keywords or new categories for the patterns you find; and check for non-English posts or misspellings and add whole-word patterns or a human first-reader step for them.