Check, register and remind on supplier e-invoices with Gmail, invoapi, Google Drive, Sheets and Anthropic
UnknownWhat this workflow does
This AI workflow has 27 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, Google Sheets, Google Drive and Anthropic Chat Model and 1 more.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Configure workflow (Edit Fields (Set)): sets 5 fields: driveFolderId, spreadsheetId, accountingEmail…
- Reminder settings (Edit Fields (Set)): sets 3 fields: spreadsheetId, accountingEmail, dueWithinDays
- Split e-invoice attachments (Code): runs custom JavaScript code
- Read invoice register (Google Sheets): read
- Check e-invoice with invoapi (Invoapi): validate (document)
- Find invoices due soon (Code): runs custom JavaScript code
- Attach file to result (Code): runs custom JavaScript code
- Attach file to failed check (Code): runs custom JavaScript code
- Email payment reminder (Gmail): uses Gmail
- Route by result (Switch): routes items into 3 branches
…plus 14 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 n8n-nodes-invoapi is verified or supports 3.0 (used in Check e-invoice with invoapi, Read invoice data).
- 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 (12)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Invoapi
n8n-nodes-invoapi.invoapi - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Drive
n8n-nodes-base.googleDrive - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow monitors a Gmail inbox for incoming XML or PDF invoice attachments, validates each file with invoapi against e-invoice rules, saves valid invoices to Google Drive, replies to suppliers with validation errors, and forwards…