WhatsApp Receipt OCR & AI Data Extraction with Twilio, LlamaParse & Gemini — n8n Workflow

High complexity🔗 Webhook35 nodes🏷️ Invoice Processingby Gabriela Macovei

Overview

WhatsApp Receipt OCR & Data Extraction Suite
Categories: Accounting Automation • OCR Processing • AI Data Extraction • Business Tools

This workflow transforms WhatsApp into a fully automated receipt-processing system using advanced OCR, multi-model AI parsing, and structured data storage. By combining LlamaParse, Claude (OpenRouter), Gemini, Google Sheets, and Twilio, it eliminates manual data entry and delivers instant, reliable receipt digitization for any business.

What This Workflow Does

Nodes used

Google SheetsHTTP RequestGoogle DriveCodeBasic LLM ChainStructured Output ParserGoogle Gemini Chat ModelOpenRouter Chat Model

Workflow Preview

Quick reply yes/no . SID from twilio
extracted values. no yes/no buttons
Try It Out!
This template shows how to automate the extraction of k
Send quick reply asking the user to confirm i
Contains yes / No buttons
You need to define the quick reply template inside Twil
Wait for WhatsApp to
OCR pooling mechanism using LlamaParse
Calculate tax if not specified on the receipt
modelmodelmodelparser
W
Webhook3
I
If5
W
Wait
HTTP Request28
HTTP Request29
HTTP Request17
HTTP Request18
HTTP Request30
OpenRouter Chat Model
HTTP Request5
Google Gemini Chat Model5
Upload file2
Append row in sheet2
Update row in sheet4
Update row in sheet5
HTTP Request6
Basic LLM Chain3
Structured Output Parser3
Code4
HTTP Request7
Code5
I
If
M
Merge2
M
Merge3
Share file1
HTTP Request19
S
Switch1
HTTP Request20
HTTP Request21
Update row in sheet9
Update row in sheet10
Update row in sheet11
HTTP Request22
HTTP Request24
Google Gemini Chat Model6
35 nodes37 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a webhook trigger.

  2. 2

    Process

    Data flows through 35 nodes, connecting chainllm, code, googledrive.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (35)

GO

Google Sheets

googleSheets

#1
HT

HTTP Request

httpRequest

#2
GO

Google Drive

googleDrive

#3
CO

Code

code

#4
BA

Basic LLM Chain

n8n-nodes-langchain.chainLlm

#5
ST

Structured Output Parser

n8n-nodes-langchain.outputParserStructured

#6
GO

Google Gemini Chat Model

n8n-nodes-langchain.lmChatGoogleGemini

#7
OP

OpenRouter Chat Model

n8n-nodes-langchain.lmChatOpenRouter

#8

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded whatsapp-receipt-ocr-ai-data-extraction-with-twilio-llamaparse-gemini file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "WhatsApp Receipt OCR & AI Data Extraction with Twilio, LlamaParse & Gemini", "nodes": [...], ...}

Integrations

chainllmcodegoogledrivegooglesheetshttprequestiflmchatgooglegeminilmchatopenroutermergeoutputparserstructuredswitchwaitwebhook

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes35
Complexityhigh
Triggerwebhook

Created by

Gabriela Macovei

Gabriela Macovei

@gabrielamacovei

Tags

chainllmcodegoogledrivegooglesheetshttprequestiflmchatgooglegeminilmchatopenroutermergeoutputparserstructured

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Invoice Processing Workflows

COCOEMEX+5
medium

Automate Custom QuickBooks Invoice PDFs & Email with n8n

Standard accounting templates often fail to reflect a premium brand identity. This sophisticated n8n workflow bridges the gap between financial record-keeping and professional client presentation. By moving beyond the native limitations of QuickBooks Online, this automation enables businesses to generate high-end, multi-page PDF invoices that align perfectly with their corporate styling. The process begins the moment a new invoice is generated in QuickBooks, triggering a webhook that captures real-time billing data. The workflow then utilizes advanced HTML-to-File conversion and custom Code nodes to structure data into a polished, branded layout. It handles complex logic such as line-item merging and multi-page formatting automatically. Once the document is rendered, the system bypasses generic 'no-reply' senders by routing the finalized PDF through your preferred email provider. This ensures a seamless, white-labeled experience for your clients while eliminating the manual overhead of exporting, styling, and attaching files. Ideal for agencies and service providers, this flow guarantees that your most frequent touchpoint—the bill—is as professional as your work. **Common Use Cases:** - High-end creative agencies requiring bespoke, white-labeled billing documents for premium clients. - Automated recurring subscription billing where custom tax disclosures or localized branding are required. - Service-based businesses needing to attach dynamic project reports or terms of service directly to QuickBooks invoices.

🔗 Webhook·12 nodes