Automate purchase bill processing with AI OCR & QuickBooks integration
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs when someone submits an n8n form (“Invoice Parser + QuickBooks Bill Creator”). Along the way it connects QuickBooks Online and OpenRouter Chat Model. It also calls sandbox-quickbooks.api.intuit.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Invoice Parser + QuickBooks Bill Creator”).
- Convert to Separate Items (Code): runs custom JavaScript code
- Loop Over Invoices (Loop Over Items (Split in Batches)): loops over the items in batches
- Extract from PDF (Extract from File): extracts data from a file (pdf)
- Clean Text (Code): runs custom JavaScript code
- Extract Invoice Data (Information Extractor): extracts structured fields from text with AI, with model: OpenRouter Chat Model
- Prepare Items to Check (Code): runs custom JavaScript code
- Get All QB Items (QuickBooks Online): get many (item)
- Check Which Items to Create (Code): runs custom JavaScript code
- Need to Create Items? (If): checks a condition and branches into true / false
- Split Items to Create (Split Out): splits a list into separate items
…plus 8 more steps. See the full node list below.
Services it uses
HTTP calls to: sandbox-quickbooks.api.intuit.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 (11)
- Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - QuickBooks Online
n8n-nodes-base.quickbooks - If
n8n-nodes-base.if - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Extract from File
n8n-nodes-base.extractFromFile - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - n8n Form Trigger
n8n-nodes-base.formTrigger
From the author
✅ What problem does this workflow solve? Accounting teams spend hours manually entering purchase bills into accounting systems—copying vendor details, creating items, checking duplicates, and reconciling totals. This workflow removes that manual effort…