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

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

Ready for 3.0

by Ruthwik ✓ · 1,857 views · created 2025-09-03 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs when a new email arrives over IMAP. Along the way it connects OpenRouter Chat Model. It also calls accounts.zoho.com over HTTP.

How it runs

Trigger: When a new email arrives over IMAP.

  1. Set Account ID (Edit Fields (Set)): sets 1 field: accountID
  2. Get Access token (HTTP Request): calls accounts.zoho.com (POST)
  3. Get labels (HTTP Request): calls an HTTP API
  4. Label name to ID map (Code): runs custom JavaScript code
  5. Text Classifier: classifies text into categories with AI, with model: OpenRouter Chat Model
  6. Set Support Category (Edit Fields (Set)): sets 1 field: Category
  7. Set Leads Category (Edit Fields (Set)): sets 1 field: Category
  8. Set Account Management Category (Edit Fields (Set)): sets 1 field: Category
  9. Set Billing & Finance Category (Edit Fields (Set)): sets 1 field: Category
  10. Set HR & Recruitment Category (Edit Fields (Set)): sets 1 field: Category

…plus 2 more steps. See the full node list below.

Services it uses

OpenRouter Chat Model

HTTP calls to: accounts.zoho.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

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

Excerpt from Ruthwik's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.