Templates / 5 ways to process images & PDFs with Gemini AI in n8n

5 ways to process images & PDFs with Gemini AI in n8n

Needs changes

by Julian Kaiser ✓ · 26,444 views · created 2025-03-04 · Document Extraction, Multimodal AI

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini Chat Model. It also calls w3.org over HTTP.

How it runs

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

  1. Define URLs And Prompts (Edit Fields (Set)): sets 1 field: urls
  2. Define Multiple Image URLs (Edit Fields (Set)): sets 1 field: urls
  3. Get PDF file (HTTP Request): calls w3.org
  4. Get image from unsplash (HTTP Request): calls an HTTP API
  5. Get image from unsplash (HTTP Request): calls an HTTP API
  6. Split Out: splits a list into separate items
  7. Split Out: splits a list into separate items
  8. Transform to base64 (pdf) (Extract from File): extracts data from a file (binary to propery)
  9. Transform to base64 (image) (Extract from File): extracts data from a file (binary to propery)
  10. AI Agent: runs an AI agent, with model: Google Gemini Chat Model

…plus 9 more steps. See the full node list below.

Services it uses

Google Gemini Chat Model

HTTP calls to: w3.org

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent (v1.7), AI Agent2 (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.7), AI Agent2 (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (9)

From the author

How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workflow answers that question by demonstrating five different approaches: - Single image with auto binary…

Excerpt from Julian Kaiser'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.