PDF & Image to CSV (Vertex AI + OpenRouter)

September 18, 2025

Aladuddin Aladin

This workflow automates the process of extracting text from PDF documents and images uploaded to Google Drive, then converting the extracted data into CSV format for easy analysis.

  • For PDFs, text is extracted and enriched using OpenRouter AI.
  • For images, text recognition is powered by Google Vertex AI (Gemini).
  • The resulting CSV file is automatically saved back into a designated Google Drive folder.

This template is especially useful for financial records, invoices, receipts, and any workflow where structured data needs to be pulled out of semi-structured files.

✨ Features

  1. Google Drive Trigger – Detects new files in a specified folder.
  1. Smart Routing – Identifies whether the uploaded file is a PDF or an image.
  1. PDF Text Extraction – Uses n8n’s extract node + OpenRouter AI for structured CSV output.
  1. Image OCR via Vertex AI – Extracts transaction details and converts them into CSV format.
  1. AI Categorization – Adds a Category column to classify transactions automatically.
  1. CSV Conversion – Converts extracted text into CSV files ready for reporting or analysis.
  1. Auto-Upload – Saves the processed CSV into a chosen Google Drive folder.

About the author

Alauddin Aladin is an AI Automation expert helping businesses streamline operations, boost productivity, and scale effortlessly using tools like Make.com and n8n. With over a decade of experience in digital systems and automation strategy, Alauddin empowers entrepreneurs to save time and grow smarter through intelligent workflows and AI-driven solutions.

Leave a Comment