Invoice data extraction with LlamaParse and OpenAI
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: OpenAI Model. 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 17 nodes and runs on Gmail events. Along the way it connects OpenAI Model, Gmail and Google Sheets. It also calls api.cloud.llamaindex.ai over HTTP.
How it runs
Trigger: On Gmail events.
- Split Out: splits a list into separate items
- Email with Label Names (Merge): merges the data from its input branches
- Get Labels Names (Gmail): get (label)
- Should Process Email? (If): checks a condition and branches into true / false
- Combine Label Names (Aggregate): combines items into one
- Upload to LlamaParse (HTTP Request): calls api.cloud.llamaindex.ai (POST)
- Get Processing Status (HTTP Request): calls an HTTP API
- Is Job Ready? (Switch): routes items into 4 branches
- Get Parsed Invoice Data (HTTP Request): calls an HTTP API
- Wait: waits 1 seconds
…plus 4 more steps. See the full node list below.
Services it uses
HTTP calls to: api.cloud.llamaindex.ai
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- OpenAI Model: replace with OpenAI Chat Model.
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
| Removed in 3.0 | Replace with |
|---|---|
| OpenAI Model OpenAI Model | OpenAI Chat Model |
Nodes used (14)
- OpenAI Model
@n8n/n8n-nodes-langchain.lmOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - HTTP Request
n8n-nodes-base.httpRequest - Gmail Trigger
n8n-nodes-base.gmailTrigger - Google Sheets
n8n-nodes-base.googleSheets - Wait
n8n-nodes-base.wait - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - If
n8n-nodes-base.if - Split Out
n8n-nodes-base.splitOut - Aggregate
n8n-nodes-base.aggregate - Merge
n8n-nodes-base.merge
From the author
This n8n workflow automates the process of parsing and extracting data from PDF invoices. With this workflow, accounts and finance people can realise huge time and cost savings in their busy schedules. Read the Blog:…