📌 Title
Customer Support Automation: Ticket Routing, SLA Monitoring & Smart Escalation
📝 Context
🏢 Client / Industry: B2C EdTech company / service-based business / education
Before this project: Customer inquiries arrived in a shared inbox, where support agents sorted them manually. High-priority requests were often buried among spam and routine inquiries, while some tickets remained unanswered for several days.
🎯 Main Goal: Design an automated ticket management system that classifies incoming requests by category and priority, automatically notifies the assigned ticket owner, detects SLA (Service Level Agreement) breaches, and triggers a three-level escalation workflow for overdue tickets.
⚠️ Problem
- All customer emails landed in a single Gmail inbox with no triage, making it difficult to identify and process urgent requests efficiently
- Managers manually reviewed and sorted every email, including spam and newsletters, increasing response times and reducing team productivity
- Urgent tickets could remain unnoticed among routine inquiries and were handled in the order they were read rather than by urgency, reducing customer satisfaction and increasing the likelihood of customer churn and negative feedback
- No priority or SLA was assigned to tickets, resulting in inconsistent response times, missed service targets, and no clear ownership of urgent requests
- Overdue tickets had no escalation path, allowing unresolved issues to remain unattended until customers followed up or submitted additional complaints, negatively impacting customer satisfaction and trust
💡 Solution
Built a closed-loop AI support system of two connected n8n workflows that:
- Monitor Gmail every minute, automatically filter out spam/newsletters and extracts ticket data from incoming messages
- Run every legitimate ticket through an AI agent that classifies it by category, assigns a priority (P1–P4) and matching SLA based on a 3-dimension reasoning chain (urgency, business impact, context)
- Log every ticket with full metadata into Google Sheets as a lightweight ticket database
- Notify the assigned owner in Slack instantly with priority, SLA deadline, ticket summary, and a direct link to the email thread
- Continuously monitors SLA deadlines every 5 minutes
- Automatically escalates overdue tickets through a three-level escalation chain (Owner → Team Lead → Operations Director) without ever re-sending the same escalation level twice