← All N8N workflows
AI & researchChain LLMConvert To FileExtract From FileGoogle DriveGoogle Drive Trigger

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

Configured with Chain LLM, Convert To File, Extract From File, Google Drive, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
AI & modelsGoogle Gemini ChatModelLM Chat Google GeminiTriggerGet PDF or ImagesGoogle Drive TriggerRoutingRoute based on PDF orImageSwitchFiles / mediaDownload PDFGoogle DriveFiles / mediaDownload ImageGoogle DriveTransformExtract data from PDFExtract From FileWeb / APISend data to A.I.HTTP RequestTransformConvert to CSVConvert To FileFiles / mediaUpload to Google DriveGoogle DriveTransformConvert to CSV2Convert To FileFiles / mediaUpload to Google Drive1Google DriveAI & modelsVertex A.I. extracttextChain LLM

Node categories in this workflow

  • AI & models
  • Trigger
  • Routing
  • Files / media
  • Transform
  • Web / API

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters
Get PDF or ImagesTriggerGoogle Drive TriggerSee node parameters
Route based on PDF or ImageRoutingSwitchSee node parameters
Download PDFFiles / mediaGoogle Drivedownload
Download ImageFiles / mediaGoogle Drivedownload
Extract data from PDFTransformExtract From Filepdf
Send data to A.I.Web / APIHTTP RequestPOST
Convert to CSVTransformConvert To FileSee node parameters
Upload to Google DriveFiles / mediaGoogle DriveSee node parameters
Convert to CSV2TransformConvert To FileSee node parameters
Upload to Google Drive1Files / mediaGoogle DriveSee node parameters
Vertex A.I. extract textAI & modelsChain LLMSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleApi
  • googlePalmApi
  • httpHeaderAuth

Workflow notes

How to extract PDF and image text into CSV using n8n (without manual data entry)

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

Get PDF or image

Get PDF or image

You need to create a new folder inside Google Drive for uploading your PDF and images.

Once you create a folder, you need to add your Google cloud user by going to Share -> Add user. The user email should be like: user@example.com

Send to Openrouter

Send to Openrouter

You need to set up an Openrouter account to use this. It sends the data to openrouter to extract text.

Use Header Auth. Name is "Authorization" and value is "Bearer {API token}".

Vertex AI for image recogniztion

Vertex AI for image recogniztion

We send the photo to Vertex AI to extract text. You'll need to activate Vertex AI and add the correct rights to your Google cloud credentials.

  • Enable Vertex API
  • Add vertex to user account
Extract text from PDF and image using Vertex AI (Gemini) into CSV

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

Purpose and structure

This folder contains the Extract text from PDF and image using Vertex AI (Gemini) into CSV workflow. Its executable nodes use chainLlm, convertToFile, extractFromFile, googleDrive, googleDriveTrigger, httpRequest, lmChatGoogleGemini, switch. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

Get PDF or Images

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Extractfromfile/1444_Extractfromfile_Converttofile_Automation_Webhook.json MIT; preserve source notices.

More in AI & research