# Parse WhatsApp invoice images with Gemini and Slack: n8n workflow

> Started by an incoming WhatsApp message, and works across HubSpot, Slack and WhatsApp. 21 steps, 5 branches: large, and worth reading before you trust it...

Source: https://millionrounds.com/workflow/parse-whatsapp-invoice-images-with-gemini-and-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Money admin](https://millionrounds.com/workflows?category=Money+admin#library)

# Parse WhatsApp invoice images with Gemini and Slack

Started by an incoming WhatsApp message, and works across HubSpot, Slack and WhatsApp. 21 steps, 5 branches: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fparse-whatsapp-invoice-images-with-gemini-and-slack)

**21 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Logic 6 Service 14

The steps in the order they run, from what starts it.

- 1 **When WhatsApp Message Received** Whats App trigger *Starts it*
- 2 **Check Message Type** If *Logic*
- 3 **Get WhatsApp Media Metadata** Whats App *Service*
- 4 **Download WhatsApp Media** Http Request *Service*
- 5 **Binary to base64** Extract From File *Service*
- 6 **Parse Invoice with Gemini** Http Request *Service*
- 7 **Clean and Parse JSON Response** Code *Logic*
- 8 **If Valid Invoice** If *Logic*
- 9 **Route by Workflow Path** Switch *Logic*
- 10 **If** If *Logic*
- 11 **Search HubSpot Deals** Hubspot *Service*
- 12 **Post Update to Slack** Slack *Service*
- 13 **Search HubSpot Contacts** Hubspot *Service*
- 14 **Fetch HubSpot Deal Data** Http Request *Service*
- 15 **Create HubSpot Task** Http Request *Service*
- 16 **If Deal Found** If *Logic*
- 17 **Send WhatsApp Task Confirm** Whats App *Service*
- 18 **Update HubSpot Deal** Hubspot *Service*
- 19 **Post Alert to Slack** Slack *Service*
- 20 **Post Task to Slack** Slack *Service*
- 21 **Send WhatsApp Deal Update** Whats App *Service*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 21, with 5 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** HubSpot, Slack, WhatsApp
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own HubSpot, Slack and WhatsApp accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fparse-whatsapp-invoice-images-with-gemini-and-slack)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[HubSpot](https://millionrounds.com/workflows?service=HubSpot#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**Send tailored Upwork job proposals with Gemini and Slack** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/send-tailored-upwork-job-proposals-with-gemini-and-slack)
- [**Automate invoice processing with Gmail and OCR.space** 20 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-invoice-processing-with-gmail-and-ocr-space)
- [**Block duplicate vendor invoice payments with Google Sheets** 20 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/block-duplicate-vendor-invoice-payments-with-google-sheets-2)
- [**Invoice management system with Gmail and Google Sheets** 22 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/invoice-management-system-with-gmail-and-google-sheets)
- [**Reconcile bank payments with ERP and Google Sheets** 20 steps · Google Sheets, Slack](https://millionrounds.com/workflow/reconcile-bank-payments-with-erp-and-google-sheets)
- [**Manage school fee receipts and GPT-4o reminders with Razorpay** 20 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-school-fee-receipts-and-gpt-4o-reminders-with-razorpa)
