Check Gmail e-invoices with Dynamic Document API, Sheets, Drive and DATEV
UnknownWhat this workflow does
This workflow has 34 nodes and runs on Gmail events (plus 2 other triggers). Along the way it connects Gmail, Google Sheets, Google Drive and Dynamic Document Api (community).
How it runs
Trigger: On Gmail events (plus 2 other triggers).
- Inbox settings (Edit Fields (Set)): sets 20 fields: company_name, own_vat_id, alert_email…
- Which run? (Switch): routes items into 3 branches
- Read invoice register (Google Sheets): uses Google Sheets
- Read register for the due list (Google Sheets): uses Google Sheets
- Read register for DATEV (Google Sheets): uses Google Sheets
- Read suppliers (Google Sheets): uses Google Sheets
- Invoices due soon (Code): runs custom JavaScript code
- Read suppliers for DATEV (Google Sheets): uses Google Sheets
- One item per attachment (Code): runs custom JavaScript code
- Email the due list (Gmail): uses Gmail
…plus 21 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Drive + Google Sheets templates (720) · Other Gmail + Google Drive templates (465)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @dynamic-document-api/n8n-nodes-dynamic-document-api is verified or supports 3.0 (used in Check the e-invoice).
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Dynamic Document Api
@dynamic-document-api/n8n-nodes-dynamic-document-api.dynamicDocumentApi - Google Drive
n8n-nodes-base.googleDrive - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Convert to File
n8n-nodes-base.convertToFile
From the author
Quick overview This workflow monitors supplier invoice emails in Gmail, validates PDF/XML e-invoices with Dynamic Document API, stores files in Google Drive, maintains an invoice register and supplier list in Google Sheets, sends payment-due reminders by…