🎫 Triage incidents and enforce SLAs with Gemini, Groq, Google Sheets and Slack

⚡ 43 views · 🎫 Ticket Management & Triage

Description

Reduce MTTR with context-aware AI severity analysis and automated SLA enforcement

Know that feeling when a “low priority” ticket turns into a production fire? Or when your on-call rotation starts showing signs of serious burnout from alert overload?

This workflow handles that problem. Two AI agents do the triage work—checking severity, validating against runbooks, triggering the right response.

What This Workflow Does

Incident comes in through webhook → two-agent analysis kicks off:

Agent 1 (Incident Analyzer) checks the report against your Google Sheets runbook database. Looks for matching known issues, evaluates risk signals, assigns a confidence-scored severity (P1/P2/P3). Finally stops you from trusting “CRITICAL URGENT!!!” subject lines.

Agent 2 (Response Planner) builds the action plan: what to do first, who needs to know, investigation steps, post-incident tasks. Like having your most experienced engineer review every single ticket.

Then routing happens:

Nobody responds in time? Auto-escalates to management. Everything logs to Google Sheets for the inevitable post-mortem.

What Makes This Different

FeatureThis WorkflowTypical AI Triage
ArchitectureTwo specialized agents (analyze + coordinate)Single generic prompt
ReliabilityMulti-LLM fallback (Gemini → Groq)Single model, fails if down
SLA EnforcementAuto-waits, checks, escalates autonomouslySends alert, then done
LearningFeedback webhook improves accuracy over timeStatic prompts forever
Knowledge SourceYour runbooks (Google Sheets)Generic templates
War Room CreationAutomatic for P1 incidentsManual
Audit TrailEvery decision logged to SheetsOften missing

How It Actually Works: Real Example

Scenario: Your monitoring system detects database errors.

Webhook receives this messy alert:

{
  "title": "DB Connection Pool Exhausted",
  "description": "user-service reporting 503 errors",
  "severity": "P3",
  "service": "user-service"
}

Agent 1 (Incident Analyzer) reasoning:

  1. Checks Google Sheets runbook → finds entry: “Connection pool exhaustion typically P2 if customer-facing”
  2. Scans description for risk signals → detects “503 errors” = customer impact
  3. Cross-references service name → confirms user-service is customer-facing
  4. Decision: Override P3 → P2 (confidence score: 0.87)
  5. Reasoning logged: “Customer-facing service returning errors, matches known high-impact pattern from runbook”

Agent 2 (Response Coordinator) builds the plan:

What happens next (autonomously):

  1. Slack alert posted to #incidents with full context
  2. 60-minute SLA timer starts automatically
  3. Workflow waits, then checks Google Sheets “Acknowledged By” column
  4. If still empty after 60 min → escalates to #engineering-leads with “SLA BREACH” tag
  5. Everything logged to both Incidents and AI_Audit_Log sheets

Human feedback loop (optional but powerful):

On-call engineer reviews the decision and submits:

POST /incident-feedback
{
  "incidentId": "INC-20260324-143022-a7f3",
  "feedback": "Correct severity upgrade - good catch",
  "correctSeverity": "P2"
}

→ This correction gets logged to AI_Audit_Log. Over time, Agent 1 learns which patterns justify severity overrides.

Key Benefits

Required APIs & Credentials

Setup Complexity

This is not a 5-minute setup. You’ll need:

Google Sheets structure:

Slack configuration:

Estimated setup time: 30-45 minutes

Quick start option: Begin with just Slack + Google Sheets. Add PagerDuty later.

Who This Is For

đź”— Nodes Used

Google Sheets, Slack, Webhook, AI Agent, Google Gemini Chat Model, Groq Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup