Đi đến nội dung chính
D2 Group
← Automation Work

Automation case study · Email Operations

AI có thể phân loại email. SLA ownership vẫn cần durable state và deterministic escalation rules.

Proof of concept này tách probabilistic email interpretation khỏi operating controls. Inbound email đi qua classification, validation, Airtable ticket state, acknowledgement, SLA timing, Telegram escalation và AI-assisted response architecture trước khi case được coi là đã có operating state hợp lệ.

Proof summary

Đọc evidence trước khi đọc outcome.

Evidence type

Proof-of-concept workflow

Evidence status

Proof of concept

Measurement / operating scope

AI classification, ticket state, acknowledgement, SLA timing, escalation and response architecture

Observed state

A bounded proof of concept demonstrates routing, state and escalation logic.

Claim boundary

The case does not claim production SLA attainment, response-time improvement, classification accuracy, ticket-volume capacity or labor savings.

Proof reviewed

2026-09-25

Direct answer

Case này thực sự chứng minh điều gì?

Nó chứng minh một architecture pattern ở mức POC: AI có thể hỗ trợ hiểu email, nhưng ticket state, ownership, SLA và escalation phải nằm trong controls có thể inspect. Một classification đúng format không tự chứng minh email đã được route đúng, customer đã được phản hồi hoặc SLA đã được đáp ứng.

Routing & escalation pipeline

Receive → Classify → Validate → Persist → Acknowledge → Track SLA → Escalate → Assist & Verify.

Interpretation, operating state, time-based rules và customer-facing side effects được tách riêng để mỗi failure mode có state và owner rõ.

01

Receive

Nhận inbound email với message identity, sender/thread context và received-at timestamp đủ ổn định để downstream state không phụ thuộc vào một execution run duy nhất.

02

Classify

Dùng AI-assisted classification — phân loại có AI hỗ trợ — để suy category, intent hoặc routing context trong bounded output shape; model output vẫn chỉ là interpretation signal.

03

Validate

Kiểm classification result có nằm trong taxonomy được hỗ trợ, đủ field, đủ evidence và pass deterministic rules trước khi gán queue, priority hoặc workflow state.

04

Persist ticket state

Tạo hoặc cập nhật ticket trong Airtable hoặc durable ticket store để ownership, status, timestamps và SLA state sống ngoài transient n8n execution memory.

05

Acknowledge

Gửi acknowledgement hoặc operational notification sớm khi phù hợp, nhưng giữ rõ delivery/acknowledgement state khác hoàn toàn resolution state của case.

06

Track SLA

Dùng deterministic time/state rules để tính response window, waiting state, breach condition và escalation eligibility từ durable timestamps.

07

Escalate

Tạo escalation side effect qua Telegram hoặc channel phù hợp khi ticket còn unresolved sau threshold; notification creation chưa tự động bằng human acknowledgement hay resolution.

08

Assist response & verify

AI có thể hỗ trợ draft response trong boundary rõ; sending authority, policy checks và final ticket outcome vẫn cần deterministic control và destination verification.

Control model

AI chỉ sở hữu interpretation. Workflow sở hữu operating decision.

01

AI classifies; workflow owns routing

Model có thể diễn giải message nhưng queue selection, ownership, priority, ticket creation và escalation phải là inspectable workflow decisions có fallback path.

02

Classification confidence không phải routing authority

Confidence hoặc model score có thể giúp quyết định Review hay Route, nhưng không mặc định cấp quyền assign consequential queue hoặc priority nếu taxonomy/evidence chưa đủ chắc.

03

Ticket state sống ngoài execution

Airtable hoặc durable store giữ ticket identity, owner, status và timestamps để retries, timers và later checks nhìn cùng một operating record thay vì dựa vào node memory.

04

Acknowledgement không phải resolution

Email/Telegram gửi thành công chỉ chứng minh notification side effect trong scope tương ứng; case vẫn có thể chưa được đọc, xử lý hoặc resolved.

05

SLA logic phải deterministic

Start time, pause condition, breach threshold và unresolved check cần là rule/timestamp rõ; model judgment không nên quyết định case có vi phạm SLA hay không.

06

AI draft không mặc định có sending authority

Response generation và response sending là hai quyền khác nhau. Policy, approval, recipient, channel và side-effect boundary phải được kiểm riêng trước khi gửi.

Published evidence

Public case chứng minh workflow behavior — không phải support-performance result.

Evidence đủ để nói về decomposition, state, timers và escalation paths. Không đủ để invent classification accuracy, response-time improvement hoặc SLA attainment.

01

Proof-of-concept workflow

Public case có working n8n proof of concept chứng minh workflow decomposition và interaction giữa AI interpretation, state, timing và escalation.

02

AI classification step

Inbound email content được phân loại tại một bounded AI decision point thay vì end-to-end autonomous agent ownership.

03

Airtable ticket state

Ticket state được persist ngoài workflow execution để later checks có thể đọc unresolved status và SLA context từ durable operating record.

04

Telegram acknowledgement / alert

Workflow có explicit notification side effect cho operational visibility; alert delivery không được dùng như proxy cho case resolution.

05

Timed escalation

Một separate time-based path đánh giá unresolved state sau threshold thay vì giao SLA ownership cho model classification.

06

AI-assisted response architecture

Proof of concept có vị trí cho AI response drafting nhưng giữ policy, approval và sending authority ngoài quyền mặc định của model.

Operating states

Sau classifier, email phải đi vào một state có thể vận hành.

01

Routed

Classification đã pass validation và ticket được gán vào supported queue/owner với durable state đủ để tiếp tục vận hành.

02

Review

Classification uncertain, unsupported hoặc conflict với deterministic rules; ticket giữ reason/evidence context để human review thay vì silently guessing route.

03

Waiting

Ticket tồn tại, chưa resolved nhưng vẫn trong allowed response window; SLA clock/state có thể được tính lại từ durable timestamps.

04

Escalated

Ticket vẫn unresolved tại threshold và escalation side effect đã được tạo; trạng thái này chưa tự động chứng minh human owner đã xử lý hoặc case đã closed.

SLA state model

SLA không phải một Wait node. SLA là durable business state.

01

Start condition

Định nghĩa event nào bắt đầu SLA: email received, ticket created hay normalized business event. Không nên thay đổi tùy execution path.

02

Durable timestamps

received-at, created-at, acknowledged-at, first-response-at, resolved-at và escalated-at cần được persist/derive nhất quán để retry không reset lịch sử.

03

Unresolved definition

Xác định state nào thực sự còn unresolved. Notification sent hoặc AI draft generated không nên tự chuyển ticket thành handled/resolved.

04

Breach rule

Threshold, business hours, timezone hoặc priority policy nếu có phải nằm trong deterministic rules có thể inspect và test.

05

Escalation ownership

Khi breach xảy ra, workflow phải biết queue/person/channel nào nhận ownership tiếp theo và marker nào chứng minh escalation side effect đã được tạo.

06

Outcome verification

Sau escalation hoặc response action, đọc lại ticket/destination state khi cần để phân biệt execution success với actual support outcome.

AI-assisted response

Draft generation và sending authority phải là hai lớp khác nhau.

01

Ground on ticket context

AI draft nên dùng verified ticket/email context và policy knowledge phù hợp thay vì chỉ dựa vào raw prompt hoặc classification label.

02

Draft, not authority

Model tạo suggested response; workflow hoặc human policy quyết định có được gửi hay không, gửi cho ai và qua channel nào.

03

Check sensitive / consequential content

Refund, commitment, account change, legal statement hoặc sensitive customer data cần deterministic policy/approval boundary riêng nếu use case có những hành động này.

04

Send with side-effect identity

Outbound message cần stable message/ticket context để retry không gửi cùng response nhiều lần khi downstream status không rõ.

05

Verify resulting state

Response sent không tự động nghĩa customer issue resolved; ticket state và subsequent business outcome cần được cập nhật/verify riêng.

Claim boundary

Alert được gửi không đồng nghĩa customer case đã được xử lý.

POC chứng minh control pattern. Production performance chỉ được claim khi có telemetry và evaluation basis tương ứng.

01

Proof of concept ≠ production support system

Status public là Proof of concept. Case không claim production ticket volume, uptime, classification accuracy, response-time improvement, SLA attainment hoặc ROI.

02

AI classification ≠ correct ownership

Model output là interpretation signal. Correct queue/owner còn phụ thuộc taxonomy, validation, business rules và fallback/review logic.

03

Confidence score ≠ measured classification accuracy

Model confidence không mặc định là calibrated accuracy percentage; page không công bố measured precision, recall hoặc classification accuracy.

04

Acknowledgement ≠ resolution

Acknowledgement sent chỉ chứng minh một notification action. Ticket vẫn có thể unresolved, unowned hoặc chưa được customer/operator xử lý.

05

Telegram alert ≠ escalation handled

Alert creation/delivery không chứng minh recipient đã đọc, accepted ownership hoặc completed escalation action nếu không có downstream state/evidence tương ứng.

06

SLA logic ≠ measured SLA performance

Có deterministic timer/breach architecture không chứng minh SLA attainment percentage hoặc response-time reduction nếu thiếu production telemetry.

07

AI draft ≠ sending permission

Generated response không tự cấp quyền gửi, commit policy, issue refund hoặc tạo consequential side effect; authority phải được định nghĩa riêng.

08

Green workflow ≠ resolved customer case

Execution có thể success trong khi ticket còn Waiting, Escalated hoặc downstream-pending; business outcome cần durable ticket state và verification riêng.

FAQ

Các câu hỏi nên trả lời trước khi đưa AI email routing lên production.

AI Email Routing & Escalation System trong case này làm gì?

Đây là proof-of-concept workflow nhận inbound email, AI-assisted classification, validate route, persist Airtable ticket state, acknowledgement, deterministic SLA tracking, Telegram escalation và AI-assisted response architecture.

Case này đã là production customer-support system chưa?

Chưa. Status public là Proof of concept. Page không claim production ticket volume, uptime, classification accuracy, SLA attainment, response-time reduction hoặc ROI.

AI được dùng ở đâu trong workflow?

AI hỗ trợ interpretation như category, intent, routing context và response drafting. Ticket state, SLA timing, escalation conditions, authorization và sending side effects vẫn do explicit workflow rules sở hữu.

Tại sao classification và routing phải tách nhau?

Classification là probabilistic interpretation. Routing là operating decision có ownership và side effects. Tách hai lớp giúp uncertain classification đi Review thay vì tự gán sai queue hoặc priority.

Confidence cao có nghĩa email chắc chắn được phân loại đúng không?

Không mặc định. Confidence/model score không tự động là calibrated accuracy metric. Production evaluation cần labeled test set và metrics phù hợp như precision/recall theo taxonomy/use case.

Tại sao cần Airtable hoặc durable ticket store?

Ticket identity, owner, status và SLA timestamps cần tồn tại sau khi một n8n execution kết thúc. Durable state cho phép timer, retry và later workflow đọc cùng một operating record.

Gửi acknowledgement có nghĩa case đã được xử lý chưa?

Không. Acknowledgement chỉ là một notification side effect. Resolution cần ticket/business state riêng, ví dụ first response, action completed hoặc resolved tùy operating model.

SLA nên được tính như thế nào?

SLA cần start condition, durable timestamps, unresolved definition, deterministic breach rule và escalation ownership rõ. Nếu dùng business hours/timezone thì policy đó cũng phải explicit.

Telegram alert gửi thành công có nghĩa escalation đã được xử lý chưa?

Không. Alert sent chỉ chứng minh notification được tạo/gửi trong scope tương ứng. Human acknowledgement, ownership hoặc resolution cần downstream evidence/state riêng.

AI có thể tự gửi email trả lời khách không?

Có thể thiết kế auto-send trong use case phù hợp, nhưng case này không mặc định trao sending authority cho model. Policy, approval, consequential-content rules, recipient và retry/idempotency cần được xác định riêng.

Khi classification không chắc chắn thì workflow nên làm gì?

Đưa ticket vào Review hoặc fallback queue với reason/evidence context rõ thay vì ép model phải chọn một category authoritative. Taxonomy coverage và owner của Review state phải được định nghĩa.

Muốn đưa POC này lên production thì cần thêm gì?

Cần production ingress/security, email identity/deduplication, evaluation set cho classifier, durable ticket schema, idempotent side effects, retry/recovery, monitoring, SLA policy, alert ownership, secrets/RBAC, response authorization và outcome telemetry phù hợp environment thực tế.

From POC to operating system

Mang taxonomy, SLA policy và ownership model thật — rồi mới quyết định phần nào nên giao cho AI.

Một production email-routing system cần biết source email nào vào scope, classifier được phép quyết định gì, ticket store nào là source of operating state, khi nào escalation xảy ra và action nào cần human authority.

Trao đổi scope