AI Agents

Extract text from PDF and image using AI (Gemini) to CSV file

16 nodes 239 139 Automatic trigger
Download

Workflow Description

Automation workflow that extracts text from PDF and image files using Gemini AI, processes the content intelligently, and exports the structured data directly to a CSV file stored on Google Drive.

How it works

  1. 1.Trigger workflow automatically when a new file is uploaded to a Google Drive folder
  2. 2.Determine file type (image or PDF) using a conditional switch node
  3. 3.Extract text content using Gemini with intelligent processing
  4. 4.Transform and organize extracted data into CSV format
  5. 5.Save the final file automatically to your Google Drive

Use cases

  • Digitize and index paper documents and images at scale
  • Automate data extraction from invoices, contracts, and receipts
  • Convert legacy records and archives into searchable databases

Requirements

  • Active Google account with Google Drive management permissions
  • Valid Gemini API key configured and enabled
  • Access rights to process PDF and image files

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Gemini Google Drive LLM Chain

Details

Trigger Automatic trigger
Nodes 16
Apps 3
Views 239
Downloads 139

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (16)

/

Google Gemini Chat Model

Gemini Model

#1

Get PDF or Images

Google Drive Trigger

#2

Route based on PDF or Image

Switch

#3

Download PDF

Google Drive

#4

Download Image

Google Drive

#5

Extract data from PDF

Extract From File

#6

Send data to A.I.

HTTP Request

#7

Convert to CSV

Convert To File

#8

Upload to Google Drive

Google Drive

#9

Convert to CSV2

Convert To File

#10

Upload to Google Drive1

Google Drive

#11

Sticky Note

Sticky Note

#12

Sticky Note1

Sticky Note

#13

Sticky Note2

Sticky Note

#14

Sticky Note3

Sticky Note

#15

Vertex A.I. extract text

LLM Chain

#16