FM
FlowMarket
AI Agents Advanced ⚡ 17 n8n Nodes

Smart Gmail cleaner with AI validator Telegram alerts

Automatically clean up your Gmail inbox by deleting unwanted emails, validated by Gemini AI. Ideal for anyone tired of manual inbox cleanup, this workflow he...

🔌 Nodes & Integrations Used (5)

Gmail Lm Chat Google Gemini Agent Output Parser Structured Telegram

📖 Implementation & Setup Guide

Automatically clean up your Gmail inbox by deleting unwanted emails, validated by Gemini AI. Ideal for anyone tired of manual inbox cleanup, this workflow helps you save time while staying in control, with full transparency via Telegram alerts.

How it works

  • Scans Gmail inbox in adjustable 2-week batches
  • Uses Gemini AI to decide if an email should be deleted or skipped
  • Applies a label to skipped emails to avoid rechecking in future runs
  • Deletes unwanted emails and sends a Telegram message with the **AI's reasoning**
  • Also notifies on skipped emails, with explanation included

Set up steps

  1. Connect your Gmail, Gemini AI, and Telegram accounts
  2. Adjust the AI baseline to control sensitivity (e.g. how strict the filtering should be)
  3. Set your batch range (default: last 2 weeks, adjustable)
  4. Define your Telegram chat/channel for notifications

---

**Note:** Thanks to n8n's modular design, you can easily switch Gemini for another AI model (like OpenAI, Claude, etc.) or replace Telegram with Discord, Slack, or even email, no code changes needed, just swap the nodes.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Smart Gmail cleaner with AI validator _ Telegram alerts.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents →