Automate email categorization & response generation with Gmail & GPT-4
Needs changesWhat this workflow does
This workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail and Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- 📩 Get Email Details (Gmail): get
- 🤖 AI Email Analyzer (OpenAI): uses OpenAI
- 🚦 Priority Router (If): checks a condition and branches into true / false
- 🚨 High Priority Alert (Gmail): uses Gmail
- 🛡️ Spam Detector (If): checks a condition and branches into true / false
- 🏷️ Categorize Email (Gmail): modify
- 🗑️ Move to Spam (Gmail): modify
- 💬 Auto-Reply Detector (If): checks a condition and branches into true / false
- 📊 Log to Spreadsheet (Google Sheets): append or update (spreadsheet)
- 📝 Create Reply Draft (Gmail): work with draft
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- OpenAI (legacy) in 🤖 AI Email Analyzer: replace with OpenAI node (AI section).
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| OpenAI (legacy) 🤖 AI Email Analyzer | OpenAI node (AI section) |
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - Gmail
n8n-nodes-base.gmail - OpenAI
n8n-nodes-base.openAi - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Gmail AI Email Manager - Setup Guide 🎯 Workflow Overview This workflow will create an intelligent Gmail email manager that can: - Monitor incoming emails via webhook - Analyze email content using AI - Categorize emails automatically - Generate smart…