Use this powerful n8n workflow to automatically classify incoming Gmail emails using GPT-4o mini, apply specific labels (High Priority, Work Related), and send summarized, instant notifications via Telegram. Start automating your inbox with n8n templates.
Download this n8n workflow template and start using it instantly.
This n8n workflow is ideal for:
Users drowning in email who need smart prioritization.
Professionals looking for advanced n8n templates for inbox management.
Developers wanting to implement LLM-based decision-making within their n8n node structures.
Teams requiring instant, summarized alerts for critical emails delivered via Telegram.
Managing a high volume of email can be exhausting, leading to missed deadlines or ignored high-priority messages. This advanced n8n workflow solves this problem by integrating a powerful AI classification system directly into your inbox management routine.
Starting with an n8n trigger listening to Gmail, the email content is instantly analyzed using a specialized LangChain Text Classifier (powered by GPT-4o mini). Based on predefined criteria (High Priority, Work Related, Promotion), the appropriate label is applied to the original message in Gmail. Simultaneously, a dedicated AI Agent generates a concise, casual summary of the email, which is then immediately delivered to you via a Telegram n8n node. This approach ensures critical messages are labeled correctly in Gmail and summarized for quick review on your mobile device, making this one of the most effective n8n templates for productivity.
This powerful n8n workflow executes a multi-step automation process:
Classification Agent (a LangChain Text Classifier n8n node using GPT-4o mini) receives the full email data (sender, subject, body). It uses a custom system prompt to classify the email into one of four categories: 'High Priority', 'Work Related', 'Promotion', or 'Other'.High Priority, Work Related, Promotions). These nodes apply the specified custom labels (e.g., 'YELLOW_STAR', 'IMPORTANT') to the message within Gmail.AI Agent1 n8n node, which acts as a notification assistant. Using a predefined prompt and the GPT-4o mini model, it generates a short, casual summary of the email, including the classification category.Send a text message n8n node, providing instant and actionable alerts.To deploy this comprehensive n8n workflow, follow these steps:
Gmail Trigger n8n node and the subsequent Gmail labeling n8n nodes (High Priority, etc.). You must connect them using valid Gmail OAuth2 credentials that grant access to your inbox.4o- mini n8n nodes.Send a text message n8n node. You will need a Telegram Bot API key (created via BotFather) for the credentials and must update the chatId parameter with your personal Telegram ID.High Priority, Work Related, and Promotions n8n nodes already exist in your Gmail account. If they don't, the labeling operation will fail.Gmail Trigger n8n node to active and save the workflow. This n8n workflow will now run automatically. Gmail Trigger: This essential n8n trigger is configured to poll for new emails every minute, acting as the starting point for the entire n8n workflow.
Classification Agent (Text Classifier n8n node): Utilizes the GPT-4o mini language model to analyze the full email text and metadata. Key configuration involves a system prompt instructing it to output a JSON classification into categories like 'High Priority', 'Work Related', or 'Promotion'.
4o- mini (Language Model n8n node): Provides the necessary LLM connection (GPT-4o mini) for both the classification agent and the summarization agent, ensuring efficient and modern AI processing within this n8n template.
High Priority / Work Related / Promotions (Gmail n8n nodes): These nodes are configured with the addLabels operation, using the message ID ({{ $json.id }}) from the trigger to dynamically apply predefined Gmail labels based on the AI's classification.
AI Agent1 (Agent n8n node): This n8n node takes the classified email data and generates a user-friendly, concise notification summary using a custom prompt: "You are a notification assistant..."
Send a text message (Telegram n8n node): The final action n8n node. It sends the summarized notification ({{ $json.output }}) to a designated chat ID, ensuring timely alerts.
Use this powerful n8n workflow to automatically classify user-uploaded event photos using Gemma AI (via Featherless.ai), save files to Google Drive, and log categories in Google Sheets. Start with this n8n template today!

Automate Gmail management using this advanced n8n workflow. Classify incoming emails with GPT-4o, draft replies, and use the gotoHuman n8n node for mandatory human review and supervision.

Deploy an advanced n8n workflow using GPT-4o to automatically classify incoming emails, extract structured applicant data, and manage recruitment processes efficiently. Find more n8n templates.

Leverage this advanced n8n workflow to automatically classify incoming Intercom conversations using GPT-4o-mini, routing them to ClickUp tasks or Slack alerts based on category and urgency.

Use this powerful n8n workflow to automatically classify leads from Typeform using Google Gemini sentiment analysis, store them in Supabase by category, and send instant replies via the WhatsApp Cloud API.

I value my time. so I created an Automation for 4 hours to save 20 minutes. I'll post all my works so you'd save that 20 minutes without spending 4 hours to create it. lol.







































