Block 1 - Default Data Loader
- Type / Role
- @n8n/n8n-nodes-langchain.documentDefaultDataLoader - documentDefaultDataLoader
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
Automatically convert documents from Google Drive into vector embeddings using OpenAI, LangChain, and PGVector — fully automated through n8n. ️ What It Does This workflow monitors a Google Drive f...
@n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, @n8n/n8n-nodes-langchain.vectorstorepgvector, n8n-nodes-base.manualtrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.googledrive, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Alex Kim.
Original n8n.io sourceAutomatically convert documents from Google Drive into vector embeddings using OpenAI, LangChain, and PGVector — fully automated through n8n.
This workflow monitors a Google Drive folder for new files, supports multiple file types (PDF, TXT, JSON), and processes them into vector embeddings using OpenAI’s text-embedding-3-small model. These embeddings are stored in a Postgres database using the PGVector extension, making them query-ready for semantic search or RAG-based AI agents.
After successful processing, files are moved to a separate “vectorized” folder to avoid duplication.
Search Folder, Download File, and Move File nodes) Embeddings OpenAI node) Postgres PGVector Store node)Search Folder node — this is where incoming files are placed.Move File node — files will be moved here after vectorization.Postgres PGVector Store node.Embeddings OpenAI node and select text-embedding-3-small.Schedule Trigger node to run daily or configure your own schedule.When clicking ‘Test workflow’ for on-demand ingestion.Want to support more file types or enhance the pipeline?
Extract from File with other formats like DOCX, Markdown, or HTML.Switch node routes files to the correct extraction method based on MIME type (application/pdf, text/plain, application/json).Search Folder or Switch node logic to skip specific files or folders.This workflow is available under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license. You are free to use, adapt, and share this workflow for non-commercial purposes under the terms of this license.
Full license details: https://creativecommons.org/licenses/by-nc-sa/4.0/
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | 📥 Transform Google Drive documents into vector embeddings |
|---|---|
| Complexity | advanced |
| Nodes | 15 |
| Categories | Document Extraction, AI RAG |
| Author | Alex Kim |
| Published | 21 Apr 2025 |
Use the JSON export at /data/workflows/3647/3647.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Automatically convert documents from Google Drive into vector embeddings using OpenAI, LangChain, and PGVector — fully automated through n8n. ️ What It Does This workflow monitors a Google Drive f...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI RAG use case.