Parse WhatsApp invoice images with Gemini and sync payments to HubSpot and Slack
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, HubSpot and Slack. It also calls generativelanguage.googleapis.com and api.hubapi.com over HTTP.
How it runs
Trigger: On WhatsApp events (messages).
- Check Message Type (If): checks a condition and branches into true / false
- Get WhatsApp Media Metadata (WhatsApp Business Cloud): media url get
- Download WhatsApp Media (HTTP Request): calls an HTTP API
- Binary to base (Extract from File): extracts data from a file (binary to propery)
- Parse Invoice with Gemini (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Clean and Parse JSON Response (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Route by Workflow Path (Switch): routes items into 3 branches
- If: checks a condition and branches into true / false
- Search HubSpot Deals (HubSpot): search
…plus 10 more steps. See the full node list below.
Services it uses
Other Google Gemini + Slack templates (309) · Other HubSpot + Slack templates (137) · Other WhatsApp + Google Gemini templates (84)
HTTP calls to: generativelanguage.googleapis.com, api.hubapi.com
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 (9)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - If
n8n-nodes-base.if - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Switch
n8n-nodes-base.switch - HubSpot
n8n-nodes-base.hubspot - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack - Extract from File
n8n-nodes-base.extractFromFile
From the author
Quick overview Youtube Video: https://youtu.be/KwK7vf58WZs This workflow captures invoice images/documents from WhatsApp, extracts structured invoice data with Google Gemini, and syncs the result to HubSpot by creating vendor-payment tasks or closing matching…