đź§ľ Automated financial document processing with Google Gemini OCR

⚡ 1,100 views · 🧾 Invoice Processing

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

AI-Powered Financial Document Processing with Google Gemini

This comprehensive workflow automates the complete financial document processing pipeline using AI. Upload invoices via chat, drop expense receipts into a folder, or add bank statements - the system automatically extracts, categorizes, and organizes all your financial data into structured Google Sheets.

What this workflow does

Processes three types of financial documents automatically:

Key Features

How it works

Invoice Processing Flow

  1. User uploads PDF invoice via chat interface
  2. File is saved to Google Drive “Invoices” folder
  3. Google Gemini extracts structured data (vendor, amounts, line items, dates)
  4. Data is parsed and saved to “Invoice Records” Google Sheet
  5. File is renamed as “{Vendor Name} - {Invoice Number}”
  6. Confirmation message sent to user

Expense Processing Flow

  1. User drops receipt PDF into “Expense Receipts” Google Drive folder
  2. System detects new file within 1 minute
  3. Google Gemini extracts expense data (merchant, amount, payment method)
  4. OpenRouter LLM categorizes expense into appropriate business category
  5. All data saved to “Expenses Recording” Google Sheet

Bank Statement Processing Flow

  1. User uploads bank statement to “Bank Statements” folder
  2. Google Gemini extracts multiple transactions from statement
  3. Custom JavaScript parser handles various bank formats
  4. Individual transactions saved to “Bank Transactions Record” Google Sheet

Financial Analysis

  1. Enable the analysis trigger when needed
  2. Ask questions in natural language about your financial data
  3. AI agent accesses all three spreadsheets to provide insights
  4. Get reports, summaries, and trend analysis

What you need to set up

Required APIs and Credentials

Google Drive Folder Structure

Create these folders in your Google Drive:

Google Sheets Setup

Create three spreadsheets with these column headers:

Invoice Records Sheet: Vendor Name, Invoice Number, Invoice Date, Due Date, Total Amount, VAT Amount, Line Item Description, Quantity, Unit Price, Total Price

Expenses Recording Sheet: Merchant Name, Transaction Date, Total Amount, Tax Amount, Payment Method, Line Item Description, Quantity, Unit Price, Total Price, Category

Bank Transactions Record Sheet: Transaction ID, Date, Description/Payee, Debit (-), Credit (+), Currency, Running Balance, Notes/Category

Use Cases

Technical Highlights

Benefits

This workflow transforms tedious financial document processing into an automated, intelligent system that grows with your business needs.

đź”— Nodes Used

Google Sheets, HTTP Request, Google Drive, Google Drive Trigger, Execute Workflow Trigger, AI Agent

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup