Triage Gmail and draft email replies with OpenAI, Slack, and Google Sheets
Ready for 3.0Ready 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).
- Fetch Unread Gmail Emails (Gmail): uses Gmail
- Mark Emails as Read in Gmail (Gmail): uses Gmail
- Prepare Email Fields (Edit Fields (Set)): sets or maps fields
- AI Email Classifier (OpenAI): uses OpenAI
- Build AI Classification Data (Edit Fields (Set)): sets or maps fields
- Route by Email Category (Switch): routes items into branches
- AI Draft Email Responder (OpenAI): uses OpenAI
- Append SPAM Log to Sheets (Google Sheets): uses Google Sheets
- Store Reply in Gmail Drafts (Gmail): uses Gmail
- Post Draft Alert on Slack (Slack): uses Slack
Services it uses
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack
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.…