Templates / Extract text from PDF and image using Vertex AI (Gemini) into CSV

Extract text from PDF and image using Vertex AI (Gemini) into CSV

Ready for 3.0

by Keith Rumjahn ✓ · 33,333 views · created 2024-12-08 · Document Extraction, AI Summarization

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 12 nodes and runs on Google Drive events (file created). Along the way it connects Google Gemini Chat Model and Google Drive. It also calls openrouter.ai over HTTP.

How it runs

Trigger: On Google Drive events (file created).

  1. Route based on PDF or Image (Switch): routes items into 2 branches
  2. Download PDF (Google Drive): download
  3. Download Image (Google Drive): download
  4. Extract data from PDF (Extract from File): extracts data from a file (pdf)
  5. Vertex A.I. extract text (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  6. Send data to A.I. (HTTP Request): calls openrouter.ai (POST)
  7. Convert to CSV (Convert to File): converts data to a file
  8. Convert to CSV (Convert to File): converts data to a file
  9. Upload to Google Drive (Google Drive): uses Google Drive
  10. Upload to Google Drive (Google Drive): uses Google Drive

Services it uses

Google Gemini Chat ModelGoogle Drive

HTTP calls to: openrouter.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 (8)

From the author

Case Study I'm too lazy to record every transaction for my expense tracking. Since all my expenses are digital, I just extract the transactions from bank PDF statements and screenshots into CSV to import into my budgeting software. Click here to watch Youtube…

Excerpt from Keith Rumjahn'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.