Block 1 - Log to Document Registry
- Type / Role
- n8n-nodes-base.googleSheets - googleSheets
- Config choices
- Version 4.7
Description Every company has documents sitting in Google Drive that nobody reads. HR policies, sales playbooks, product FAQs, financial guidelines — all written once, never found again. This wo...
n8n-nodes-base.googlesheets, n8n-nodes-base.gmail, n8n-nodes-base.manualtrigger, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, @n8n/n8n-nodes-langchain.embeddingsopenai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.
Original n8n.io sourceEvery company has documents sitting in Google Drive that nobody reads. HR policies, sales playbooks, product FAQs, financial guidelines — all written once, never found again. This workflow turns all of those documents into a live, searchable AI knowledge base that any team member can query instantly via a simple API call. Ask it anything. It finds the right document, pulls the exact relevant section, and answers in plain english — with the source cited so you always know where the answer came from. No hallucinations, no guessing, no manual searching. Built for founders, ops teams, and automation agencies who want company knowledge to be instantly accessible without building a custom RAG system from scratch.
📂 Reads all Google Docs from your Knowledge Base folder in Google Drive automatically ✂️ Splits each document into semantic chunks with overlap for better context retrieval 🤖 Converts every chunk into vector embeddings using OpenAI text-embedding-3-small 📌 Stores all embeddings in Pinecone with document metadata for fast semantic search 🌐 Accepts any question via webhook — from Slack, a form, or any internal tool 🔍 Searches Pinecone for the 5 most semantically relevant chunks to the question 🧠 Sends retrieved context to GPT-4o which answers using only what's in your documents 📝 Logs every question, answer, source, and confidence score to Google Sheets 🔄 Every Sunday checks Drive for new or updated documents and re-ingests them automatically 📧 Sends a weekly knowledge base digest showing what's current, new, or updated
✅ Zero hallucinations — GPT-4o only answers from your actual documents ✅ Always cites the source document so answers are verifiable ✅ Semantic search finds relevant content even if exact words don't match ✅ Knowledge base stays fresh automatically every Sunday ✅ Every Q&A logged to Google Sheets for full audit trail ✅ Works with any Google Docs — just drop them in the folder and run SW1
The workflow runs across 3 sub-workflows — one for ingestion, one for answering, one for maintenance. SW1 — Document Ingestion Pipeline (Run manually) You point it at your Google Drive Knowledge Base folder. It downloads every Google Doc as plain text, splits each one into 500-character chunks with 100-character overlap so context is preserved across boundaries. Each chunk gets converted into a 1536-dimension vector embedding using OpenAI's text-embedding-3-small model and stored in Pinecone with the document name as metadata. Every ingested document is logged to your Document Registry sheet with the ingestion date. Run this once when setting up, then SW3 handles updates automatically. SW2 — Question & Answer Agent (Always active via webhook) Someone sends a POST request with a question and their email. The question gets converted to an embedding using the same model used during ingestion. Pinecone finds the 5 most semantically similar chunks — ranked by cosine similarity score. Chunks scoring below 0.3 are filtered out to avoid irrelevant results. The remaining context gets sent to GPT-4o with strict instructions to only answer from what's provided. If the answer isn't in the knowledge base, it says so clearly instead of making something up. The response includes the answer, source document, confidence level, and whether it was found in the knowledge base. Everything is logged to your Q&A Log sheet. SW3 — Knowledge Base Manager (Every Sunday 11AM) Pulls your current Drive folder contents and compares every document ID against your Document Registry. New documents get flagged for ingestion. Existing documents get checked — if the file was modified after the last ingestion date, it gets re-ingested automatically. You get a weekly digest email showing what's current, what was updated, and what's new. No manual monitoring needed.
🧠 Founders who want instant answers from company documents without digging through Drive 📋 Ops and HR teams tired of answering the same internal questions repeatedly 💼 Sales teams who need instant access to product, pricing, and competitor information 🤖 Automation agencies building internal AI tools and knowledge systems for clients
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.
Showing the first 24 of 38 workflow blocks. Download the JSON for the full node graph.
| Workflow | Build a Google Drive internal knowledge base with OpenAI and Pinecone |
|---|---|
| Complexity | advanced |
| Nodes | 38 |
| Categories | Internal Wiki, AI RAG |
| Author | Rahul Joshi |
| Published | 09 Mar 2026 |
Use the JSON export at /data/workflows/13959/13959.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Description Every company has documents sitting in Google Drive that nobody reads. HR policies, sales playbooks, product FAQs, financial guidelines — all written once, never found again. This wo...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Internal Wiki, AI RAG use case.