Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Email Automation

Email Automation

Delete Spam and Promotional Gmail with GPT-4

When a new Gmail email arrives, OpenAI GPT-4 classifies it and deletes messages labeled as spam or marketing offers.

What it does

## 🧹 Auto Spam & Marketing Email Killer Tired of promotional clutter in your inbox? This AI-powered n8n workflow automatically scans your Gmail inbox every hour, analyzes incoming messages using GPT-4, and deletes unwanted emails labeled as SPAM or OFERR. ### 🔍 What it does - Triggers on new Gmail messages - Uses OpenAI to classify the message as: IMPORTANT, OFFER, or SPAM - Deletes emails marked as SPAM or OFFER - Keeps important messages like order confirmations, invoices, and personal inquiries ### 🤖 Built-in Intelligence The AI agent is trained with 9 real examples to ensure precise classification of marketing emails, phishing, cold outreach, and more. ### 📦 Ideal for: - Solopreneurs - Business inboxes - Clean-inbox enthusiasts Set it once, and enjoy a distraction-free email experience.

The steps

  1. Gmail Trigger
  2. OpenAI Chat Model
  3. If
  4. Validator of Email
  5. Delate Email

Similar automations