Automate WhatsApp invoice processing with OCR, GPT-4 Mini & Google Services
Ready for 3.0What 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).
- Get Download URL (WhatsApp Business Cloud): media url get
- Download File (HTTP Request): calls an HTTP API
- Analyze Image (HTTP Request): calls api.ocr.space (POST)
- Parse Text (Code): runs custom JavaScript code
- Update DataBase (Google Sheets): append or update
- Original Invoice Retrieval (HTTP Request): calls an HTTP API
- Add Invoice To Drive (Google Drive): uses Google Drive
- Invoice Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Reply (WhatsApp Business Cloud): send
Services it uses
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)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Google Sheets
n8n-nodes-base.googleSheets - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
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…