Smart chat assistant with GPT-5, Google Sheets, and Pinecone RAG memory
Ready for 3.0Ready 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.
Nodes used (19)
- Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Aggregate
n8n-nodes-base.aggregate - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Google Sheets
n8n-nodes-base.googleSheets - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Convert to File
n8n-nodes-base.convertToFile - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set
What it does
π Description Empower your workflows with an intelligent AI chat assistant that retrieves real-time context from Google Sheets and a Pinecone knowledge base using Retrieval-Augmented Generation (RAG). π€π This workflow processes chat messages, retrieves relevant contextual data, generates natural and context-aware responses via OpenAI GPT-5, and automatically logs every interaction in Google Sheets. It also auto-indexes new documents from Google Drive into Pinecone for knowledge expansion and emails weekly chat history summaries for review. π¬π What This Template Does 1οΈβ£ Chat Trigger β Receives incoming chat messages through a webhook. π¬ 2οΈβ£ Data Enrichment β Extracts topic, intent, and context from messages. π§© 3οΈβ£ Context Retrieval β Fetches structured data from Google Sheets and semantic data from Pinecone. π§ 4οΈβ£ AI Response Generation β Uses GPT-5 to produce relevant, human-like replies with contextual references. π€ 5οΈβ£ Conversation Logging β Stores chat sessions with timestamps and detected intent in Google Sheets. π 6οΈβ£ Knowledge Base Expansion β Automatically indexes new files from Google Drive to Pinecone for future RAG responses. π 7οΈβ£ Weekly Report β Aggregates all chats and sends an email summary with logs attached via Gmail every Monday. π§ Key Benefits β
AI chat assistant with contextual accuracy using RAG β
Auto-updating knowledge base via Google Drive β Pinecone β
End-to-end chat tracking and audit-ready logging β
Weekly performance reports via Gmail β
Seamless integration with Google Workspace Features - Retrieval-Augmented Generation (RAG) workflow - Google Sheets integration for structured memory - Pinecone vector database for semantic retrieval - GPT-5 for context-aware conversation generation - Google Drive watcher for automatic knowledge updates - Gmail integration for weekly report delivery - Built-in JSON validation and session memory Requirements - OpenAI API key (GPT-4/GPT-5) - Google Sheets OAuth2 credentials - Pinecone API credentials - Google Drive OAuth2 credentials - Gmail OAuth2 credentials Replace: - PINECONEINDEX with your index name - GOOGLESHEETID with your log sheet ID - GOOGLEDRIVEFOLDERID with monitored folder Target Audience - Support and helpdesk automation teams π¬ - AI chatbot developers enhancing context recall π€ - Businesses maintaining searchable conversation history π’ - Knowledge managers syncing chat + document intelligence π§ Step-by-Step Setup Instructions 1οΈβ£ Connect your OpenAI, Pinecone, Google Sheets, Google Drive, and Gmail credentials. 2οΈβ£ Update the Pinecone index and Google Sheet ID in the nodes. 3οΈβ£ Set your chat webhook URL for real-time message input. 4οΈβ£ Add your Google Drive folder ID for automated knowledge ingestion. 5οΈβ£ Test the chat workflow with sample messages. 6οΈβ£ Enable the schedule trigger to email weekly chat logs automatically. β