Skip to main content

Extract embedded images from Google Drive documents with VLM run agent

Workflow preview

Workflow preview
100%
Extract embedded images from Google Drive documents with VLM run agent preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Image Extraction Pipeline (Google Drive + VLM Run + n8n) ️ What This Workflow Does This workflow automates the process of extracting images from uploaded documents in Google Drive using the VLM...

Best for

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

Tools used

n8n-nodes-base.googledrive, @vlm-run/n8n-nodes-vlmrun.vlmrun, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.googledrivetrigger

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract embedded images from Google Drive documents with VLM run agent
Workflow name
Extract embedded images from Google Drive documents with VLM run agent

🧾 Image Extraction Pipeline (Google Drive + VLM Run + n8n)

⚙️ What This Workflow Does

This workflow automates the process of extracting images from uploaded documents in Google Drive using the VLM Run Execute Agent, then downloads and saves those extracted images into a designated Drive folder.

🧩 Requirements

  • Google Drive OAuth2 credentials
  • VLM Run API credentials with Execute Agent access
  • A reachable n8n Webhook URL (e.g., /image-extract-via-agent)

⚡Quick Setup

  1. Configure Google Drive OAuth2 and create upload folder and folder for saving extracted images.
  2. Install the verified VLM Run node by searching for VLM Run in the node list, then click Install. Once installed, you can start using it in your workflows.
  3. Add VLM Run API credentials for document parsing.

⚙️ How It Works

  1. Monitor Uploads – The workflow watches a specific Google Drive folder for new file uploads (e.g., receipts, reports, or PDFs).
  2. Download File – When a file is created, it’s automatically downloaded in binary form.
  3. Extract Images (VLM Run) – The file is sent to the VLM Run Execute Agent, which analyzes the document and extracts image URLs via its callback.
  4. Receive Image Links (Webhook) – The workflow’s Webhook node listens for the agent’s response containing extracted image URLs.
  5. Split & Download – The Split Out node processes each extracted link, and the HTTP Request node downloads each image.
  6. Save Image – Finally, each image is uploaded to your chosen Google Drive folder for storage or further processing.

💡Why Use This Workflow

Manual image extraction from PDFs and scanned files is repetitive and error-prone. This pipeline automates it using VLM Run, a vision-language AI service that:

  • Understands document layout and structure
  • Handles multi-page and mixed-content files
  • Extracts accurate image data with minimal setup. For example- the output contains URLs to extracted images
{
  "image_urls": [
    "https://vlm.run/api/files/img1.jpg",
    "https://vlm.run/api/files/img2.jpg"
  ]
}
  • Works with both images and PDFs

🧠 Perfect For

  • Extracting photos or receipts from multi-page PDFs
  • Archiving embedded images from reports or invoices
  • Preparing image datasets for labeling or ML model training

🛠️ How to Customize

  • You can extend this workflow by:
  • Adding naming conventions or folder structures based on upload type
  • Integrating Slack/Email notifications when extraction completes
  • Including metadata logging (file name, timestamp, source) into Google Sheets or a database
  • Chaining with classification or OCR workflows using VLM Run’s other agents

⚠️ Community Node Disclaimer

This workflow uses community nodes (VLM Run) that may need additional permissions and custom setup.

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 - Download File

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

Block 2 - Extract Images

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

Block 3 - Download Image

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

Block 4 - Save Image

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

Block 5 - Split Out

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

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Receive Image Links

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

Block 10 - Sticky Note4

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

Block 11 - Monitor Uploads

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

3. Summary Table

Workflow Extract embedded images from Google Drive documents with VLM run agent
Complexity intermediate
Nodes 11
Categories Document Extraction, AI RAG
Author Shahrear
Published 06 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9326/9326.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 Extract embedded images from Google Drive documents with VLM run agent do?

Image Extraction Pipeline (Google Drive + VLM Run + n8n) ️ What This Workflow Does This workflow automates the process of extracting images from uploaded documents in Google Drive using the VLM...

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.