AI-Powered Email Digest & Telegram Notifier
An intelligent automation workflow that monitors incoming emails, analyzes their content using AI, and delivers concise summaries directly to Telegram.
AI Agent · Workflow Automation · n8n · OpenAI GPT · Gmail API · Telegram Bot · LangChain Memory
The Problem
Manually reviewing dozens of daily emails is time-consuming and leads to missed important messages. Researchers and professionals need a way to get quick, intelligent summaries delivered to a platform they already use.
The Solution
This n8n workflow runs on an hourly schedule, fetches new emails from Gmail, aggregates them, passes the content through an OpenAI-powered AI agent with conversational memory, and sends a clean summary to a private Telegram chat, all fully autonomous.
Workflow Architecture
Schedule Trigger (Hourly) → Gmail: Fetch New Messages → Aggregate: Combine Messages → AI Agent (OpenAI GPT + Memory) → Telegram Bot: Send Summary

| Node | Function | Details |
|---|---|---|
| Schedule Trigger | Automatic execution | Runs every hour at minute :01 |
| Gmail | Fetch new emails | Retrieves latest messages filtered by sender |
| Aggregate | Combine data | Groups all messages into a single payload |
| AI Agent | Analyze & summarize | Uses OpenAI GPT to extract key information and generate summaries |
| Buffer Memory | Context retention | Maintains conversation history across multiple runs |
| Telegram Bot | Deliver results | Sends AI-generated analysis to a private Telegram chat |
Results & Impact
• Manual email review time saved: ~90% reduction
• Messages processed per day: 50+ emails automatically
• Response time to critical emails: From hours to minutes
• Human intervention needed: Zero (fully autonomous)
Technologies Used
• n8n — Workflow automation platform
• OpenAI GPT — AI language model for content analysis
• LangChain — AI agent framework with memory
• Gmail API — Email data source
• Telegram Bot API — Notification delivery channel
Note: All API keys and credentials have been removed for security. You will need to set up your own Gmail OAuth, OpenAI API key, and Telegram Bot token.