Automatic email classification with Gmail and Claude AI
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

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.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 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
🤖 Create Your First AI Agent with Weather & Web Scraping (Starter Kit)
Generate bulk Google Slides certificates 📜 as PDFs and email them with Gmail
Send Gmail emails when new BigQuery jobs successfully completed
Create custom invoice from Shopify orders in Eledo and send it attached to an e-mail in Gmail
Generate personalized startup ideas with Claude analysis and Gmail reports
Gmail AI search assistant on Telegram (Gemini-powered)
Edit images with text prompts using Gemini AI and Telegram Bot
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.
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.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you