Skip to main content

AI-powered document processing & organization with Gemini, VLM Run & Google Sheets

Workflow preview

Workflow preview
100%
AI-powered document processing & organization with Gemini, VLM Run & Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automate multi document handling with AI powered extraction that adapts to any format and organizes it instantly. What this workflow does 1. Monitors Google Drive for new uploads (receipts, resumes...

Best for

  • Document Extraction automation workflows
  • AI RAG automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googledrivetrigger, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequesttool, n8n-nodes-base.googlesheetstool, @vlm-run/n8n-nodes-vlmrun.vlmrun, n8n-nodes-base.webhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Atik.

Original n8n.io source

1.1 Workflow description

Title
AI-powered document processing & organization with Gemini, VLM Run & Google Sheets
Workflow name
AI-powered document processing & organization with Gemini, VLM Run & Google Sheets

Automate multi-document handling with AI-powered extraction that adapts to any format and organizes it instantly.

What this workflow does

  1. Monitors Google Drive for new uploads (receipts, resumes, claims, physician orders, blueprints, or any doc type)
  2. Automatically downloads and prepares files for analysis
  3. Identifies the document type using Google Gemini
  4. Parses structured data via the trusted VLM Run node with OCR + layout parsing
  5. Stores records in Google Sheets — AI Agent maps values to the correct sheet dynamically

Setup

Prerequisites: Google Drive & Google Sheets accounts, VLM Run API credentials, n8n instance.

Install the verified VLM Run node by searching for VLM Run in the node list, then click Install. Once installed, you can integrate it directly for high-accuracy data extraction.

Quick Setup:

  1. Configure Google Drive OAuth2 and select a folder for uploads

  2. Add VLM Run API credentials

  3. Create a Master Reference Google Sheet with the following structure:

    Document_Name Spreadsheet_ID
    Receipt your-receipt-sheet-id
    Resume your-resume-sheet-id
    Physician Order your-physician-order-sheet-id
    Claims Processing your-claims-sheet-id
    Construction Blueprint your-blueprint-sheet-id

    The first column holds the document type, and the second column holds the target sheet ID where extracted data should be appended.

  4. In the AI Agent node, edit the agent prompt to:

    • Analyze the JSON payload from VLM Run
    • Look up the document type in the Master Reference Sheet
    • If a matching sheet exists → fetch headers, then append data accordingly
    • If headers don’t exist → create them from JSON keys, then insert values
    • If no sheet exists → add the new type to the Master Reference with an empty Spreadsheet ID
  5. Test with a sample upload and activate the workflow

How to customize this workflow to your needs

Extend functionality by:

  • Adjusting the AI Agent prompt to support any new document schema (just update field mappings)
  • Adding support for multi-language OCR or complex layouts in VLM Run
  • Linking Sheets data to BI dashboards or reporting tools
  • Triggering notifications when new entries are stored

This workflow leverages the VLM Run node for flexible, precision extraction and the AI Agent for intelligent mapping, creating a powerful system that adapts to any document type with minimal setup changes.

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - 🧾 Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - 📁 Input Processing Documentation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - 🤖 AI Extraction Documentation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - 📊 Storage Documentation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Monitor Uploads

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 6 - Download File

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 7 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 8 - Append row

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 9 - Get row(s) from sheets

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 10 - VLM Run for Extraction

Type / Role
@vlm-run/n8n-nodes-vlmrun.vlmRun - vlmRun
Config choices
Version 1

Block 11 - Receives Extracted Data

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 12 - Check Document Type

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 13 - AI Agent for Storing Dynamically

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 14 - Download File2

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

3. Summary Table

Workflow AI-powered document processing & organization with Gemini, VLM Run & Google Sheets
Complexity intermediate
Nodes 14
Categories Document Extraction, AI RAG
Author Atik
Published 20 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8788/8788.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does AI-powered document processing & organization with Gemini, VLM Run & Google Sheets do?

Automate multi document handling with AI powered extraction that adapts to any format and organizes it instantly. What this workflow does 1. Monitors Google Drive for new uploads (receipts, resumes...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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.