Templates / Automated customer support with GPT-4 knowledge base agent for Gmail

Automated customer support with GPT-4 knowledge base agent for Gmail

Ready for 3.0

by Yasser Sami ✓ · 892 views · created 2025-10-01 · AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 16 nodes and runs on Google Drive events (file created) (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Embeddings OpenAI, Pinecone Vector Store and Gmail and 1 more.

How it runs

Trigger: On Google Drive events (file created) (plus 1 other trigger).

  1. Download file (Google Drive): download
  2. Text Classifier: classifies text into categories with AI, with model: OpenAI Chat Model
  3. Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  4. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (knowledgebase)
  5. Add label to message (Gmail): add labels
  6. Reply to a message (Gmail): reply

Services it uses

OpenAI Chat ModelEmbeddings OpenAIPinecone Vector StoreGmailGoogle Drive

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (12)

From the author

Customer Support AI Agent for Gmail This n8n template demonstrates how to build an AI-powered customer support workflow that automatically handles incoming Gmail messages, classifies them, finds answers from your knowledge base, and sends a personalized…

Excerpt from Yasser Sami's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.