🎫 Route and categorize Gmail emails to Slack with Llama 3 via OpenRouter

⚡ 13 views · 🎫 Ticket Management & Triage

Description

This n8n template from Intuz provides a complete and automated solution to transform your team’s inbox management.

It acts as an intelligent agent that reads incoming Gmail messages, uses AI to determine their category, and automatically routes them to the correct Slack channel—even creating new channels on the fly for new topics.

Who’s this workflow for?

How it works

1. Monitor New Emails: The workflow continuously checks a specified Gmail account for new, unread emails. It automatically filters out spam, drafts, and duplicates.

2. AI Categorization: Each new email’s subject and body are sent to an AI model (like Llama 3 via OpenRouter). The AI analyzes the content and assigns a category based on a predefined list (e.g., sales, marketing, accounts, internal).

3. Find or Create Slack Channel: The workflow then checks your Slack workspace to see if a channel corresponding to the AI’s category already exists (e.g., #sales).

4. Route the Email:

Key Requirements to Use This Template

1. n8n Instance & Required Nodes:

2. Gmail Account: An active Gmail account with API access enabled.

3. Slack Workspace & App:

4. OpenRouter Account: An account with OpenRouter to access various AI models like Llama 3. You will need an API key.

Setup Instructions

1. Gmail Configuration:

2. OpenRouter AI Configuration:

3. Slack Configuration:

4. Activate the Workflow: Save the workflow and toggle the “Active” switch to ON. Your intelligent email routing system is now live!

Support

If you need help setting up this workflow or require a custom version tailored to your specific use case, please feel free to reach out to the template author:

For Custom Worflow Automation

Click here- Get Started

đź”— Nodes Used

Slack, Gmail Trigger, AI Agent, Structured Output Parser, OpenRouter Chat Model

📥 Import

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

📖 Importing guide · 🔑 Credential setup