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

How to extract PDF and image text into CSV using n8n (without manual data entry) This workflow will extract text data from PDF and images, then store it as CSV. [💡 You can read more about this workflow here](https://rumjahn.com/how-to-create-an-a-i-agent-to-analyze-matomo-analytics-using-n8n-for-free/)

Workflow Structure (12 nodes)
100%
Google Drive Trigger
Get PDF or Images
Switch
Route based on PDF or Image
Google Drive
Download PDF
Extract From File
Extract data from PDF
Http Request
Send data to A.I.
Convert To File
Convert to CSV
Google Drive
Upload to Google Drive
Google Drive
Download Image
Langchain.lm Chat Google Gemini
Google Gemini Chat Model
Langchain.chain Llm
Vertex A.I. extract text
Convert To File
Convert to CSV2
Google Drive
Upload to Google Drive1
Node Types:
action
trigger
logic
default
http
transform
Requires credentials

Prerequisites

Required Credentials (3)

Google

Used by: Get PDF or Images, Download PDF +3 more

Docs

Google Palm

Used by: Google Gemini Chat Model

Docs

HTTP Header Auth

Used by: Send data to A.I.

Docs

Multiple services required

This workflow needs 3 different credentials. Make sure you have accounts for all services before importing.

Complexity

Complex

Advanced features used. Requires n8n experience.

Setup time: ~40 min
Score: 57/100
Conditional Logic
5 Integrations

When to Use This Workflow

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Time Savings

Replace repetitive manual tasks with reliable automation.

Reclaim hours every week for higher-value work.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "id": "sUIPemKdKqmUQFt6",
  "meta": {
    "instanceId": "558d88703fb65b2d0e44613bc35916258b0f0bf983c5d4730c00c424b77ca36a",
    "templateCredsSetupCompleted": true
  },
  "name": "Extract text from PDF and image using Vertex AI (Gemini) into CSV",
  "tags": [],
  "nodes": [
    {
      "id": "f60ef5f9-bc08-4cc9-804e-697ae6f88b9b",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        980,
        920
      ],
      "parameters": {
        "options": {},
        "modelName": "models/gemini-1.5-pro-latest"
...

Workflow Details

Nodes
16
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

CV Resume PDF Parsing with Multimodal Vision AI

Try me out! This workflow converts a Candidate Resume PDF to an image which is then "read" by a Vision Language Model (...

Outputparserstructured
Google-drive
Http-request
Editimage
13 nodesManual
Curated

Transcribing Bank Statements To Markdown Using Gemini Vision AI

Try Me Out! This workflow converts a bank statement to markdown, faithfully capturing the details using the power of Vi...

Lmchatgooglegemini
Google-drive
Http-request
Compression
20 nodesManual
Curated

🤖🧑‍💻 AI Agent for Top n8n Creators Leaderboard Reporting

AI Agent for n8n Creator Leaderboard Stats https://github.com/teds-tech-talks/n8n-community-leaderboard

Http-request
Lmchatopenai
Executeworkflow
Toolworkflow
49 nodesEvent
Curated

Visual Regression Testing with Apify and AI Vision Model

Part A. Generate Base Images Before we can run our visual regression tests, we must generate a series of base screenshot...

Google-drive
Lmchatgooglegemini
Outputparserstructured
Http-request
34 nodesScheduled
Curated

Chat with PDF docs using AI (quoting sources)

1. Setup: Fetch file from Google Drive, split it into chunks and insert into a vector database Note that running this pa...

Embeddingsopenai
Documentdefaultdataloader
Google-drive
Chat
22 nodesEvent
Curated

Extract data from resume and create PDF with Gotenberg

Add chat ID Remember to set your actual ID to trigger automation from Telegram.

Lmchatopenai
Outputparserautofixing
Outputparserstructured
Telegram
43 nodesEvent
Curated