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

Go to Workflow
423 views
Built by David Olusola David Olusola
Created on June 05, 2026

Description

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!

Nodes Used (11)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader
Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi
Google Drive
n8n-nodes-base.googleDrive
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone
Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter
Text Classifier
@n8n/n8n-nodes-langchain.textClassifier