Skip to main content

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

Workflow preview

Workflow preview
100%
Smart chat assistant with GPT-5, Google Sheets, and Pinecone RAG memory preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 (R...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.googledrivetrigger, n8n-nodes-base.googledrive

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.

Original n8n.io source

1.1 Workflow description

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

πŸ“Š 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. βœ…

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Short-Term Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 9 - AI Agent (Chat Composer)

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 10 - Output Parser (JSON Enforcement)

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 11 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 12 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.3

Block 13 - Google Drive Trigger

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 14 - Download file

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 15 - Default Data Loader

Type / Role
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
Config choices
Version 1.1

Block 16 - Recursive Character Text Splitter

Type / Role
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - textSplitterRecursiveCharacterTextSplitter
Config choices
Version 1

Block 17 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Block 18 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 19 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 20 - Get Previous Content from Sheet

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 21 - Conversation Logging

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 22 - Pinecone Vector Store Insert

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.3

Block 23 - Pinecone Vector Store Query for Knowledge Base

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.3

Block 24 - Embeddings OpenAI Query for Chat modal

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.2

Showing the first 24 of 29 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Smart chat assistant with GPT-5, Google Sheets, and Pinecone RAG memory
Complexity advanced
Nodes 29
Categories Support Chatbot, AI RAG
Author Rahul Joshi
Published 14 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10828/10828.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Smart chat assistant with GPT-5, Google Sheets, and Pinecone RAG memory do?

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 (R...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.