Automatic email categorization & labeling in Zoho Mail with GPT-4o-mini
AI-Powered Email Categorization & Labeling in Zoho Mail This n8n template demonstrates how to use AI text classification to automatically categorize incoming emails in Zoho Mail and apply the correct label (e.g., Support, Billing, HR). It saves time by keeping your inbox structured and ensures emails are routed to the right category. Use cases include: - Routing customer support requests to the correct team. - Organizing billing and finance communications separately. - Streamlining HR and recrui
At a glance
Automatic email categorization & labeling in Zoho Mail with GPT-4o-mini is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects code, emailReadImap, httpRequest, lmChatOpenRouter. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- code, emailReadImap, httpRequest, lmChatOpenRouter, merge, noOp
- Modules
- 15
- Price
- Free
- Version
- v1.0

About this workflow
AI-Powered Email Categorization & Labeling in Zoho Mail This n8n template demonstrates how to use AI text classification to automatically categorize incoming emails in Zoho Mail and apply the correct label (e.g., Support, Billing, HR). It saves time by keeping your inbox structured and ensures emails are routed to the right category. Use cases include: - Routing customer support requests to the correct team. - Organizing billing and finance communications separately. - Streamlining HR and recruitment email handling. - Reducing inbox clutter and ensuring no important message is missed. --- ℹ️ Good to know - You’ll need to configure Zoho OAuth credentials — see Self Client Overview, Authorization Code Flow, and Zoho Mail OAuth Guide. - The labels must already exist in Zoho Mail (e.g., Support, Billing, HR). The workflow fetches these labels and applies them automatically. - The Zoho Mail API domain changes depending on your account region: - .com → Global accounts ( - .eu → EU accounts ( - .in → India accounts ( Example: For an EU account, the endpoint would be: - The AI model used for text classification may incur costs depending on your provider (e.g., OpenRouter). - Start by testing with a small set of emails before enabling for your full inbox. --- 🔄 How it works 1. A new email in Zoho Mail triggers the workflow. 2. OAuth authentication retrieves access to Zoho Mail’s API. 3. All available labels are fetched, and a label map (display name → ID) is created. 4. The AI model analyzes the subject and body to predict the correct category. 5. The workflow routes the email to the right category branch. 6. The matching Zoho Mail label is applied (final node is deactivated by default). --- 🛠️ How to use - Create the required labels (e.g., Support, Billing, HR, etc.) in your Zoho Mail account before running the workflow. - Replace the Zoho Mail Account ID in the Set Account ID node. - Configure your Zoho OAuth credentials in the Get Access Token node. - Update the API base URL to match your Zoho account’s region (.com, .eu, .in, etc.). - Activate the Apply Label to Email node once ready for production. - Optionally, adjust categories in the AI classifier prompt to fit your organization’s needs. --- 📋 Requirements - Zoho Mail account with API access enabled. - Labels created in Zoho Mail for each category you want to classify. - OAuth credentials set up in n8n. - Correct Zoho Mail API domain (.com, .eu, .in) based on your account region. - An AI model (via OpenRouter or other provider) for text classification. --- 🎨 Customising this workflow This workflow can be adapted to many inbox management scenarios. Examples include: - Auto-routing customer inquiries to specific departments. - Prioritizing VIP client emails with special labels. - Filtering job applications directly into an HR-managed folder. ---
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
Lightroom cloud to Instagram auto poster (AI captions)
Course recommendation system for surveys with data tables and GPT-4.1-Mini
Extract and structure Thai documents to Google Sheets using Typhoon OCR and Llama 3.1
Real-time registration form tracking with Google Sheets and Gmail notifications
Automatic email unsubscribe handler: Outlook to BigQuery integration
Monitor server uptime & get email alerts with Google Sheets
Analyze WooCommerce category sales over time with Airtable and Slack
Extract Linkedin company data with Airtop
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