RAG Workflow For Company Documents stored in Google Drive

Chat with company documents

Workflow Structure (15 nodes)
100%
Google Drive Trigger
Google Drive File Updated
Google Drive Trigger
Google Drive File Created
Google Drive
Download File From Google Drive
Langchain.embeddings Google Gemini
Embeddings Google Gemini
Langchain.vector Store Pinecone
Pinecone Vector Store
Langchain.text Splitter Recursive Character Text Splitter
Recursive Character Text Splitter
Langchain.document Default Data Loader
Default Data Loader
Langchain.chat Trigger
When chat message received
Langchain.lm Chat Google Gemini
Google Gemini Chat Model
Langchain.agent
AI Agent
Langchain.memory Buffer Window
Window Buffer Memory
Langchain.embeddings Google Gemini
Embeddings Google Gemini (retrieval)
Langchain.vector Store Pinecone
Pinecone Vector Store (Retrieval)
Langchain.tool Vector Store
Vector Store Tool
Langchain.lm Chat Google Gemini
Google Gemini Chat Model (retrieval)
Node Types:
default
action
logic
trigger
Requires credentials

Prerequisites

Required Credentials (3)

Google Drive

Used by: Download File From Google Drive, Google Drive File Updated +1 more

Docs

Google Palm

Used by: Embeddings Google Gemini, Embeddings Google Gemini (retrieval) +2 more

Docs

Pinecone

Used by: Pinecone Vector Store, Pinecone Vector Store (Retrieval)

Docs

Multiple services required

This workflow needs 3 different credentials. Make sure you have accounts for all services before importing.

Complexity

Complex

Advanced features used. Requires n8n experience.

Setup time: ~40 min
Score: 41/100

When to Use This Workflow

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Time Savings

Replace repetitive manual tasks with reliable automation.

Reclaim hours every week for higher-value work.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "id": "7cXvgkl9170QXzT2",
  "meta": {
    "instanceId": "69133932b9ba8e1ef14816d0b63297bb44feb97c19f759b5d153ff6b0c59e18d",
    "templateCredsSetupCompleted": true
  },
  "name": "RAG Workflow For Company Documents stored in Google Drive",
  "tags": [],
  "nodes": [
    {
      "id": "753455a3-ddc8-4a74-b043-70a0af38ff9e",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        680,
        0
      ],
      "parameters": {
        "mode": "insert",
        "options": {},
...

Workflow Details

Nodes
18
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

RAG Workflow For Stock Earnings Report Analysis

Set up steps 1. Google Cloud Project & Vertex AI API: Create a Google Cloud project. Enable the Vertex AI API for your...

Vectorstorepinecone
Embeddingsgooglegemini
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
18 nodesManual
Curated

Chat with GitHub OpenAPI Specification using RAG (Pinecone and OpenAI)

Indexing content in the vector database This part of the workflow is responsible for extracting content, generating embe...

Http-request
Vectorstorepinecone
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
17 nodesEvent
Curated

RAG:Context-Aware Chunking | Google Drive to Pinecone via OpenRouter & Gemini

Prepare Document. This section is responsible for downloading the file from Google Drive, splitting the text into sectio...

Lmchatopenrouter
Vectorstorepinecone
Embeddingsgooglegemini
Documentdefaultdataloader
17 nodesManual
Curated

BambooHR AI-Powered Company Policies and Benefits Chatbot

STEP 1: Retrieve company policies and load them into a vector store

Documentdefaultdataloader
Embeddingsopenai
Textsplitterrecursivecharactertextsplitter
Memorybufferwindow
50 nodesEvent
Curated

Advanced AI Demo (Presented at AI Developers #14 meetup)

![h](https://i.postimg.cc/9XLvL5dL/slide-sf-talk.pngfull-width)

Slack
Textsplitterrecursivecharactertextsplitter
Embeddingsopenai
Documentdefaultdataloader
39 nodesEvent
Curated

OpenAI Personal Shopper with RAG and WooCommerce

Replace the URL and Collection name with your own

Chat
Memorybufferwindow
Toolcalculator
Lmchatopenai
25 nodesEvent
Curated