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. 💬📊
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. 📧
✅ 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
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. ✅