๐ฌ Smart chat assistant with GPT-5, Google Sheets, and Pinecone RAG memory
โก 468 views ยท ๐ฌ Support Chatbots
Description
๐ 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:
- PINECONE_INDEX with your index name
- GOOGLE_SHEET_ID with your log sheet ID
- GOOGLE_DRIVE_FOLDER_ID 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. โ
๐ Nodes Used
Google Sheets, Google Drive, Gmail, Google Drive Trigger, Schedule Trigger, AI Agent
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File