PL EN UA
← All 7 AI & n8n Case Studies
Automated Email Ticket Triage (P1–P4) & 24/7 SLA Escalation Engine
GROWTHLAB • GMAIL OAUTH2 • JSON SCHEMA • SLA WATCHER 24/7
P1 15m • L0–L2 SLA

Automated Email Ticket Triage (P1–P4) & 24/7 SLA Escalation Engine

Shared Gmail classification with strict JSON Schema output, prompt-injection guardrails, priority labels, and 3-tier L0 → L1 → L2 SLA breach escalation.

15 min
Target SLA window for critical P1 tickets
5 działów
Owner routing categories + non-destructive spam log
L0→L2
3-stage escalation up to Team Lead & CEO
Industry
B2B Services — Shared Inbox Triage & SLA Operations (GrowthLab)
Verification Status
Verified on real and synthetic emails (including full L2 CEO escalation)
My Role
Designed the 5-block prompt-injection-hardened classifier, JSON Schema validation, 5-department routing, and 3-tier SLA Watcher.

01 // INTERACTIVE N8N DATA PIPELINE ARCHITECTURE

Animated workflow topology & node execution order

Drag any node to bend workflow links
Flow 1: Email Triage, Guardrails & JSON Schema Validation
1 Gmail Trigger → 2 Get Full Message & Context → 3 Check Duplicate Ticket → 4 GPT-4o-mini + Anti-Injection Prompt → 5 Structured Output JSON Schema → 6 Google Sheets + Gmail Labels (GL/P1–P4) → 7 Telegram Owner Alert
Flow 2: Decoupled 24/7 SLA Watcher (L0 → L1 → L2)
1 Schedule SLA Watcher → 2 Read Open Tickets → 3 SLA Breached? → 4 Compute Level (0m / +30m / +60m) → 5 Switch L0 / L1 Team Lead / L2 CEO → 6 Telegram & Email Escalation → 7 Update Escalation State

02 // LIVE SYSTEM & OUTPUT SCREENSHOTS (CLICK TO ZOOM)

Real CRM tables, Klaviyo lists & automated Telegram alerts

Category Routing & SLA Priority Matrix

Category / Priority Owner / Target SLA Scope & Operational Rule
technical • P1 Marko • 15 min Technical outages, broken webhooks, CRM sync failures
sales • P2 Olena • 60 min New business inquiries, product demos, pricing quotes
billing • P3 Sofiia • 240 min Invoices, payment reconciliation, billing & refunds
service • P3/P4 Nazar • 240–1440m Project status updates, change requests, ongoing support
spam • P4 Anna • Log Only Cold outreach — logged safely without destructive auto-deletion

03 // Business Context & Bottleneck

  • • A shared Gmail inbox (~30 tickets/day scenario) required manual reading, spam filtering, priority guessing, and owner assignment.
  • • Without an automated SLA clock, urgent P1 technical outages risked waiting behind routine inquiries.
  • • Untrusted external email bodies required strict prompt-injection guardrails and deterministic JSON validation.

04 // Engineered Solution

  • ✓ The primary flow fetches full Gmail thread context, checks for existing tickets, and runs a 5-block GPT-4o-mini classifier hardened against prompt injection.
  • ✓ A Structured Output Parser enforces a strict JSON Schema (category, priority, owner, sla_minutes, reasoning, needs_review, summary, customer_sentiment), logs to Google Sheets, applies Gmail labels (GL/P1–P4), and alerts the owner via Telegram.
  • ✓ A decoupled SLA Watcher flow polls open tickets and triggers 3-stage escalation on breach: L0 (owner reminder), L1 (+30m Team Lead alert), and L2 (+60m CEO escalation).

05 // Verified Scope & Outcomes

  • ◆ Verified across real and test email threads covering all 5 routing categories and P1–P4 SLA windows.
  • ◆ Successfully validated full L0 → L1 → L2 escalation state transitions without duplicate alert spam.
  • ◆ Eliminates manual inbox sorting and manual SLA tracking (exact hours saved depend on team volume; no inflated estimates claimed).
Technologies & API Integrations
n8nOpenAI GPT-4o-miniStructured Output JSON SchemaGmail API (OAuth2)Google Sheets APITelegram Bot APIPrompt Guardrails
Deploy a similar workflow →

Explore Other AI & n8n Case Studies

1 / 1