AI Agents

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

16 nodes 225 151 Automatic trigger
Download

Workflow Description

An automation template that extracts text from PDF and image files using Google's Gemini AI, then converts the results into a structured CSV file. Automatically triggers when files are uploaded to Google Drive and intelligently processes them before saving outputs.

How it works

  1. 1.Activate the workflow when a PDF or image file is uploaded to the designated Google Drive folder
  2. 2.Extract file content and verify its type using a conditional switch node
  3. 3.Process the text with Gemini AI model through an LLM Chain for structured data extraction
  4. 4.Convert processed results to CSV format and save the file back to Google Drive

Use cases

  • Automatically index and extract key data from large document and image collections without manual effort
  • Process invoices, receipts, and contracts to extract specific information fields autonomously
  • Convert visual content from images into organized, analyzable text for further processing
  • Integrate intelligent text processing with cloud storage to streamline file and data management workflows

Requirements

  • Valid API key for Google's Gemini service from Google Cloud Console
  • Google Drive account with sufficient permissions to upload, access, and modify files
  • Basic understanding of CSV data structures to ensure results are organized according to requirements

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 225
Downloads 151

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