Templates / Smart chat assistant with GPT-5, Google Sheets, and Pinecone RAG memory

Smart chat assistant with GPT-5, Google Sheets, and Pinecone RAG memory

Ready for 3.0

by Rahul Joshi ✓ · 538 views · created 2025-11-14 · Support Chatbot, AI RAG

Ready 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.

What this workflow does

This AI workflow has 22 nodes and runs when a chat message arrives (plus 2 other triggers). Along the way it connects OpenAI Chat Model, Google Drive, Embeddings OpenAI and Google Sheets and 2 more.

How it runs

Trigger: When a chat message arrives (plus 2 other triggers).

  1. Format Data For AI Agent (Edit Fields (Set)): sets 4 fields: intent, topic, content_id…
  2. Get Data from Sheet. (Google Sheets): uses Google Sheets
  3. Download file (Google Drive): download
  4. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Get Previous Content from Sheet, Pinecone Vector Store); memory: Short-Term Memory; output parser: Output Parser (JSON Enforcement)
  5. Aggregate: combines items into one
  6. Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  7. Conversation Logging (Google Sheets): append or update
  8. Convert Data to file (Convert to File): converts data to a file (to text)
  9. Check File Exist (If): checks a condition and branches into true / false
  10. Send Chat History with attachment (Gmail): uses Gmail

Services it uses

OpenAI Chat ModelGoogle DriveEmbeddings OpenAIGoogle SheetsPinecone Vector StoreGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (19)

From the author

📊 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…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.