Build weekly payment runs with Google Sheets and Gmail
Ready for 3.0What this workflow does
This workflow has 17 nodes and runs on a schedule (every week at 08:00). Along the way it connects Google Sheets and Gmail.
How it runs
Trigger: On a schedule (every week at 08:00).
- Set Ledger and Runs Config (Edit Fields (Set)): sets 19 fields: ledgerSheetId, ledgerTab, runsTab…
- Read Ledger from Sheets (Google Sheets): read
- Read Previous Runs from Sheets (Google Sheets): read
- Tag Ledger Rows (Edit Fields (Set)): sets 1 field: _source
- Tag Previous Run Rows (Edit Fields (Set)): sets 1 field: _source
- Merge: merges the data from its input branches
- Calculate Payment Decisions (Code): runs custom JavaScript code
- Check Ledger Usability (If): checks a condition and branches into true / false
- Check Records Needed (If): checks a condition and branches into true / false
- Stop: Unusable Ledger (Stop and Error): stops the run with an error
…plus 5 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102)
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 (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Stop and Error
n8n-nodes-base.stopAndError - No Operation, do nothing
n8n-nodes-base.noOp - Split Out
n8n-nodes-base.splitOut - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs every Thursday to build a weekly payment run by reading an invoice ledger and previous payment runs from Google Sheets, writing one decision row per invoice back to the Payment Runs tab, and emailing a plain-text summary via…