Chase UK late invoice payments with Data Tables, GOV.UK and SMTP email
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls gov.uk and bankofengland.co.uk over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 12 fields: business_name, sender_name, from_email…
- Get UK bank holidays (HTTP Request): calls gov.uk
- Get BoE base rate history (HTTP Request): calls bankofengland.co.uk
- Create invoice table if missing (Data table): create (table)
- Check for existing invoices (Data table): get (row)
- Empty table and demo on? (If): checks a condition and branches into true / false
- Build demo invoices (Code): runs custom JavaScript code
- Load invoices (Data table): get (row)
- Insert demo invoices (Data table): insert (row)
- Calculate interest and level (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
HTTP calls to: gov.uk, bankofengland.co.uk
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Data table
n8n-nodes-base.dataTable - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview This workflow runs on UK working days to chase overdue B2B invoices stored in an n8n Data Table, calculates statutory late-payment interest using Bank of England base rates and UK bank holidays from GOV.UK, and drafts or sends escalating…