Smart Gmail Cleaner with AI Validator & Telegram Alerts

Go to Workflow
1,637 views
Built by Reyhan Reyhan
Created on June 13, 2026

Description

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

Connect your Gmail, Gemini AI, and Telegram accounts
Adjust the AI baseline to control sensitivity (e.g. how strict the filtering should be)
Set your batch range (default: last 2 weeks, adjustable)
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.

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Gmail
n8n-nodes-base.gmail
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Telegram
n8n-nodes-base.telegram