AI Agents

Extract text from PDFs and images with Gemini and save to CSV

16 nodes 242 139 Automatic trigger
Download

Workflow Description

Automation that monitors a Google Drive folder, extracts text from PDF and image files using Gemini's AI capabilities, and organizes the extracted data into a structured CSV file for easy access and analysis.

How it works

  1. 1.Monitor a designated Google Drive folder for new files
  2. 2.Receive and classify uploaded files by type (PDF or image)
  3. 3.Process files through Gemini to extract text content
  4. 4.Organize extracted data into a structured format
  5. 5.Save results to a CSV file in Google Drive

Use cases

  • Automate invoice and receipt processing to extract financial data
  • Convert scanned documents and handwritten forms into searchable digital records
  • Batch process product images to extract specifications and details

Requirements

  • Connected Google account with n8n and Google Drive access permissions
  • Gemini API key from Google Cloud Console
  • Clear folder structure for files intended for processing

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 242
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