Issue Rivhit receipts from WhatsApp photos using Google Vision and GPT-4o
UnknownWhat this workflow does
This AI workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model and Waha (community). It also calls vision.googleapis.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Only if it's from the bot's group (Filter): keeps only the items that match a condition
- Start Typing (WAHA): start typing (chatting)
- Is there a picture or not? (If): checks a condition and branches into true / false
- Extracting text from images (HTTP Request): calls vision.googleapis.com (POST)
- Preparing a message (Code): runs custom JavaScript code
- api key (Edit Fields (Set)): sets 1 field: api_token
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (rivhit_api); memory: Simple Memory
- Separation between the message and document link (Code): runs custom JavaScript code
- Only if there is an attachment (If): checks a condition and branches into true / false
- Send a file (WAHA): send file (chatting)
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: vision.googleapis.com
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @devlikeapro/n8n-nodes-waha is verified or supports 3.0 (used in Send a file, Start Typing).
- Check that n8n-nodes-waha is verified or supports 3.0 (used in Send a text message).
Nodes used (12)
- If
n8n-nodes-base.if - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - WAHA
@devlikeapro/n8n-nodes-waha.WAHA - WAHA
n8n-nodes-waha.WAHA - Filter
n8n-nodes-base.filter - Webhook
n8n-nodes-base.webhook
From the author
How it works 1. Courier sends an invoice photo to WhatsApp → AI extracts all details via Google Vision OCR 2. Courier sends a payment photo (check, bank transfer, credit card voucher) → AI matches it to the invoice 3. AI presents a summary and asks for…