π« Classify and auto-reply to Gmail with OpenAI, Google Sheets RAG and Telegram
β‘ 17 views Β· π« Ticket Management & Triage
Description
π¨ Gmail Classifier βClassify emails using AI and automate responses
This workflow delivers a complete, enterprise-grade Gmail automation system designed for high-volume teams. It classifies incoming emails, applies labels, generates AI-powered responses, and routes messages to the right department. It also includes optional demo email generation and an inbox cleanup utility so teams can test the workflow instantly.
π What This Workflow Does
- Classifies Gmail messages into High Priority, Customer Support, Promotions, or Finance/Billing
- Generates AI-written replies or drafts based on category
- Applies Gmail labels automatically
- Uses RAG from Google Sheets for Support queries
- Sends real-time internal notifications (Telegram)
- Includes tools to generate & delete test emails for repeatable QA
π’ Who This Is For
Teams that want reliable, automated inbox management:
- Customer Support
- Sales
- Billing & Finance
- Operations
- Solo founders who need executive inbox automation
- AI-powered enterprise workflows using Gmail
π§© Internal Workflow Overview
- Gmail Trigger pulls unread emails from the inbox
- Email Classifier Agent (OpenAI) cleans + classifies the email
- Switch Node routes to the correct workflow lane
- Labels are added β AI responders generate the message β internal teams get notified
- Optional: Demo email generator + inbox cleanup for testing
π οΈ How to Set Up
- Add credentials:
- Gmail OAuth2
- OpenAI / Gemini
- Google Sheets OAuth2
- Copy the demo sheet:
https://docs.google.com/spreadsheets/d/1A959skQt0a7RbdsD0IGaCbPxMv4a-HjmQL4hwB9TcXc/edit?usp=sharing - Update the Google Sheets nodes with your Document ID + Sheet Name
- Enable Gmail Trigger (UNREAD filter recommended)
- Use βSend Demo Emailsβ β test end-to-end behavior
- Run the Gmail Classifier workflow live
π¦ Requirements
- Gmail API access
- OpenAI/Gemini API key
- Google Sheets OAuth (for RAG/lookup)
- n8n (latest recommended version)
π― Ideal Enterprise Use Cases
- Automated customer support with AI-written replies
- High-priority routing for executives
- Finance & billing summarization for operations
- Filtering promotions/marketing noise from shared inboxes
- AI-augmented helpdesk workflows
π§ͺ Test Data Included
Use the Demo Sheet tabs:
- Sample_Emails β pre-written emails for every category
- Demo_Emails β rows sent as live test emails
Copy β paste β run.
π Tags
Gmail, AI, Inbox Automation, Support Automation, Enterprise, Email Classification, OpenAI, RAG, Google Sheets
Template Author: Sandeep Patharkar
LinkedIn: https://www.linkedin.com/in/sandeeppatharkar
Skool: https://www.skool.com/aic-plus
π Nodes Used
Google Sheets, Telegram, Gmail, Gmail Trigger, OpenAI
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File