🎫 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

🏒 Who This Is For

Teams that want reliable, automated inbox management:

🧩 Internal Workflow Overview

  1. Gmail Trigger pulls unread emails from the inbox
  2. Email Classifier Agent (OpenAI) cleans + classifies the email
  3. Switch Node routes to the correct workflow lane
  4. Labels are added β†’ AI responders generate the message β†’ internal teams get notified
  5. Optional: Demo email generator + inbox cleanup for testing

πŸ› οΈ How to Set Up

  1. Add credentials:
    • Gmail OAuth2
    • OpenAI / Gemini
    • Google Sheets OAuth2
  2. Copy the demo sheet:
    https://docs.google.com/spreadsheets/d/1A959skQt0a7RbdsD0IGaCbPxMv4a-HjmQL4hwB9TcXc/edit?usp=sharing
  3. Update the Google Sheets nodes with your Document ID + Sheet Name
  4. Enable Gmail Trigger (UNREAD filter recommended)
  5. Use β€œSend Demo Emails” β†’ test end-to-end behavior
  6. Run the Gmail Classifier workflow live

πŸ“¦ Requirements

🎯 Ideal Enterprise Use Cases

πŸ§ͺ Test Data Included

Use the Demo Sheet tabs:

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

πŸ“– Importing guide Β· πŸ”‘ Credential setup