Templates / Triage Gmail and draft email replies with OpenAI, Slack, and Google Sheets

Triage Gmail and draft email replies with OpenAI, Slack, and Google Sheets

Ready for 3.0

by Operstead ✓ · 7 views · created 2026-07-20 · Ticket Management, AI Summarization

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-10-19.

What this workflow does

This AI workflow has 11 nodes and runs on a schedule (every day). Along the way it connects Gmail, OpenAI, Google Sheets and Slack.

How it runs

Trigger: On a schedule (every day).

  1. Fetch Unread Gmail Emails (Gmail): uses Gmail
  2. Mark Emails as Read in Gmail (Gmail): uses Gmail
  3. Prepare Email Fields (Edit Fields (Set)): sets or maps fields
  4. AI Email Classifier (OpenAI): uses OpenAI
  5. Build AI Classification Data (Edit Fields (Set)): sets or maps fields
  6. Route by Email Category (Switch): routes items into branches
  7. AI Draft Email Responder (OpenAI): uses OpenAI
  8. Append SPAM Log to Sheets (Google Sheets): uses Google Sheets
  9. Store Reply in Gmail Drafts (Gmail): uses Gmail
  10. Post Draft Alert on Slack (Slack): uses Slack

Services it uses

GmailOpenAIGoogle SheetsSlack

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.

Nodes used (7)

From the author

Quick overview This workflow polls your Gmail inbox every 15 minutes, uses OpenAI to classify unread emails as URGENT, STANDARD, or SPAM, drafts reply emails for non-spam messages, posts a review notification to Slack, and logs spam messages to Google Sheets.…

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