Email management: Auto-delete marketing emails & generate AI replies with Gemini
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Gmail, Google Sheets and Google Gemini.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Get many messages (Gmail): get many
- Message a model (Google Gemini): uses Google Gemini
- AI response formatter (Edit Fields (Set)): sets 1 field: content.parts[0].text
- categories emails (Switch): routes items into 2 branches
- Delete a message (Gmail): delete
- Reply to a message (Gmail): reply
- Append or update row in sheet (Google Sheets): append or update
- Append or update row in sheet (Google Sheets): append or update
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Gmail templates (518)
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)
- Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - Manual Trigger
n8n-nodes-base.manualTrigger - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch
From the author
Description This workflow intelligently scans your inbox, detects whether an email is marketing or genuine, and takes the right action automatically. Marketing Emails : Deleted instantly and logged in Google Sheets for tracking. Non-Marketing Emails : Receive…