Templates / Automate WhatsApp invoice processing with OCR, GPT-4 Mini & Google Services

Automate WhatsApp invoice processing with OCR, GPT-4 Mini & Google Services

Ready for 3.0

by Muhammad Ali ✓ · 1,976 views · created 2025-11-03 · 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 11 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, Google Drive, Google Sheets and OpenAI Chat Model. It also calls api.ocr.space over HTTP.

How it runs

Trigger: On WhatsApp events (messages).

  1. Get Download URL (WhatsApp Business Cloud): media url get
  2. Download File (HTTP Request): calls an HTTP API
  3. Analyze Image (HTTP Request): calls api.ocr.space (POST)
  4. Parse Text (Code): runs custom JavaScript code
  5. Update DataBase (Google Sheets): append or update
  6. Original Invoice Retrieval (HTTP Request): calls an HTTP API
  7. Add Invoice To Drive (Google Drive): uses Google Drive
  8. Invoice Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model
  9. Reply (WhatsApp Business Cloud): send

Services it uses

WhatsApp Business CloudGoogle DriveGoogle SheetsOpenAI Chat Model

HTTP calls to: api.ocr.space

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

From the author

Description How it works This powerful workflow helps businesses and freelancers automatically manage invoices received on WhatsApp. It detects new messages, downloads attached invoices, extracts key data using OCR (Optical Character Recognition), summarizes…

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