Chuyển đến nội dung chính
AI

Human-in-the-loop Escalation Design: BA thiết kế luồng AI biết khi nào cần người

Human-in-the-loop không phải chỉ là "thêm nút confirm". BA cần thiết kế ngưỡng escalation, routing rule, SLA cho agent review, và feedback loop. Hướng dẫn thiết kế HITL đầy đủ với decision matrix và escalation flow templates.

Human-in-the-loop Escalation Design: BA thiết kế luồng AI biết khi nào cần người

Không có AI nào perfect. Câu hỏi không phải "khi nào AI sai" mà là "khi AI sai, hệ thống xử lý như thế nào và ai chịu trách nhiệm". Đó là bài toán thiết kế HITL (Human-in-the-loop) mà BA cần giải quyết.


1. HITL là gì và tại sao quan trọng?

Human-in-the-loop là pattern thiết kế trong đó con người tham gia vào quy trình AI tại các điểm quyết định cụ thể, thay vì để AI chạy hoàn toàn tự động.

3 lý do cần HITL:

  1. Confidence gap — AI không đủ chắc chắn để tự quyết định
  2. High-stakes decision — Sai lầm quá đắt (y tế, tài chính, pháp lý)
  3. Regulatory requirement — Một số ngành yêu cầu human review bắt buộc (GDPR Article 22)

2. Escalation Trigger Design

2.1 Loại Trigger

Trigger TypeVí dụEscalation đến
Confidence thresholdScore < 0.80Queue review thông thường
Sensitive categoryInput chứa từ nhạy cảmSenior reviewer
High-value transactionAmount > 50 triệuManager approval
New entityCustomer/case mới lần đầuManual onboarding flow
Model uncertainty flagAI tự báo "không chắc"Specialist team
Time constraintSLA gần hết hạnUrgent queue

2.2 Threshold Calibration

BA không tự đặt threshold — phải calibrate với stakeholder:

Câu hỏi cần hỏi:
1. "Nếu AI sai 1 trong 10 cases, business chấp nhận không?"
   → Threshold ≥ 0.9

2. "Chi phí của false negative (bỏ sót lỗi) là bao nhiêu?"
   → Nếu cao → threshold cao hơn, chấp nhận nhiều escalation hơn

3. "Team agent review có capacity xử lý bao nhiêu cases/ngày?"
   → Ảnh hưởng ngược threshold — nếu capacity thấp, threshold phải cao hơn

3. Escalation Flow Template

[AI Processing Complete]
         ↓
[Check Trigger Conditions]
    ↙         ↘
No trigger   Trigger detected
    ↓              ↓
[Auto Action]  [Determine Escalation Level]
               ├── Level 1: Standard Queue (SLA: 4h)
               ├── Level 2: Priority Queue (SLA: 1h)
               └── Level 3: Immediate Alert (SLA: 15min)
                        ↓
               [Route to Appropriate Reviewer]
               (by skill, availability, or round-robin)
                        ↓
               [Agent Review Interface]
               ├── View AI recommendation + confidence
               ├── View original input/context
               ├── Action: Approve / Reject / Edit / Escalate
               └── Mandatory: Comment (if reject/edit)
                        ↓
               [Record Decision + Override Reason]
                        ↓
               [Feedback to Model (if applicable)]

4. Agent Review Interface Requirements

BA cần specify rõ UI requirements cho agent:

## Agent Review Screen — AC

### Must Show:
- [ ] Original input/request đầy đủ (không truncate)
- [ ] AI recommendation với confidence score
- [ ] Explanation của AI (nếu model có XAI)
- [ ] Relevant context (customer history, similar cases)
- [ ] SLA countdown (thời gian còn lại trước deadline)

### Actions Required:
- [ ] Approve (1-click với optional comment)
- [ ] Reject với mandatory reason (dropdown + free text)
- [ ] Edit AI output và submit as corrected
- [ ] Escalate to higher level với reason

### Audit Trail (auto-captured):
- [ ] Agent ID + timestamp
- [ ] Action taken
- [ ] Comment/reason
- [ ] Time spent on review (start → submit)

5. SLA & Capacity Planning

BA phải estimate workload và define SLA:

SLA Matrix

Escalation LevelTriggerSLABreach Action
StandardConfidence 0.7-0.84 business hoursAuto-escalate to Level 2
PriorityConfidence < 0.7 or high-value1 hourAlert supervisor
CriticalSafety flag or regulatory15 minutesPage on-call

Capacity Formula

Daily escalation volume = Total requests × Escalation rate
Agent capacity needed = Daily escalation volume ÷ (cases/agent/day)

Ví dụ:
- 1000 requests/day × 15% escalation rate = 150 cases
- Agent xử lý 30 cases/day
- Cần tối thiểu 5 agents (thêm 20% buffer = 6 agents)

6. Feedback Loop Design

Escalation không phải endpoint — phải có feedback loop:

DecisionFeedback dùng để làm gì
Agent approves AI recommendationPositive signal, reinforce model
Agent overrides AI outputNegative signal + corrected label
Agent escalates higherFlag for retraining data collection
Multiple overrides on same categoryTrigger model review/retrain

BA phải specify: Feedback frequency, labeling process, và người chịu trách nhiệm retraining trigger.


Kết luận

HITL design tốt = AI có thể release sớm hơn với ngưỡng thấp hơn, vì con người làm safety net. Ngược lại, HITL thiết kế kém = agent burnout, SLA breach, và cuối cùng tắt AI feature vì "không tin tưởng được".

BA là kiến trúc sư của balance giữa AI autonomy và human oversight.

DUY TRAN
Tác giả

DUY TRAN

Pursuing an AI-first mindset and intelligent system architecture. I build solutions by combining technology, creativity, and the ability to see structure in chaos — the foundation for becoming a Solution Architect.

Bình luận

Bài viết liên quan