AI Invoice Extractor — Gmail + LlamaParse
Stop typing invoices by hand. This workflow watches your Gmail for incoming invoices, sends every PDF through LlamaParse OCR, and lets GPT-4o pull vendor, amount, and line items — then appends a clean row to your Google Sheet and labels the email as processed. Runs every minute, drafts nothing, just extracts.
COMPLEXITY
Beginner
SETUP TIME
5 minutes
TECHNOLOGIES USED
REQUIREMENTS
- An n8n instance
- Gmail OAuth2
- OpenAI API key
- LlamaParse API key
- Google Sheets with a target sheet
Workflow Preview

How It Works
Invoice Watch
Gmail trigger polls every minute for unread emails with attachments matching invoice queries
Attachment Filter
Only emails containing invoice keywords move forward; everything else is skipped
LlamaParse OCR
Each PDF is uploaded to LlamaParse and converted to markdown text
AI Extraction
GPT-4o reads the parsed text and returns strict JSON with vendor, amounts, and line items
Sheet + Label
The extracted fields are appended to your sheet and the email is labeled INVOICE_PROCESSED
Frequently Asked Questions
Which invoices does it pick up?
Any unread Gmail message with an attachment whose subject or snippet contains invoice. Adjust the Gmail query to match your vendors.
Do I need LlamaParse?
Yes for PDF OCR — it handles scanned and digital PDFs. You can swap it for another parser by replacing the HTTP node.
Can I change the output fields?
Edit the extraction prompt and the Sheets column mapping to add or remove fields like due date or tax.
Does it handle multiple invoices per email?
The workflow processes the first attachment per email. Add a Split Out node before the upload to handle multiples.
What is the refund policy?
Due to the digital nature of our products, we cannot offer refunds once purchased. We provide 7 days of implementation support to ensure your success through email. If you encounter any issues, please reach out to us at team@autorithm.net.
One-time payment
Beginner • 5 minutes
What's Included
- Complete n8n workflow (import-ready JSON)
- 5-minute setup guide
- Customization notes (sheet mapping, JQL, model choice)
- Append-only design — nothing is deleted automatically
Instant Access
Secure Payment
7d Support