AutomationMart
Home/Browse/Multi-account email classifier with AI, Gmail, Discord & Google Sheets
n8n

Multi-account email classifier with AI, Gmail, Discord & Google Sheets

n8nn8n22 modulesv1.0
GmailSlackGoogle SheetsDiscordOpenAI

AI Email Classifier 📬 Automate Email Classification, Prioritization, and Spam Detection Across Multiple Accounts Created by: Jayant Kumar (@jharilela) 🛠 Powered by: Gmail, Google Sheets, OpenAI, Discord, and n8n --- Sample Discord labelling as Spam Sample Discord labelling as Legit ![ai-email-classifier-legit](

At a glance

Multi-account email classifier with AI, Gmail, Discord & Google Sheets is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Slack, Google Sheets, Discord. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack, Google Sheets, Discord, OpenAI
Modules
22
Price
Free
Version
v1.0
Multi-account email classifier with AI, Gmail, Discord & Google Sheets workflow diagram

About this workflow

AI Email Classifier 📬 Automate Email Classification, Prioritization, and Spam Detection Across Multiple Accounts Created by: Jayant Kumar (@jharilela) 🛠 Powered by: Gmail, Google Sheets, OpenAI, Discord, and n8n --- Sample Discord labelling as Spam Sample Discord labelling as Legit --- Why I Built This Focus is Expensive. Managing multiple email inboxes every day—personal, business, partnerships, invoices. Logging into each, skimming through noise, flagging important stuff, and deleting spam started eating up hours of my week. I needed a system that helped me focus only on what matters without building an entire helpdesk dashboard. I already live in Discord. It made sense to push my emails there—but in a fun, digestible, and actionable way. I built AI Email Classifier 📬 to summarize emails, detect spam, assign priority, and make everything skimmable with pictures and links. And it works across multiple Gmail accounts. --- Key Features - ✅ Works with multiple Gmail inboxes - 🧠 Uses AI to classify spam vs legit - 🎯 Assigns priority levels: High / Medium / Low - 🗂 Appends everything to a central Google Sheet - 📸 Sends visual summaries to Discord (with image + action links) - 🛠 Powered by open-source: n8ndiscordtriggerbot --- How It Works Here’s the high-level flow: 1. New Email in any inbox triggers the worfklow to start 2. The AI Agent reads the raw content, subject, sender, Gmail labels. 3. It calls a Google Sheet that acts as our feedback memory: - Emails and domains manually marked as spam or legit. 4. AI classifies the incoming email using logic: - Spam if sender or domain is blacklisted, or content matches patterns like: "promotions, phishing, ads, mass emails, cold offers" - Priority is assigned by: - High: deadlines, legal, payments, clients, CEO emails - Medium: team updates, meetings, project notifications - Low: newsletters, FYIs, casual threads 6. It produces a compact JSON output with: - Sender, recipient, subject, summary, priority, priority color, image URL, action URL 7. The message is formatted visually and posted back to Discord as an embed with: - Summary text - Actionable links - Priority color code - Thumbnail (if any) --- Google Sheet Training Table The system uses this sheet as live memory to label spam and legit senders: This allows manual control to teach the AI which senders to trust or ignore. Every time I see something marked wrong, I just reply in Discord with "spam" or "legit" on that message thread. That triggers an update to the Sheet via AI parsing and n8n. --- Why Manual Input Still Matters AI isn’t perfect. Some spam emails are cleverly disguised. And some senders are contextually important only to you. That’s why I kept a simple feedback loop: - You tell the bot "spam" or "legit" on any Discord email message. Or anything along that line - The AI agent detects the intent and updates the Sheet. - The AI improves its judgment next time as it now remembers your preference --- Why Discord? Because Slack charges per seat and email feels lonely. I run most of my operations inside Discord community chats, client rooms, bot alerts. Instead of making a full email UI, I turned each email into a Discord card with a thumbnail, summary, and quick actions. It’s fun. It’s visual. It doesn’t feel like work. Email becomes more like a game feed. --- Tech Stack - Gmail → Discord via Gmail trigger node - Discord → n8n Webhook via n8ndiscordtriggerbot - OpenAI GPT-4o (classification + summarization) - Google Sheets (feedback memory) - Discord Node (embed output with JSON + images) --- Try It Yourself Clone the workflow JSON, set up your Gmail integrations, and install the n8n Discord Trigger Bot. I made this workaround because i couldnt find a discord trigger on n8n. Now I just scroll my Discord DMs and know what to reply to, and ignore everything else.Dont let Email spam your brain. Let your AI do the thinking. ---

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 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

Update Google Sheets rows instantly with insights from ChatGPT based on cell changes

Instantly update Google Sheets rows with insights from ChatGPT when cell changes are detected, enhancing data analysis and decision-making.

Free

Analyze WooCommerce category sales over time with Airtable and Slack

WooCommerce Product Category Sales Performance Report This workflow automatically analyzes sales data by product category, compares performance across time periods (daily, weekly or monthly), stores structured results in Airtable and sends a clear summary to Slack for quick decision-making. This workflow pulls order data for two time periods (current and previous), groups sales by product category and calculates key metrics like revenue, units sold and share of total sales. Each category is then

Free

Generate personalized cold email icebreakers from LinkedIn or website data with GPT-4

Multi-Channel Cold Email Generator (LinkedIn + Website Fallback) Description This workflow automates the generation of hyper-personalized cold emails. It intelligently switches between two data sources: LinkedIn Activity and Company Website. If the lead has recent LinkedIn posts, the AI generates an icebreaker referencing their specific thoughts or news. If no posts are found, the workflow falls back to scraping their company website and generating an angle based on their business proposition. H

Free

Send a Slack notification for out-of-stock items in Katana

When an item's inventory is out of stock in Katana, a Slack notification is sent.

Free

🎬 YouTube shorts automation tool 🚀

YouTube Shorts Automation Tool 🚀 Automate the creation of high-performing YouTube Shorts in minutes! Who is this for? 🎯 - Content Creators: Generate engaging short videos effortlessly. - Marketing Agencies: Produce client-ready content quickly. - Business Owners: Promote products/services through viral short-form content. What problem does this solve? 🛠️ Creating short-form video content is time-consuming, complex, and skill-intensive. This workflow automates video creation, eliminating the need

Free

Filter rows in Google Sheets and send an email with the results

Automatically filter rows in Google Sheets and send the results via email. Streamline data management and communication with this powerful integration.

Free

Extract Linkedin company data with Airtop

Automating LinkedIn Company Data Extraction Use Case This automation extracts detailed company insights from a LinkedIn company page, including identity, scale, classification, and funding data. Ideal for investors, sales teams, and market researchers. What This Automation Does This automation accepts the following inputs: - Company's LinkedIn URL: The public LinkedIn page URL of the company. - Airtop Profile (connected to LinkedIn): Your Airtop Profile authenticated on LinkedIn. It then extract

Free

Smart travel package finder: Search flights & hotels with Skyscanner-Booking.com

Introduction Automates travel itinerary creation by searching flights and hotels via APIs, then uses AI to generate personalized recommendations delivered as HTML emails through Gmail. How It Works Webhook receives travel requests, searches Skyscanner and Booking.com APIs in parallel, merges results, uses AI to create optimized itineraries, formats as HTML email, sends via Gmail. Workflow Template Webhook → Parse & Validate → Parallel Searches (Flights: Skyscanner | Hotels: Booking.com)

Free

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.

Log in to review
Free
No ratings yet

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.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free