Skip to content
FlowHubFluxonLab
D
AI Automationfree

📥 Transform Google Drive Documents into Vector Embeddings

by Alex Kimadapted from n8n official workflow galleryUpdated Aug 2026
RequiresDDefault Data LoaderEmbeddings OpenAIEmbeddings OpenAIGoogle DriveGoogle DrivePostgres PGVector StorePostgres PGVector StoreRecursive Character Text SplitterRecursive Character Text Splitter
Share Post Share
DDDefault Data LoaderDefault Data Lo…TSRecursive Character Text SplitterRecursive Chara…VSPostgres PGVector StorePostgres PGVect…MaWhen clicking ‘Test workflow’When clicking ‘…SILoop Over ItemsMove FileDownload FileSearch FolderScSchedule TriggerSwSwitchEFExtract from PDFEFExtract from TextExtract from Te…EFExtract from JSONExtract from JS…Embeddings OpenAIEmbeddings Open…12345678910111213141516
1/5
STEPS · 16
Run manually by an operator

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 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. 💡 Use Cases Powering Retrieval-Augmented Generation (RAG) AI agents Semantic search across private documents AI assistant knowledge ingestion Automated document pipelines for indexing or classification 🧠 Workflow Highlights Trigger Options:** Manual or Scheduled (3 AM daily by default) Supported File Types:** PDF, TXT, JSON Embedding Stack:** LangChain Text Splitter, OpenAI Embeddings, PGVector Deduplication:** Files are moved after processing License:** CC BY-SA 4.0 Author:** AlexK1919 🛠 What You’ll Need Google Drive OAuth2** credentials (connected to Search Folder, Download File, and Mo

Tags

n8nreference-onlydocument-default-data-loaderembeddings-open-aigoogle-drivetext-splitter-recursive-character-text-splittervector-store-pgvector
Connects
DDefault Data LoaderembeddingsopenaiEmbeddings OpenAIgoogledriveGoogle DrivepostgrespgvectorstorePostgres PGVector StorerecursivecharactertextsplitterRecursive Character Text Splitter
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes14
AddedApr 21, 2025

Related workflows

See all AI Automation
binaryinputloaderembeddingsopenaigoogledriveopenaichatmodel
free

Ask questions about a PDF using AI

The workflow first populates a Pinecone index with vectors from a Bitcoin whitepaper. Then, it waits for a manual chat message. When received, the chat message is turned into a vector and compared to the vectors in Pinecone. The most similar vectors are retrieved and passed to OpenAI for generating a chat response. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by David Roberts
DhtmlWopenaichatmodel
free

Scrape and summarize webpages with AI

This workflow integrates both web scraping and NLP functionalities. It uses HTML parsing to extract links, HTTP requests to fetch essay content, and AI-based summarization using GPT-4o. It's an excellent example of an end-to-end automated task that is not only efficient but also provides real value by summarizing valuable content. Note that to use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team