AI-Powered Smart Inbox Assistant with Telegram Integration
detail.loadingPreview
This n8n workflow acts as an intelligent inbox assistant, leveraging Google Gemini to automatically classify incoming Gmail emails and apply relevant labels. It also empowers users to control their Gmail inbox directly from Telegram, executing actions like labeling, marking, or deleting emails through simple chat commands.
About This Workflow
Revolutionize your email management with this robust n8n workflow. It intelligently processes new Gmail emails, using Google Gemini for advanced AI-driven classification to automatically assign labels such as 'Promotional', 'Opportunity', 'Action Required', or 'Operations Admin'. Beyond passive sorting, this workflow transforms your Telegram into a powerful, interactive email command center. Send commands via Telegram to actively manage your inbox: add or remove labels, mark emails as read or unread, or even delete messages on the fly. This dual approach ensures your inbox remains organized and responsive, boosting productivity whether through automation or immediate chat-based actions.
Key Features
- AI-Powered Email Classification: Automatically categorizes new Gmail emails using Google Gemini, applying specific labels like 'Promotional' or 'Action Required'.
- Telegram-Controlled Inbox Management: Perform a wide array of Gmail actions—labeling, marking as read/unread, deleting—directly through Telegram commands.
- Automated Labeling System: Pre-defines and applies custom labels to streamline your inbox organization and ensure critical emails are prioritized.
- Two-Way Interaction: Seamlessly combines automated email processing with user-initiated commands via a popular messaging platform.
- Comprehensive Error Handling: Built-in mechanisms to manage workflow and agent-specific errors, ensuring continuous and reliable operation.
How To Use
- Configure Gmail Integration: Set up the 'New Email' Gmail Trigger and all Gmail action nodes ('Add Label', 'Remove Label', 'Mark Read', 'Delete Email', etc.) by connecting your Gmail account credentials.
- Integrate Google Gemini: Configure the 'Google Gemini (OmniClassifier)' node with your Google AI API key. Tailor the model's prompts to accurately classify emails into your desired label categories.
- Set Up Telegram Bot: Connect your Telegram Bot API token to the 'Telegram Trigger' and 'Respond on Telegram' nodes to enable communication between your bot and users.
- Define AI Agent Logic (Optional): If using the AI agent, ensure its prompts are well-defined to interpret user commands from Telegram and map them to the corresponding Gmail actions within the workflow.
- Customize Labels: Update the specific label IDs in nodes like 'Add Promotional Label', 'Add Opportunity Label', 'Add Action Required Label', and 'Add Operations Admin Label' to match your existing or newly created Gmail labels.
Apps Used
Workflow JSON
{
"id": "f534040a-fa1b-4ac4-ad76-589b22d3f4d0",
"name": "AI-Powered Smart Inbox Assistant with Telegram Integration",
"nodes": 7,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: f534040a-fa1b...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.