Upload Gmail invoice and receipt attachments to Lexware Office XL
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 9 nodes and runs on Gmail events. Along the way it connects Gmail.
How it runs
Trigger: On Gmail events.
- Configuration (Edit Fields (Set)): sets 5 fields: LEXWARE_UPLOAD_URL, RECEIPT_KEYWORDS, REQUIRE_KEYWORD…
- Find receipt attachments (Code): runs custom JavaScript code
- Upload this file? (If): checks a condition and branches into true / false
- Upload to Lexware Office (HTTP Request): calls an HTTP API (POST)
- Log result (Code): runs custom JavaScript code
- One item per email (Code): runs custom JavaScript code
- Explain upload failure (Code): runs custom JavaScript code
- Label email as processed (Gmail): add labels (message)
Services it uses
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New email with attachment).
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail
From the author
Quick overview Watches Gmail for receipt and invoice emails, uploads PDF/JPG/PNG attachments to Lexware Office as vouchers, labels successful emails, and logs every file — with a named error branch and readable reasons for failed uploads. How it works 1. Runs…