Skip to main content

Smart Customer Support System with GPT-4o, Gmail, Slack & Drive Knowledge Base'

Workflow preview

Workflow preview
100%
Smart Customer Support System with GPT-4o, Gmail, Slack & Drive Knowledge Base' preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

The AI Support Agent combines Gmail, Slack, and Google Drive into a seamless support workflow powered by GPT 4o and Pinecone. Email Monitoring – New support emails are pulled from Gmail every mi...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmailtrigger, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.textclassifier, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by David Olusola.

Original n8n.io source

1.1 Workflow description

Title
Smart Customer Support System with GPT-4o, Gmail, Slack & Drive Knowledge Base'
Workflow name
Smart Customer Support System with GPT-4o, Gmail, Slack & Drive Knowledge Base'

The AI Support Agent combines Gmail, Slack, and Google Drive into a seamless support workflow powered by GPT-4o and Pinecone.

🧠 Email Monitoring – New support emails are pulled from Gmail every minute. 📤 Classification – AI categorizes emails (e.g., billing, support, spam, urgent). 📚 Knowledge-Based Replies – GPT-4o drafts personalized replies using your support documents synced from Google Drive and stored in Pinecone.

📩 Automatic Response – The agent replies to the customer in the same Gmail thread. 🚨 Escalation Detection – If human support is needed, Slack is notified instantly. 📊 Logging – Each interaction is logged in Google Sheets for tracking and analysis. 🔁 Live Sync – Any document added to your Google Drive folder is auto-loaded into the knowledge base for future AI responses. 🛠️ Quick Setup Steps 🛠️ Quick Setup Checklist

⏱ Time to Deploy: ~10–15 minutes 🔌 1. Connect Integrations ✅ Gmail (OAuth2) ✅ Google Drive (OAuth2) ✅ Google Sheets (OAuth2) ✅ OpenAI API Key ✅ Pinecone API Key ✅ Slack Webhook (for alerts)

🗂️ 2. Update Workflow IDs Replace the sample IDs in your nodes:

📁 Google Drive Folder ID → Where your KB lives 📊 Google Sheet ID → Where interactions are logged 🚨 Slack Webhook URL → Where urgent alerts go 🔎 Pinecone Index → Your vector storage index

🎨 3. Customize Prompt & Tone Go to 🔧 “Response Agent” Node Update the System Prompt to reflect your brand’s tone: e.g. “We’re always here to help, and we reply fast.”

📂 4. Upload Your Docs Add .pdf, .txt, or .docx files to your synced Google Drive folder. The agent will auto-read and embed them into Pinecone for AI-powered replies.

▶️ 5. Run & Test Send a test email from another account ✅ Watch the reply come through Gmail ✅ Check Slack for urgent alert ✅ Confirm logging in Google Sheets ✅ Done!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Gmail Inbox Monitor

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 2 - Email Content Preprocessor

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Intelligent Email Classifier

Type / Role
@n8n/n8n-nodes-langchain.textClassifier - textClassifier
Config choices
Version 1.1

Block 4 - GPT-4o Language Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 5 - Urgent Email Filter

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 6 - Slack Notification Hub

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Analytics Data Logger

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 8 - Setup Instructions

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Gmail

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 10 - Google Drive Trigger

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 11 - Google Drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 12 - Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.1

Block 13 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 14 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1

Block 15 - Recursive Character Text Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 16 - Pinecone Vector Store1

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.2

Block 17 - Embeddings OpenAI1

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 18 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 19 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

3. Summary Table

Workflow Smart Customer Support System with GPT-4o, Gmail, Slack & Drive Knowledge Base'
Complexity advanced
Nodes 19
Categories Support Chatbot, AI RAG
Author David Olusola
Published 31 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4543/4543.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Smart Customer Support System with GPT-4o, Gmail, Slack & Drive Knowledge Base' do?

The AI Support Agent combines Gmail, Slack, and Google Drive into a seamless support workflow powered by GPT 4o and Pinecone. Email Monitoring – New support emails are pulled from Gmail every mi...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.