Templates / Triage customer complaint emails from Gmail with GPT-4o-mini, Slack and Sheets

Triage customer complaint emails from Gmail with GPT-4o-mini, Slack and Sheets

Needs changes

by Incrementors ✓ · 86 views · created 2026-04-10 · Ticket Management, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 11 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model, Google Sheets and Slack.

How it runs

Trigger: On Gmail events.

  1. 2. Set — Config Values (Edit Fields (Set)): sets 7 fields: companyName, sheetId, sheetName…
  2. 3. Code — Extract Email Fields (Code): runs custom JavaScript code
  3. 4. IF — Is This a Complaint? (If): checks a condition and branches into true / false
  4. 5. AI Agent — Triage Complaint (AI Agent): runs an AI agent, with model: 6. OpenAI — GPT-4o-mini Model; output parser: 7. Parser — Structured Triage Output
  5. 8. Code — Combine Triage Data (Code): runs custom JavaScript code
  6. 9. Google Sheets — Log Complaint (Google Sheets): append
  7. 10. Slack — Send Department Alert (Slack): uses Slack

Services it uses

GmailOpenAI Chat ModelGoogle SheetsSlack

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in 5. AI Agent — Triage Complaint (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
5. AI Agent — Triage Complaint (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (10)

From the author

Description Activate this workflow once and it monitors your Gmail inbox every minute automatically. Every incoming email is scanned for complaint keywords — and if a complaint is detected, GPT-4o-mini scores its urgency, identifies the right department,…

Excerpt from Incrementors's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.