Templates / Automated PDF invoice processing & approval flow using OpenAI and Google Sheets

Automated PDF invoice processing & approval flow using OpenAI and Google Sheets

Needs changes

by Billy Christi ✓ · 14,303 views · created 2025-05-28 · Invoice Processing, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 14 nodes and runs on Google Drive events (file created) (plus 2 other triggers). Along the way it connects OpenAI Chat Model, Google Drive, Google Sheets and Gmail.

How it runs

Trigger: On Google Drive events (file created) (plus 2 other triggers).

  1. Download Invoice PDF (Google Drive): download
  2. Extract Text from Email PDF (Extract from File): extracts data from a file (pdf)
  3. Extract Text from Form PDF (Extract from File): extracts data from a file (pdf)
  4. Extract Text from Drive PDF (Extract from File): extracts data from a file (pdf)
  5. Invoice Parser AI Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  6. Send Invoice for Approval (Gmail): send and wait for a reply
  7. Check Approval Decision (If): checks a condition and branches into true / false
  8. Insert Invoice Data (Google Sheets): append
  9. Send Rejection Alert (Gmail): uses Gmail

Services it uses

OpenAI Chat ModelGoogle DriveGoogle SheetsGmail

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Invoice Parser AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Invoice Parser AI Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

Who is this for? This workflow is ideal for: Finance teams that need to process incoming invoices faster with minimal errors Small to mid-sized businesses that want to automate invoice intake, review, and storage Operations managers who require approval…

Excerpt from Billy Christi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.