🎫 Automatic email categorization & labeling in Zoho Mail with GPT-4o-mini

1,338 views · 🎫 Ticket Management & Triage

Description

📧 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:


ℹ️ Good to know

Example: For an EU account, the endpoint would be:

https://mail.zoho.eu/api/accounts/<accountID>/updatemessage

🔄 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


📋 Requirements


🎨 Customising this workflow

This workflow can be adapted to many inbox management scenarios. Examples include:


🔗 Nodes Used

Email Trigger (IMAP), HTTP Request, Text Classifier, OpenRouter Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup