🧠 AI & AgentsSimple🧠 AI-powered

Email Categorization — Gmail Labels

A 9-step ai & agents automation, triggered by gmail, connecting Gmail, OpenRouter (LLM), with built-in AI reasoning.

⬇ Download workflow JSON
💡

What this does for your business

In plain terms: this is an AI assistant that works the moment a new message arrives. It uses AI to understand and generate content, so it handles judgement-style work, not just moving data. It connects to Gmail, OpenRouter (LLM) and completes multi-step tasks for you automatically — the kind of work you'd otherwise hand to a virtual assistant.

9
Nodes
2
Integrations
9
Connections
Gmail
Trigger

🚀 Deploy this workflow

Deploy this automation in minutes

Log in and we'll walk you through every key step by step, then deploy it for you.

Get started free Log in

🏗️ Architecture diagram

The real node graph exported from n8n — triggers (green), AI nodes (violet), services and logic — laid out as they run.

📧Gmail TriggergmailTriggerExtract Email FieldssetRule-Based ClassifiercodeCategorized by Rules?if🧠LLM Classify (Fallbac…chainLlm🧠OpenRouter Chat ModellmChatOpenRouterParse LLM CategorysetMerge Pathsmerge📧Apply Gmail Labelgmail

⚙️ How it works

  1. Gmail Trigger · gmailTrigger
  2. OpenRouter Chat Model · lmChatOpenRouter
  3. Extract Email Fields · set
  4. LLM Classify (Fallback) · chainLlm
  5. Rule-Based Classifier · code
  6. Parse LLM Category · set
  7. Categorized by Rules? · if
  8. Merge Paths · merge
  9. Apply Gmail Label · gmail

💼 Business analysis

🎯

Business use case

Deploys an autonomous AI agent that can reason over instructions, call tools, and take multi-step actions on behalf of a team — replacing repetitive knowledge work. It orchestrates Gmail, OpenRouter (LLM) so a single natural-language request becomes a completed task.

📈

Market need

Businesses are racing to put AI agents to work but lack the engineering to wire models to their real tools and data. This delivers that wiring as a ready-to-run asset.

💰

Market value

Custom AI-agent builds are quoted at $3,000–$15,000+ by agencies, with managed retainers on top. As a productised template it commands premium one-time or subscription pricing.

🧩 Integrations & stack

📧Gmail🧠OpenRouter (LLM)
Node typesgmailTrigger, set, code, if, chainLlm, lmChatOpenRouter, merge, gmailWorkflow IDgPMMJ5AgEXMEe9Dw
⬇ Download workflow JSON ← Back to library