Templates / Triage support emails with Gmail, OpenAI, Slack, and Google Sheets

Triage support emails with Gmail, OpenAI, Slack, and Google Sheets

Ready for 3.0

by Pratistha Thapa ✓ · 0 views · created 2026-06-10 · Ticket Management, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 13 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI and Google Sheets. It also calls slack.com over HTTP.

How it runs

Trigger: On Gmail events.

  1. Extract Email Data (Edit Fields (Set)): sets 6 fields: customer_email, subject, email_body…
  2. Get Existing Ticket Rows (Google Sheets): uses Google Sheets
  3. Find Previous Thread Ticket (Code): runs custom JavaScript code
  4. AI Classify and Draft Reply (OpenAI): uses OpenAI
  5. Parse AI Classification (Code): runs custom JavaScript code
  6. Needs Human Review? (If): checks a condition and branches into true / false
  7. Pending Human Review (Edit Fields (Set)): sets 1 field: status
  8. Ready for Quick Review (Edit Fields (Set)): sets 1 field: status
  9. Build Slack Button Payload (Code): runs custom JavaScript code
  10. HTTP Request: calls slack.com (POST)

…plus 2 more steps. See the full node list below.

Services it uses

GmailOpenAIGoogle Sheets

HTTP calls to: slack.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

Quick Overview This workflow monitors a labeled Gmail support inbox, uses OpenAI to classify and draft replies with thread context from Google Sheets, then posts each ticket to Slack with approval buttons and logs the Slack metadata and AI fields back to…

Excerpt from Pratistha Thapa'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.