Templates / Track and classify expenses with Mindee OCR, GPT-4o, PostgreSQL and Google Drive

Track and classify expenses with Mindee OCR, GPT-4o, PostgreSQL and Google Drive

Ready for 3.0

by WeblineIndia ✓ · 2 views · created 2026-09-03 · Document Extraction, 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 32 nodes and runs when someone submits an n8n form (“Expense Upload”) (plus 1 other trigger). Along the way it connects Slack, OpenAI, Google Drive and Postgres. It also calls api-v2.mindee.net over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Expense Upload”) (plus 1 other trigger).

  1. Validate Receipt File (Code): runs custom JavaScript code
  2. Calculate Monthly Spending (Postgres): run a query
  3. Generate Category Analytics (Postgres): run a query
  4. Generate Merchant Analytics (Postgres): run a query
  5. Calculate Expense Split (Postgres): run a query
  6. Submit Receipt To Mindee (HTTP Request): calls api-v2.mindee.net (POST)
  7. Upload Receipt To Drive (Google Drive): uses Google Drive
  8. Merge: merges the data from its input branches
  9. Validate OCR Job (If): checks a condition and branches into true / false
  10. OCR Failure Alert (Slack): uses Slack

…plus 20 more steps. See the full node list below.

Services it uses

SlackOpenAIGoogle DrivePostgres

HTTP calls to: api-v2.mindee.net

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 (12)

From the author

Quick overview This workflow collects receipt uploads via an n8n form, extracts expense details with Mindee OCR, enriches and classifies the expense using OpenAI, stores the receipt in Google Drive, saves the final record to PostgreSQL, and sends Slack alerts…

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