AutomationMart
Home/Browse/Process documents with recursive chunking using Google Drive, OpenAI & Gemini RAG
n8n

Process documents with recursive chunking using Google Drive, OpenAI & Gemini RAG

n8nn8n23 modulesv1.0
agentchainLlmcodedocumentDefaultDataLoaderembeddingsOpenAiextractFromFilegoogleDrivegoogleDriveTriggerhttpRequestToollmChatGoogleGeminilmChatOpenAimanualTriggeropenAisetsplitInBatchessplitOutsummarizeswitchtextSplitterCharacterTextSplittervectorStoreSupabase

1. Document Ingestion & Processing Google Drive Trigger monitors for new files → Loop Over Items processes each file → File Info extracts metadata → Google Drive downloads the actual content → Switch routes to appropriate extractors (PDF or TEXT) based on file type 2. Content Transformation & Chunking Document Data node processes extracted text → Recursive Splitter breaks content into contextual chunks → Chunk Splitting applies intelligent segmentation while preserving document contex

At a glance

Process documents with recursive chunking using Google Drive, OpenAI & Gemini RAG is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects agent, chainLlm, code, documentDefaultDataLoader. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
agent, chainLlm, code, documentDefaultDataLoader, embeddingsOpenAi, extractFromFile
Modules
23
Price
Free
Version
v1.0
Process documents with recursive chunking using Google Drive, OpenAI & Gemini RAG workflow diagram

About this workflow

1. Document Ingestion & Processing Google Drive Trigger monitors for new files → Loop Over Items processes each file → File Info extracts metadata → Google Drive downloads the actual content → Switch routes to appropriate extractors (PDF or TEXT) based on file type 2. Content Transformation & Chunking Document Data node processes extracted text → Recursive Splitter breaks content into contextual chunks → Chunk Splitting applies intelligent segmentation while preserving document context and relationships between chunks 3. Embedding & Storage Basic LLM Chain processes chunks → OpenAI Chat Model generates contextual understanding → Summarize creates document summaries → Supabase Vector Store saves embeddings with metadata → Embeddings OpenAI creates vector representations → Default Data Loader handles storage operations 4. Query Processing & Retrieval When Clicking Execute triggers user queries → OpenAI processes and understands the question → AI Agent orchestrates hybrid search (combining vector similarity + keyword matching) → Google Gemini Chat Model generates final responses using retrieved context → HTTP Request handles additional external data sources

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Automated music video creation & YouTube publishing with AI-generated metadata from Google Drive

The Problem That it Solves Uploading music manually to YouTube is a chore. Renaming files, filling metadata, picking the right playlist, adding keywords, and scheduling the release can eat up your creative time. This workflow removes the busy work so you can focus on making tracks instead of managing uploads. How it works Drop an MP3 into your shared Google Drive “Audio” folder and walk away. The workflow detects the new file, grabs the genre from the filename based on a set of keywords, uses th

Free

Automated tweet generator & publisher with GPT-4, Discord, and Google Sheets

AI Twitter Content Machine – Write, Refine & Publish Tweets on Autopilot This workflow is perfect for creators, solopreneurs, and personal brands who want to consistently publish bold, high-performing content on X (Twitter) — without writing a single line themselves. After a one-time setup, it automatically generates tweet ideas, writes in your voice, evaluates post quality, avoids duplicates, and publishes directly to Twitter. All approvals and rewrites are handled in a conversational loop powe

Free

Extract structured candidate data from resumes with GPT AI

Who is this for? This workflow is perfect for HR teams, recruiters, and hiring platforms that need to automate the extraction of key candidate details—like name, email, skills, and education—from resume files submitted in various formats. What problem does this solve? Manually reviewing and extracting structured data from resumes is time-consuming and error-prone. This automation eliminates that bottleneck, standardizing candidate data for seamless integration into CRMs, applicant tracking syste

Free

Gmail AI Email Manager

Want to check out all my flows, follow me on: Email Manager - Intelligent Gmail Classification This automation flow is designed to automatically monitor incoming Gmail messages, analyze their content and context using AI, and intelligently classify them with appropriate labels for better email organization and prioritization. ⚙️ How It Works (Step-by-Step): 1. 📧 Gmail Monitoring (Trigger) Continuously monit

Free

Automated AWS IAM key compromise response with Slack & Claude AI

Automated AWS Key Compromise Remediation Description This n8n workflow provides a secure, enterprise-grade response system for AWS IAM access key compromises with built-in form submission and human approval mechanisms. When an AWS access key is suspected to be compromised, this workflow enables rapid containment through a secure web form interface with basic authentication, human approval via Slack, and automated damage prevention through immediate key deactivation, credential invalidation, and

Free

Complete backup solution for n8n workflows & credentials (local/FTP)

Automated n8n Workflows & Credentials Backup to Local/Server Disk & FTP Complete backup solution that saves both workflows and credentials to local/server disk with optional FTP upload for off-site redundancy. What makes this workflow different: Backs up workflows AND credentials together Saves to local/server disk (not Git, GitHub, or any cloud services) Optional FTP upload for redundancy (disabled by default) Comprehensive error handling and email notifications Timezone-aware scheduling

Free

Create daily AI news YouTube Shorts with Groq, VoiceRSS, Pexels and Shotstack

Quick Overview This workflow runs daily to turn the latest Artificial Intelligence News RSS headline into a YouTube Shorts video by generating a script with Groq, creating voiceover with VoiceRSS, selecting stock footage from Pexels, rendering with Shotstack, and uploading the finished MP4 to YouTube. How it works 1. Runs every 24 hours on a scheduled trigger. 2. Reads the latest item from the Artificial Intelligence News RSS feed and extracts the headline and summary. 3. Uses Groq (Llama 3.1) t

Free

Receipt scanning & analysis workflow

How it works: - Automatically detects when a new receipt is uploaded to Google Drive. - Extracts text from the receipt using OCR. - Uses an AI Agent to analyze the extracted data and structure it (e.g., vendor, date, total, tax). - Saves the organized receipt data into a Google Sheet for easy tracking. Set up steps: - Setup takes around 15–20 minutes. - You'll need a Google Drive folder for receipts and a Google Sheet to store results. - Configure your Google Drive Trigger, OCR extraction, AI Ag

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free