Use this complex n8n workflow to automatically triage new Gmail emails, classify them using Google Gemini and OpenAI, prioritize alerts via Telegram, and empower a conversational AI agent with custom n8n node tools for immediate actions.
Download this n8n workflow template and start using it instantly.

























This advanced n8n workflow functions as a comprehensive AI-driven inbox management and interaction system. It tackles email overload by performing multi-stage triage, classification, and summarization, immediately labeling emails based on urgency and category. High-priority items are processed by a dedicated summarization n8n node (using OpenAI) and escalated via Telegram alerts.
Furthermore, this n8n workflow includes a powerful, live AI Agent (The Master Email Coordinator) accessible via Telegram or Webhook. This Agent uses specific Gmail Tool n8n nodes to execute complex operations like reading, drafting, sending, deleting, and labeling emails based on conversational commands. This demonstrates the cutting-edge capability of using n8n and AI together to create responsive business automation. Implementing this n8n template greatly enhances productivity by automating routine tasks and centralizing mission-critical communication alerts.
This n8n workflow operates on two primary, interconnected flows:
New Email n8n trigger captures a new email from Gmail. It immediately applies a temporary Processing label (via a Gmail n8n node) and sets the email details.OmniClassifier n8n node (using Google Gemini) determines the email type (e.g., Noise/Spam, Newsletter, Client, Opportunity) and routes the flow accordingly.Processing label is removed. Noise/Spam emails are sent for Unsubscribe (via an HTTP Request n8n node) and deletion.Newsletter Summarizer chain (Gemini), which extracts key points. This summary is then logged in Add Summary to Airtable and sent via Telegram.Priority Check chain (Gemini), which assigns High, Medium, or Low priority via the Priority Switch n8n node.Human Intervention Check (Gemini). If an alert is required, the Context & Summary Agent (using an OpenAI n8n node) generates a detailed context and summary, which is sent immediately through the Send Priority Alert Telegram n8n node.Telegram Trigger, Webhook Trigger, or Workflow Trigger n8n nodes.Aggregate Input and prepared by Set Agent Input.Master Email Coordinator LangChain Agent n8n node (using an OpenAI Chat Model) which references Postgres Memory to retain conversation history.Send Email (Tool), Get Labels (Tool)) to interact with Gmail, executing the user's requested email operations.IsTelegram? IF n8n node determines the original source and formats the AI response before sending it back using the Respond on Telegram n8n node or responding to the webhook.To deploy this comprehensive n8n workflow, follow these steps:
New Email n8n trigger and all associated Gmail n8n node actions (Tools, Labeling nodes). Ensure your Gmail API scope allows modifying, reading, and sending emails.Telegram Trigger and all Telegram notification n8n node actions (Send Priority Alert, Respond on Telegram).Postgres Memory n8n node to maintain the AI Agent's chat history.New Email, Telegram Trigger, Webhook Trigger).This intricate n8n workflow relies heavily on specialized n8n node types and AI components:
Gmail Trigger (New Email): The initiating n8n trigger for the automated triage path, listening for new emails.
OmniClassifier (LangChain Text Classifier): Uses the Google Gemini (OmniClassifier) n8n node to categorize the email content, guiding the subsequent flow control.
Priority Check / Human Intervention Check (LangChain Chain LLM): Utilizes Gemini models to assess email urgency and decide if immediate human alerting is necessary, showcasing complex flow control within this n8n workflow.
OpenAI Chat Model (Summary): An OpenAI n8n node used to generate concise context and action items for high-priority emails, ensuring quick human assessment.
Gmail Node (Labeling): Multiple instances (Add High Priority Label, Remove Processing Label, etc.) execute the core email management actions. Each Gmail n8n node requires specific label IDs to function correctly.
Master Email Coordinator (LangChain Agent): The central hub of the interactive component. This specialized n8n node uses the OpenAI Chat Model (Agent) and Postgres Memory to process conversational requests.
Gmail Tool Nodes: A suite of custom n8n node tools designed for the AI Agent, including Send Email (Tool), Delete Email (Tool), Mark Read (Tool), and Add Label (Tool). These define the specific Gmail actions the Agent is permitted to take.
Telegram Trigger: The dedicated n8n trigger that initiates the live AI Agent conversation flow when a user sends a message via Telegram.
Use this advanced n8n workflow to automatically generate personalized Gmail replies using HubSpot CRM context (deals, tickets, companies) via the Google Gemini AI agent, requiring human approval through Slack before sending.

Automate Gmail cleaning with this powerful n8n workflow. Use a specialized n8n node powered by AI to classify and automatically delete SPAM and marketing OFFER emails, ensuring a clean, focused inbox.

Automate your inbox efficiently using this advanced n8n workflow. It utilizes Retrieval-Augmented Generation (RAG) with Pinecone and OpenAI to automatically answer complex emails based on your knowledge base.

Use this robust n8n workflow to automate competitive intelligence. Scrape Facebook ads using Apify, analyze video, image, and text content with OpenAI and Gemini, and log insights to Google Sheets.

Use this powerful n8n workflow to automatically analyze Strava activity data (running, cycling, swimming) using the Google Gemini AI agent, generate personalized coaching insights, and deliver them via email. This n8n template streamlines performance review.









































