AutomationMart
Home/Browse/Automatic email classification with Gmail and Claude AI
n8n

Automatic email classification with Gmail and Claude AI

n8nn8n8 modulesv1.0
Gmail

How It Works 1.Gmail Trigger - Continuously monitors your Gmail inbox for new messages. - Captures the email’s subject, body, and metadata. - Sends the extracted content to the Email Content Classifier. 2.Email Content Classification The Email Content Classifier analyzes the email content using natural language processing. Compares the message against predefined Gmail labels: - Ads - Work - Personal - Financial - Other (fallback label) Users can add or rename categories to match their s

At a glance

Automatic email classification with Gmail and Claude AI is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail
Modules
8
Price
Free
Version
v1.0
Automatic email classification with Gmail and Claude AI workflow diagram

About this workflow

How It Works 1.Gmail Trigger - Continuously monitors your Gmail inbox for new messages. - Captures the email’s subject, body, and metadata. - Sends the extracted content to the Email Content Classifier. 2.Email Content Classification The Email Content Classifier analyzes the email content using natural language processing. Compares the message against predefined Gmail labels: - Ads - Work - Personal - Financial - Other (fallback label) Users can add or rename categories to match their specific needs. Uses context, tone, and keywords to determine the most accurate label. 3.Applying Gmail Labels - Sends the classification result to the corresponding Gmail label node. - Automatically applies the matching Gmail label in your inbox. - If the classifier cannot confidently match the message, the Other label is used as a fallback. Setup Steps - Connect Gmail Accounts - Connect your Gmail account in the Gmail Trigger and in each Gmail label node. - Configure the Email Content Classifier - Map the incoming Gmail message body to inputText. - Ensure the classifier node has access to a language model credential (Anthropic or other). - Test the Workflow - Send a few sample emails to yourself to confirm that labels are correctly applied. - Tweak Categories if Needed - Adjust category names in the classifier node to match your Gmail labels exactly. Customization - Add or rename categories in the classifier to reflect your specific email types. - Create corresponding Gmail label nodes for each new category. - Expand or modify categories as your workflow evolves to improve organization and efficiency. Use Cases - Automatic inbox organization and sorting. - Separation of work, personal, financial, and promotional emails. - Improved productivity by making important emails easier to locate. - Custom categorization for specialized workflows. Troubleshooting Tips - Emails not being labeled → check API permissions and message ID references. - Wrong label assigned → update classifier examples or refine category descriptions. - Classifier not returning a category → confirm fallback category “Other” is configured. - Workflow not triggering → reconnect Gmail Trigger authentication and ensure the workflow is active.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Analyze Customer Reviews from 5 Platforms with Thordata Scraping & GPT-4.1 Reports

Automatically gather hundreds of real customer reviews from five major platforms in one run using Thordata API and Proxy — Trustpilot, Capterra, Chrome Web Store, TrustRadius, and Product Hunt — then let GPT-4.1 perform deep collective sentiment analysis, uncover common praises & complaints, flag critical issues, assess churn risk, and deliver actionable recommendations straight to your inbox as a stunning executive HTML report. Who’s it f

Free

🤖 Create Your First AI Agent with Weather & Web Scraping (Starter Kit)

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This template is your personal launchpad into the world of AI-powered automation. It provides a fully functional, interactive AI chatbot that you can set up in minutes, designed specifically for those new to AI Agents. What is an AI Agent? Think of it as a smart assistant that doesn't just talk—it acts. You give it a set of "tools" (like other n8n tool nodes), and it intelligently de

Free

Generate bulk Google Slides certificates 📜 as PDFs and email them with Gmail

This workflow automates the bulk generation and delivery of personalized certificates using Google Sheets, Google Slides, Google Drive, and Gmail. --- Key Advantages 1. ✅ Full Automation The workflow fully automates the certificate generation and distribution process, from reading participant data to delivering the final PDF certificates via email, eliminating repetitive manual tasks. 2. ✅ Bulk Certificate Generation By reading data directly from Google Sheets, the workflow can generate and sen

Free

Send Gmail emails when new BigQuery jobs successfully completed

Every time a new job has been completed in BigQuery, Make will automatically send an email via Gmail.

Free

Create custom invoice from Shopify orders in Eledo and send it attached to an e-mail in Gmail

Create a custom Invoice from Shopify order using Eledo PDF generator. Then, send the file to the customer by Gmail and in the same time upload it to Google Drive.

Free

Generate personalized startup ideas with Claude analysis and Gmail reports

Get Started with n8n now! Who's it for This workflow is designed for developers, entrepreneurs, and startup enthusiasts who want personalized, AI-driven startup idea generation and analysis. Perfect for solo developers seeking side project inspiration, startup accelerators evaluating concepts, or anyone looking to validate business ideas with professional-grade analysis. How it works The workflow uses a three-stage Claude AI agent pipeline to create comprehensive startup analyses. The first agen

Free

Gmail AI search assistant on Telegram (Gemini-powered)

Overview The n8n Telegram Gmail Assistant is an intelligent workflow that lets you search and retrieve specific Gmail emails simply by messaging a Telegram bot. Powered by advanced language models, it turns plain-language requests into precise Gmail searches, delivering results directly to your Telegram chat. This no-code automation is perfect for users who want instant, conversational access to their inbox—no Gmail tab required. Key Features Conversational Email Search: Just message the Telegra

Free

Edit images with text prompts using Gemini AI and Telegram Bot

Transform your Telegram chats into a creative powerhouse with this AI-driven image editing bot. Send an image document with a descriptive caption, and watch it get intelligently edited in seconds—no design skills required! 📋 What This Template Does This workflow powers a Telegram bot that automatically processes incoming image documents with text prompts. It downloads the file, uses Google Gemini AI to edit the image based on your caption, and instantly replies with the enhanced version. - Trigg

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free