← All N8N workflows
AI & researchAgentChat TriggerDocument Default Data LoaderEmbeddings Google GeminiGoogle Drive

RAG Workflow For Company Documents stored in Google Drive

Configured with Agent, Chat Trigger, Document Default Data Loader, Embeddings Google Gemini, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
Data storePinecone Vector StoreVector Store PineconeAI & modelsEmbeddings GoogleGeminiEmbeddings Google GeminiFiles / mediaDefault Data LoaderDocument Default Data Lo…TransformRecursive CharacterText SplitterText Splitter Recursive …AI & modelsAI AgentAgentAI & modelsVector Store ToolTool Vector StoreData storePinecone Vector Store(Retrieval)Vector Store PineconeAI & modelsEmbeddings GoogleGemini (retrieval)Embeddings Google GeminiFiles / mediaDownload File FromGoogle DriveGoogle DriveTriggerGoogle Drive FileUpdatedGoogle Drive TriggerTriggerGoogle Drive FileCreatedGoogle Drive TriggerData storeWindow Buffer MemoryMemory Buffer WindowTriggerWhen chat messagereceivedChat TriggerAI & modelsGoogle Gemini ChatModelLM Chat Google GeminiAI & modelsGoogle Gemini ChatModel (retrieval)LM Chat Google Gemini

Node categories in this workflow

  • Data store
  • AI & models
  • Files / media
  • Transform
  • Trigger

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Pinecone Vector StoreData storeVector Store PineconeSee node parameters
Embeddings Google GeminiAI & modelsEmbeddings Google GeminiSee node parameters
Default Data LoaderFiles / mediaDocument Default Data LoaderSee node parameters
Recursive Character Text SplitterTransformText Splitter Recursive Character Text SplitterSee node parameters
AI AgentAI & modelsAgentSee node parameters
Vector Store ToolAI & modelsTool Vector StoreSee node parameters
Pinecone Vector Store (Retrieval)Data storeVector Store PineconeSee node parameters
Embeddings Google Gemini (retrieval)AI & modelsEmbeddings Google GeminiSee node parameters
Download File From Google DriveFiles / mediaGoogle Drivedownload
Google Drive File UpdatedTriggerGoogle Drive TriggerSee node parameters
Google Drive File CreatedTriggerGoogle Drive TriggerSee node parameters
Window Buffer MemoryData storeMemory Buffer WindowSee node parameters
When chat message receivedTriggerChat TriggerSee node parameters
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters
Google Gemini Chat Model (retrieval)AI & modelsLM Chat Google GeminiSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleDriveOAuth2Api
  • googlePalmApi
  • pineconeApi

Workflow notes

Set up steps

Set up steps

  1. Google Cloud Project and Vertex AI API:
  • Create a Google Cloud project.
  • Enable the Vertex AI API for your project.
  1. Google AI API Key:
  • Obtain a Google AI API key from Google AI Studio.
  1. Pinecone Account:
  • Create a free account on the Pinecone website. Obtain your API key from your Pinecone dashboard.
  • Create an index named company-files in your Pinecone project.
  1. Google Drive:
  • Create a dedicated folder in your Google Drive where company documents will be stored.
  1. Credentials in n8n: Configure credentials in your n8n environment for:
  • Google Drive OAuth2
  • Google Gemini(PaLM) Api (using your Google AI API key)
  • Pinecone API (using your Pinecone API key)
  1. Import the Workflow:
  • Import this workflow into your n8n instance.
  1. Configure the Workflow:
  • Update both Google Drive Trigger nodes to watch the specific folder you created in your Google Drive.
  • Configure the Pinecone Vector Store nodes to use your company-files index.
RAG Workflow For Company Documents stored in Google Drive

RAG Workflow For Company Documents stored in Google Drive

Purpose and structure

This folder contains the RAG Workflow For Company Documents stored in Google Drive workflow. Its executable nodes use agent, chatTrigger, documentDefaultDataLoader, embeddingsGoogleGemini, googleDrive, googleDriveTrigger, lmChatGoogleGemini, memoryBufferWindow, textSplitterRecursiveCharacterTextSplitter, toolVectorStore, vectorStorePinecone. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Google Drive File Updated, Google Drive File Created, When chat message received

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Stickynote/1626_Stickynote_GoogleDrive_Automate_Triggered.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Chat with company documents
  • Add docuemnts to vector store when updating or creating new documents in Google Drive

More in AI & research