AutomationMart
Home/Browse/Build a Google Drive internal knowledge base with OpenAI and Pinecone
n8n

Build a Google Drive internal knowledge base with OpenAI and Pinecone

n8nn8n34 modulesv1.0
GmailSlackGoogle SheetsOpenAIGoogle Drive

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 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 t

At a glance

Build a Google Drive internal knowledge base with OpenAI and Pinecone is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Slack, Google Sheets, OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Slack, Google Sheets, OpenAI, Google Drive
Modules
34
Price
Free
Version
v1.0
Build a Google Drive internal knowledge base with OpenAI and Pinecone workflow diagram

About this workflow

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 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. What This Workflow Does 📂 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 Key Benefits ✅ 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 How It Works 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. Features - Manual ingestion trigger for initial setup - Google Drive folder monitoring for new and updated docs - Recursive character text splitting with configurable chunk size and overlap - OpenAI text-embedding-3-small for high quality 1536-dimension embeddings - Pinecone vector database for fast cosine similarity search - Relevance score filtering — only chunks above 0.3 score are used - GPT-4o grounded answering with strict no-hallucination prompt - Source citation in every answer - Confidence scoring — high, medium, or low per response - Full Q&A audit log in Google Sheets - Weekly automated document registry sync - Weekly KB digest email with full status report - Modular 3-stage architecture — easy to extend with Slack or Teams integration Requirements - OpenAI API key (text-embedding-3-small + GPT-4o access) - Pinecone account — free tier works (index: dimensions 1536, metric cosine) - Google Drive OAuth2 connection - Google Sheets OAuth2 connection - Gmail OAuth2 connection - A Google Drive folder with your company documents as Google Docs - A configured Google Sheet with 2 sheets: Q&A Log and Document Registry Setup Steps - Create a Pinecone account at pinecone.io — free tier is enough - Create a Pinecone index with dimensions 1536 and metric cosine - Create a Google Drive folder called "Knowledge Base" - Add your company documents as Google Docs inside that folder - Copy the Google Sheet template and grab your Sheet ID - Add all credentials — Pinecone, OpenAI, Google Drive, Google Sheets, Gmail - Paste your Knowledge Base folder ID into both Google Drive nodes - Paste your Sheet ID into all Google Sheets nodes - Test by sending a POST request to the webhook with a question from your docs Target Audience 🧠 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

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Merge PDFs in iLovePDF and upload files to Google Drive

This template loads files from a Google Drive folder, merges them via iLovePDF and uploads the file to a Google Drive folder.

Free

Parse phone numbers and add them to Google Sheets using a custom webhook

Automatically parse phone numbers from incoming data via Custom Webhook and add them to Google Sheets, streamlining contact management and data organization.

Free

Send Slack message for every new Web Data Forms form submission

Never miss a lead or a feedback entry again. This template automatically pushes new Web Data Forms submissions directly into your team's Slack channel in real-time. Pro Tip: For the best results, run a test submission first. This allows you to "map" specific form answers directly into your Slack message for a custom, detailed alert. This template was created by Web Data Forms.

Free

Parse JSON data from a webhook and add it to Google Sheets

Automatically parse JSON data from incoming webhooks and add it to Google Sheets. Streamline data management by integrating Custom WebHook, Parse JSON, and Google Sheets.

Free

Send new Google Sheets contacts to EngageBay

When a new row is added in Google Sheets spreadsheet, a new contact is created in EngageBay.

Free

Scrape Reddit posts with BrowserAct, summarize with Gemini, and save to Google Sheets

Reddit Intelligence Monitor: AI-Powered Scraping with BrowserAct Automate your market research and competitor analysis with this powerful "Set and Forget" workflow. It monitors Reddit for specific keywords and competitor subreddits, uses BrowserAct for stealth scraping, analyzes the sentiment with AI, and delivers a daily intelligence digest to your Google Sheets. 💡 Key Features - Powered by BrowserAct: Leverages cloud browser automation to stealthily scrape Reddit data with

Free

Validate QR tickets in real time with Google Forms and Sheets

Automated QR Ticket Scanner & Validator This workflow is the perfect companion to the "Automated e-Ticket PDF Generator". It acts as a lightweight, automated check-in system for events. By pairing a simple Google Form with a mobile scanning app, it validates QR codes against your master database in real-time and logs the attendance status. How it works 1. Trigger: The workflow triggers instantly when a new response is submitted to a Google Form (which acts as your QR code scanner input). 2. Data

Free

Automate support ticket prioritization with Jotform, Gemini AI, ClickUp tasks

Automated Support Prioritization and AI Task Creation This n8n workflow instantly captures support issues submitted via Jotform and efficiently routes them to the appropriate team and logging system based on the severity level defined by the customer. It then uses an AI Agent (Google Gemini) to transform the raw customer data into a clear, concise, and actionable task for the development team. Workflow Overview 1. Ingestion & Logging: A new support ticket is received via Jotform and immediately

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free