Sub topic 2
Defining priority levels
This chapter assumes you know what a service level agreement (SLA) is, meaning a promised response time, and that you can read basic Python. It covers how to set priority levels, route messages to queues, decide when to escalate, and name an owner for each escalation tier.
Defining priority levels
A priority level sets how fast a message gets a first response. Most teams use three levels: P1 for urgent, P2 for high-reach public posts, and P3 for routine questions. Write the rules down so every agent applies them the same way.
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)) # P3Keyword rules are blunt. Test them against real messages and review the misses each month.
Routing messages to queues and agents
A queue is a waiting line that holds messages for a team with a matching skill. Map each priority to a queue so that P1 messages reach a specialist first. Route P2 and P3 messages to general queues by topic, such as billing or delivery.
Give every queue one named owner. A queue with no owner lets messages wait unnoticed.
Deciding when to escalate
Escalation passes a case to someone with more authority or skill. Escalate when any of these is true:
- A P1 message has no specialist reply within the P1 target.
- The customer mentions legal action, personal safety, or a payment dispute.
- Similar complaints rise sharply in a short period.
Set each time limit in advance. For example, a P1 case escalates after 30 minutes without a resolution.
Escalation tiers and who owns each step
An escalation tier is one level of support a case can pass through. Tier 1 is the front-line agent. Tier 2 is a specialist. Tier 3 is a team lead or communications lead. Each tier needs a named owner who accepts the case and is responsible for the next action.
Exercise
A P1 message arrives at 09:00 and the first reply is sent at 09:20. The P1 first-response target is 15 minutes. Is the target met?
Show answer
No. The reply took 20 minutes, which is 5 minutes over the 15-minute target, so the case counts as a miss.