Automated customer support system with Gmail, GPT-4 & vector knowledge base
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Analysis Agent (v1.9), AI Analysis Agent1 (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Worth a look
- Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger1)
Nodes used (17)
- Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Telegram
n8n-nodes-base.telegram - Gmail Trigger
n8n-nodes-base.gmailTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Embeddings Mistral Cloud
@n8n/n8n-nodes-langchain.embeddingsMistralCloud - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Aggregate
n8n-nodes-base.aggregate - n8n Form Trigger
n8n-nodes-base.formTrigger - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - HTTP Request
n8n-nodes-base.httpRequest
What it does
Transform your customer support with this intelligent Gmail-based automation system that combines AI analysis, vector knowledge bases, and smart escalation workflows. This comprehensive solution automatically processes incoming support emails, provides contextual responses using your knowledge base, and seamlessly escalates complex issues to human agents. Key Features 🤖 Advanced AI Analysis GPT-4 powered email categorization (technical, billing, general, complaint) Automatic priority assignment (high, medium, low) with SLA tracking Smart escalation detection based on complexity and customer sentiment Context-aware responses using vector knowledge base integration 📧 Gmail Integration Real-time email monitoring with unread message triggers Automatic reply generation and sending Thread history analysis for contextual conversations Smart labeling system for automated organization Reply detection to prevent infinite loops 🧠 Knowledge Base Integration Qdrant vector store for semantic search capabilities Mistral Cloud embeddings for accurate content matching Tool-based knowledge retrieval during AI analysis Contextual responses based on your support documentation 📊 Comprehensive Tracking Google Sheets logging with detailed ticket information SLA tracking with automatic due date calculation Priority-based response time management Complete conversation history preservation 📱 Team Notifications Telegram alerts for escalated tickets Status updates with priority indicators Rich formatting with emojis and structured messages Real-time team coordination Workflow Components Core Processing Flow: Gmail Trigger monitors incoming emails Email filtering prevents reply loops and internal processing Data extraction captures customer information Thread history analysis for reply context AI agent analyzes with knowledge base access Smart routing based on escalation needs Automated responses or human escalation Comprehensive logging and notifications Advanced Features: Conversation context preservation Multi-source knowledge base queries Structured JSON output parsing Dynamic SLA assignment Conditional escalation workflows Required Integrations APIs & Services: Gmail OAuth2 (email processing) OpenAI GPT-4 (AI analysis) Qdrant (vector knowledge base) Mistral Cloud (embeddings) Google Sheets (logging) Telegram Bot (notifications) Setup Requirements: Gmail account with API access OpenAI API key Qdrant vector database Mistral Cloud account Google Sheets document Telegram bot token Use Cases Perfect for: SaaS companies with high support volume E-commerce businesses needing 24/7 support Service providers requiring categorized ticket handling Teams wanting to reduce response times Organizations needing SLA compliance tracking Industries: Software & Technology E-commerce & Retail Financial Services Healthcare & Medical Education & Training Business Benefits Efficiency Gains: 80% reduction in manual email processing Instant response to common inquiries Automatic priority and SLA assignment Reduced human agent workload Quality Improvements: Consistent response quality Knowledge base-powered accuracy Context-aware conversation handling Professional tone maintenance Operational Excellence: Complete audit trail in Google Sheets Real-time team notifications Escalation workflow automation Performance metrics tracking Technical Specifications Node Types Used: Gmail Trigger & Actions (5 nodes) LangChain AI Agent (2 nodes) Vector Store Integration (2 nodes) Data Processing (6 nodes) Conditional Logic (2 nodes) Notification Systems (1 node) Data Flow: Input: Gmail unread emails Processing: AI analysis with knowledge base Output: Automated replies or escalations Logging: Google Sheets with full details Notifications: Telegram status updates Installation & Setup Quick Start: Import workflow JSON Configure Gmail OAuth2 credentials Set up OpenAI API connection Connect Qdrant vector database Configure Google Sheets logging Set Telegram bot notifications Test with sampl