AutomationMart
Home/Browse/Document Q&A system with OpenAI GPT, Pinecone Vector DB & Google Drive integration
n8n

Document Q&A system with OpenAI GPT, Pinecone Vector DB & Google Drive integration

n8nn8n24 modulesv1.0
OpenAIGoogle Drive

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. ๐Ÿค– AI-Powered Document QA System using Webhook, Pinecone + OpenAI + n8n This project demonstrates how to build a Retrieval-Augmented Generation (RAG) system using n8n, and create a simple Question Answer system using Webhook to connect with User Interface (created using Lovable): ๐Ÿงพ Downloads the pdf file format documents from Google Drive (contract document, user manual, HR policy document

At a glance

Document Q&A system with OpenAI GPT, Pinecone Vector DB & Google Drive integration is a ready-made n8n workflow you import as a workflow JSON file โ€” no build required. It connects OpenAI, Google Drive. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI, Google Drive
Modules
24
Price
Free
Version
v1.0
Document Q&A system with OpenAI GPT, Pinecone Vector DB & Google Drive integration workflow diagram

About this workflow

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. ๐Ÿค– AI-Powered Document QA System using Webhook, Pinecone + OpenAI + n8n This project demonstrates how to build a Retrieval-Augmented Generation (RAG) system using n8n, and create a simple Question Answer system using Webhook to connect with User Interface (created using Lovable): ๐Ÿงพ Downloads the pdf file format documents from Google Drive (contract document, user manual, HR policy document etc...) ๐Ÿ“š Converts them into vector embeddings using OpenAI ๐Ÿ” Stores and searches them in Pinecone Vector DB ๐Ÿ’ฌ Allows natural language querying of contracts using AI Agents ๐Ÿ“‚ Flow 1: Document Loading & RAG Setup This flow automates: Reading documents from a Google Drive folder Vectorizing using text-embedding-3-small Uploading vectors into Pinecone for later semantic search ๐Ÿงฑ Workflow Structure A [Manual Trigger] --> B[Google Drive Search] B --> C[Google Drive Download] C --> D[Pinecone Vector Store] D --> E[Default Data Loader] E --> F[Recursive Character Text Splitter] E --> G[OpenAI Embedding] ๐Ÿชœ Steps Manual Trigger: Kickstarts the workflow on demand for loading new documents. Google Drive Search & Download Node: Google Drive (Search: file/folder) Downloads PDF documents Apply Recursive Text Splitter: Breaks long documents into overlapping chunks Settings: Chunk Size: 1000 Chunk Overlap: 100 OpenAI Embedding Model: text-embedding-3-small Used for creating document vectors Pinecone Vector Store Host: url Index: index Batch Size: 200 Pinecone Settings: Type: Dense Region: us-east-1 Mode: Insert Documents ๐Ÿ’ฌ Flow 2: Chat-Based Q&A Agent This flow enables chat-style querying of stored documents using OpenAI-powered agents with vector memory. ๐Ÿงฑ Workflow Diagram A[Webhook (chat message)] --> B[AI Agent] B --> C[OpenAI Chat Model] B --> D[Simple Memory] B --> E[Answer with Vector Store] E --> F[Pinecone Vector Store] F --> G[Embeddings OpenAI] ๐Ÿชœ Components Chat (Trigger): Receives incoming chat queries AI Agent Node Handles query flow using: Chat Model: OpenAI GPT Memory: Simple Memory Tool: Question Answer with Vector Store Pinecone Vector Store: Connected via same embedding index as Flow 1 Embeddings: Ensures document chunks are retrievable using vector similarity Response Node: Returns final AI response to user via webhook ๐ŸŒ Flow 3: UI-Based Query with Lovable This flow uses a web UI built using Lovable to query contracts directly from a form interface. ๐Ÿ“ฅ Webhook Setup for Lovable Webhook Node Method: POST URL:url Response: Using 'Respond to Webhook' Node ๐Ÿงฑ Workflow Logic A[Webhook (Lovable Form)] --> B[AI Agent] B --> C[OpenAI Chat Model] B --> D[Simple Memory] B --> E[Answer with Vector Store] E --> F[Pinecone Vector Store] F --> G[Embeddings OpenAI] B --> H[Respond to Webhook] ๐Ÿ’ก Lovable UI Users can submit: Full Name Email Department Freeform Query: User can enter any freeform query. Data is sent via webhook to n8n and responded with the answer from contract content. ๐Ÿ” Use Cases Contract Querying for Legal/HR teams Procurement & Vendor Agreement QA Customer Support Automation (based on terms) RAG Systems for private document knowledge โš™๏ธ Tools & Tech Stack ๐Ÿ“Œ Final Notes Pinecone Index: package1536 Dimension: 1536 Chunk Size: 1000, Overlap: 100 Embedding Model: text-embedding-3-small Feel free to fork the workflow or request the full JSON export. Looking forward to your suggestions and improvements!

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

Send data to ChatGPT for content generation via a custom webhook and send via HTTP

Automatically send data to OpenAI GPT-3 for content generation via a custom webhook, then transmit the generated content using HTTP actions.

Free

Upload music files from Google Drive to SoundClound

Whenever a new audio file is added to a selected Google Drive folder, Make will automatically upload it SoundCloud.

Free

Market research & business case generator with GPT-4o, Perplexity & Claude

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. ๐Ÿง  Market Research & Business Case Study Generator Category: AI + Research | GPT + Perplexity | Business Strategy Skill Level: Intermediate Use Case: Market Research, Business Planning, Strategic Analysis ๐Ÿ“Œ Description: This template automates the creation of comprehensive, data-backed business case studiesโ€”perfect for entrepreneurs, analysts, consultants, and market researchers. For more of

Free

Monitor Google Drive folder for new files and upload them via SFTP

Monitor your Google Drive folder for new files and automatically upload them to an SFTP server. Keep your files organized and accessible.

Free

Search and update records in Airtable with generated ChatGPT images

This template searches and updates new Airtable records with generated images using ChatGPT. Streamline data management and creative processes with this integrated workflow.

Free

Make every product photo look like a luxury ad fully automated AI + google drive

Watch the video to better understand this workflow : ARRE-automation Good to know: This workflow automatically processes product images from Google Drive, generates AI-powered background prompts using multiple AI models (ChatGPT, Claude, or Groq), creates professional background scenes using Pixelcut.ai, and saves enhanced images back to your Google Drive. Perfect for e-commerce businesses and product photography workflows. Who is this for? โž–E-commerce store owners who need professional product

Free

Indeed data scraper & summarization with Airtable, Bright Data & Google Gemini

Who this is for? Indeed Data Scraper & Summarization with Airtable, Bright Data and Google Gemini is an automated workflow that extracts company profile information from Indeed using Bright Data Web Unlocker, transforms the data using Google Gemini's LLM, and forward the transformed response with the summary to a specified webhook for downstream use. This workflow is tailored for: - Recruiters and HR teams who want quick summaries of companies listed on Indeed. - Market researchers and analysts

Free

Enrich company leads with Firecrawl, OpenRouter AI, and Supabase

What this does Uses Firecrawl to scrape any company website and extract structured business signals from it. The enriched profile is automatically saved to Supabase. A self-hosted, free alternative to paid enrichment APIs like Apollo or Clay, powered by Firecrawl. How it works 1. Webhook receives a POST request with a url field (bare domain or full URL) 2. Verify URL node validates and normalizes the domain 3. Firecrawl scrapes the target website and searches for additional company data 4. AI Ag

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