Email a weekly 13-week cash flow forecast with Google Sheets and Gmail
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs on a schedule (every week at 07:00). Along the way it connects Google Sheets and Gmail.
How it runs
Trigger: On a schedule (every week at 07:00).
- Set forecast settings (Edit Fields (Set)): sets 5 fields: spreadsheetUrl, reportRecipient, minimumCashBalance…
- Read bank balance log (Google Sheets): uses Google Sheets
- Read expected cash items (Google Sheets): uses Google Sheets
- Calculate 13-week forecast (Code): runs custom JavaScript code
- Split forecast into weekly rows (Split Out): splits a list into separate items
- Update Forecast tab (Google Sheets): append or update
- Build HTML email report (Code): runs custom JavaScript code
- Email forecast report (Gmail): uses Gmail
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 (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Split Out
n8n-nodes-base.splitOut - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs every Monday and reads bank balances and expected cash items from Google Sheets to calculate a 13-week cash flow forecast, update a Forecast tab, and send an HTML report via Gmail highlighting low-cash weeks, past-due items,…