🤖 Gmail assistant with Google Gemini classification & Telegram notifications

329 views · 🤖 AI Chatbots & Agents

Description

Who’s it for

This template is designed for professionals, entrepreneurs, and busy individuals who receive high volumes of emails and want to automate their email management. Perfect for freelancers, small business owners, project managers, and anyone who struggles with email overload and wants AI-powered assistance for prioritizing and responding to messages.

How it works

The workflow creates an intelligent email processing system that monitors your Gmail inbox in real-time and categorizes every incoming email using Google Gemini AI. Here’s what happens:

Real-time Processing: Every minute, the system checks for new emails and uses AI to classify them into three categories:

Smart Response Generation: For emails requiring replies, AI generates professional responses and sends them to your Telegram for approval. Once approved, the reply is automatically sent from your Gmail account.

Instant Notifications: Important emails get summarized and sent as quick Telegram notifications so you stay informed without checking email constantly.

Daily Email Digest: Every morning at 8 AM, you receive a comprehensive summary of the previous day’s emails, including action items, issues requiring attention, and follow-up tasks.

How to set up

Step 1: Gmail Configuration

Step 2: Telegram Setup

Step 3: AI Configuration

Step 4: Workflow Customization

Requirements

All sensitive information like API keys, chat IDs, and email addresses should be configured using n8n’s credential system rather than hardcoding them in the workflow.

How to customize the workflow

Modify Classification Logic

Edit the AI Email Classifier node’s system prompt to adjust how emails are categorized based on your specific industry or email patterns.

Adjust Scheduling

Change the Daily 8AM Trigger to your preferred time zone and schedule for receiving email summaries.

Personalize Response Style

Customize the AI reply generator’s system prompt to match your communication style, tone, and professional voice.

Enhance Filtering

Add additional filtering logic to process emails from specific senders, domains, or with particular keywords differently.

Extend Notifications

Configure multiple Telegram chats for different types of notifications (personal vs work) or add other messaging platforms.

Security Best Practices

The workflow is designed to be flexible and easily adaptable to different email management needs while maintaining security and privacy standards.

🔗 Nodes Used

Telegram, Gmail, Gmail Trigger, Schedule Trigger, AI Agent, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup