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.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| Pinecone Vector Store | Data store | Vector Store Pinecone | See node parameters |
| Embeddings Google Gemini | AI & models | Embeddings Google Gemini | See node parameters |
| Default Data Loader | Files / media | Document Default Data Loader | See node parameters |
| Recursive Character Text Splitter | Transform | Text Splitter Recursive Character Text Splitter | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| Vector Store Tool | AI & models | Tool Vector Store | See node parameters |
| Pinecone Vector Store (Retrieval) | Data store | Vector Store Pinecone | See node parameters |
| Embeddings Google Gemini (retrieval) | AI & models | Embeddings Google Gemini | See node parameters |
| Download File From Google Drive | Files / media | Google Drive | download |
| Google Drive File Updated | Trigger | Google Drive Trigger | See node parameters |
| Google Drive File Created | Trigger | Google Drive Trigger | See node parameters |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
| When chat message received | Trigger | Chat Trigger | See node parameters |
| Google Gemini Chat Model | AI & models | LM Chat Google Gemini | See node parameters |
| Google Gemini Chat Model (retrieval) | AI & models | LM Chat Google Gemini | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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
googleDriveOAuth2ApigooglePalmApipineconeApi
Workflow notes
Set up steps
Set up steps
- Google Cloud Project and Vertex AI API:
- Create a Google Cloud project.
- Enable the Vertex AI API for your project.
- Google AI API Key:
- Obtain a Google AI API key from Google AI Studio.
- 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.
- Google Drive:
- Create a dedicated folder in your Google Drive where company documents will be stored.
- 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)
- Import the Workflow:
- Import this workflow into your n8n instance.
- 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