AI Agents

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

16 nodes 227 130 Automatic trigger
Download

Workflow Description

Advanced automation template that extracts text content from PDF files and images using Google's Gemini AI technology, intelligently processes the data, and automatically saves the results as organized CSV files in Google Drive, eliminating manual data entry.

How it works

  1. 1.Trigger automation when a PDF or image file is uploaded to Google Drive
  2. 2.Extract raw content from the file using built-in document processing capabilities
  3. 3.Process the extracted text through Gemini AI for intelligent analysis and understanding
  4. 4.Classify and structure the data according to document context and requirements
  5. 5.Format the organized results into a properly formatted CSV table
  6. 6.Automatically save the generated CSV file to a designated Google Drive folder

Use cases

  • Extract invoice and contract data automatically and convert to structured spreadsheets
  • Process scanned receipts and digitized documents to capture essential business information
  • Automate indexing of document archives by extracting and organizing all content into searchable databases
  • Analyze customer survey responses and application forms to populate organized data records

Requirements

  • Active Google account with full Google Drive access permissions
  • Valid Google Cloud API key configured for Gemini AI services
  • PDF and image files in standard formats (PNG, JPG, PDF) with readable content
  • Source documents must contain extractable text rather than purely graphical or handwritten content

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 227
Downloads 130

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