Templates / Extract invoice data from Google Drive images with GPT-4o and Postgres

Extract invoice data from Google Drive images with GPT-4o and Postgres

Ready for 3.0

by pawan · 41 views · created 2026-07-12 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 10 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, OpenAI and Postgres.

How it runs

Trigger: On Google Drive events (file created).

  1. Download from Google Drive (Google Drive): download
  2. AI Image Analyzer (OpenAI): analyze (image)
  3. Parse JSON Response (Code): runs custom JavaScript code
  4. Move to Failed Folder (Google Drive): move
  5. Check Duplicate Entry (Postgres): run a query
  6. If: checks a condition and branches into true / false
  7. Move to Duplicate Folder (Google Drive): move
  8. Insert Invoice Record (Postgres): run a query
  9. Move to Processed Folder (Google Drive): move

Services it uses

Google DriveOpenAIPostgres

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick overview This workflow watches a Google Drive folder for new invoice images, extracts key invoice fields with OpenAI vision, checks for duplicates in Postgres, and then stores the invoice or moves the file into processed, duplicate, or failed folders.…

Excerpt from pawan'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.