Automated Invoice Data Extraction with LlamaParse, Gemini 2.5 & Google Sheets โ€” n8n Workflow

Hoog complexiteitโšก Trigger17 knooppunten๐Ÿท๏ธ Invoice Processingdoor Agentick AI

Overzicht

This n8n template demonstrates how to automate invoice data extraction from PDF attachments received via Gmail. Using LlamaParse and Gemini LLM, this workflow parses structured fields like PO numbers, line items, tax amounts, and totals โ€” and stores them neatly into a Google Sheet.

Perfect for use cases such as: ๐Ÿ’ผ Finance teams managing vendor invoices ๐Ÿ“Š Bookkeeping workflows ๐Ÿ”„ Automating monthly reconciliation

Good to Know At the time of writing, LlamaParse and Gemini may involve API usage co

Gebruikte knooppunten

Google SheetsHTTP RequestGmailBasic LLM ChainStructured Output ParserGoogle Gemini Chat Model

Workflow-voorvertoning

2. Advanced PDF Processing with LlamaParse
Read more about using HTTP Requests
LlamaIndex's LlamaCloud is a cloud
1. Watch for Invoice Emails
Read more about Gmail Triggers
The Gmail node can watch for all incoming messages
3. Use LLMs to Extract Values from Data
Read more about Basic LLM Chain
Large language models are
4. Add Label to Avoid Duplication
Read more about working with Gmail
To finish off the workflow, we'll add the "invoice
Try Me Out!
This workflow does the following:
* Waits for email invoices with PDF attachments.
* Uses the LlamaParse service to convert the invoice PD
* Uses a LLM to ex
Need more attributes?
Change it here!
๐ŸšจRequired
* Set Your Google Sheet URL here
* Set the Name of your Sheet
Don't use GSheets?
Swap this for Excel, Airtable or a Database!
๐ŸšจRequired
* Change the email filters here!
modelparser
Structured Output Parser
Upload to LlamaParse
โšก
R
Receiving Invoices
Append to Reconciliationโ€ฆ
Get Processing Status
W
Wait to stay within servโ€ฆ
I
Is Job Ready?
Add "invoice synced" Label
Get Parsed Invoice Data
M
Map Output
Apply Data Extraction Ruโ€ฆ
S
Should Process Email?
S
Split Out Labels
Get Labels Names
C
Combine Label Names
E
Email with Label Names
Google Gemini Chat Model
17 nodes18 edges

Hoe het werkt

  1. 1

    Trigger

    De workflow start met een trigger-trigger.

  2. 2

    Verwerking

    Gegevens stromen door 17 knooppunten, connecting aggregate, chainllm, gmail.

  3. 3

    Uitvoer

    De workflow voltooit zijn automatisering en levert het resultaat aan de geconfigureerde bestemming.

Knooppuntdetails (17)

GO

Google Sheets

googleSheets

#1
HT

HTTP Request

httpRequest

#2
GM

Gmail

gmail

#3
BA

Basic LLM Chain

n8n-nodes-langchain.chainLlm

#4
ST

Structured Output Parser

n8n-nodes-langchain.outputParserStructured

#5
GO

Google Gemini Chat Model

n8n-nodes-langchain.lmChatGoogleGemini

#6

Hoe deze workflow te importeren

  1. 1Klik op de knop JSON downloaden rechts om het workflowbestand op te slaan.
  2. 2Open uw n8n-instantie. Ga naar Workflows โ†’ Nieuw โ†’ Importeren uit bestand.
  3. 3Selecteer het gedownloade bestand automated-invoice-data-extraction-with-llamaparse-gemini-25-google-sheets en klik op Importeren.
  4. 4Stel inloggegevens in voor elk serviceknooppunt (API-sleutels, OAuth, enz.).
  5. 5Klik op Workflow testen om te controleren of alles werkt, activeer het vervolgens.

Of plak rechtstreeks in n8n โ†’ Importeren uit JSON:

{ "name": "Automated Invoice Data Extraction with LlamaParse, Gemini 2.5 & Google Sheets", "nodes": [...], ...}

Integraties

aggregatechainllmgmailgmailtriggergooglesheetshttprequestiflmchatgooglegeminimergeoutputparserstructuredsetsplitoutswitchwait

Haal deze workflow op

Download en importeer met รฉรฉn klik

JSON downloadenBekijken op n8n.io
Knooppunten17
Complexiteithigh
Triggertrigger

Gemaakt door

Agentick AI

Agentick AI

@arpanjain29

Tags

aggregatechainllmgmailgmailtriggergooglesheetshttprequestiflmchatgooglegeminimergeoutputparserstructured
โšก

Nieuw bij n8n?

n8n is een gratis open-source workflow-automatiseringstool. Host het zelf of gebruik de cloudversie.

n8n gratis ophalen โ†’

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