Templates / Process large documents with OCR using SubworkflowAI and Gemini

Process large documents with OCR using SubworkflowAI and Gemini

Ready for 3.0

by Jimleuk ✓ · 18,000 views · created 2025-11-06 · Document Extraction, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive and Google Gemini. It also calls api.subworkflow.ai over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Download file (Google Drive): download
  2. Extract API (HTTP Request): calls api.subworkflow.ai (POST)
  3. Job Complete? (If): checks a condition and branches into true / false
  4. Get Dataset (HTTP Request): calls an HTTP API
  5. Check Job Status (HTTP Request): calls an HTTP API
  6. Get Dataset Items (HTTP Request): calls an HTTP API
  7. Wait: waits 1 seconds
  8. Split Out: splits a list into separate items
  9. Document OCR via VLM (Google Gemini): analyze (image)

Services it uses

Google DriveGoogle Gemini

HTTP calls to: api.subworkflow.ai

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Working with Large Documents In Your VLM OCR Workflow Document workflows are popular ways to use AI but what happens when your document is too large for your app or your AI to handle? Whether its context window or application memory that's grinding to a halt,…

Excerpt from Jimleuk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.