Build a rolling 13-week cash flow forecast with an AI agent
Last updated
Copy this prompt
Paste this into a general agent such as ChatGPT agent or Claude, then add your own inputs.
Help me run this UseCaseProof playbook: Build a rolling 13-week cash flow forecast with an AI agent. The problem: Most small businesses find out cash is tight when the bank balance is already low. The numbers needed to see it coming are scattered: the bank balance, open customer invoices, bills due, payroll dates, loan payments, tax dates and subscriptions. A 13-week cash flow forecast pulls these together week by week, but building one in a spreadsheet and keeping it current takes hours, so it gets done once during a crunch and then goes stale. How the agent should work: Once a week the agent reads the opening bank balance, open receivables and payables from your accounting system, and a short list of fixed dates you maintain (payroll, rent, loan repayments, tax payments, known one-off costs). Instead of assuming every invoice is paid on its due date, it spreads expected receipts using each customer's actual payment history, such as how many days late they usually pay. It lays out inflows and outflows for each of the next 13 weeks, rolls the forecast forward a week, and compares last week's forecast with what actually happened so the gaps are visible. It flags any week where the projected balance falls below the minimum cash level you set and lists the items driving the dip. The finance owner reviews the forecast, adjusts assumptions and decides what to do. The agent only reads and reports; it never moves money, chases customers or delays bills. Follow these steps: 1. Set the minimum cash balance you want to keep and the day of the week the forecast should run 2. Connect read-only access to your bank feed and your accounting system (open invoices, open bills, payment history) 3. Write a fixed-dates sheet with payroll, rent, loan repayments, tax payments, subscriptions and known one-off costs, and keep it updated 4. Have the agent work out each customer's typical days to pay from past invoices, and use it to place expected receipts in the right week; customers with little history use the due date plus a buffer you choose 5. Lay out a 13-week table of opening balance, inflows by type, outflows by type and closing balance, with every line traceable to an invoice, bill or fixed-dates row 6. Each week, compare the previous forecast with actual bank movements, note the biggest misses, and roll the forecast forward 7. Send a short summary to the finance owner: weeks below the minimum, the items driving them, and assumptions that changed 8. Let the owner adjust assumptions and decide actions such as chasing specific invoices or rescheduling a purchase, outside the agent Human-approval checkpoint: The finance owner or bookkeeper reviews every forecast, changes assumptions, and makes all decisions about borrowing, paying suppliers later, chasing customers or cutting costs. The agent never initiates payments, moves money between accounts, or contacts customers or suppliers. Guardrails: A forecast is only as good as its inputs: unrecorded bills, missing payroll changes or a customer who suddenly stops paying will make it wrong, so show every assumption and keep the fixed-dates sheet owned by a person. Language models can make arithmetic slips; do the totals with spreadsheet formulas or code and let the model explain and summarize. Keep bank access read-only and limit who can see the forecast. Treat it as a planning aid, not financial advice, and involve your accountant for lending or tax decisions. Suggested tools from this playbook (not ranked; check current features and pricing): Float, Fathom, QuickBooks Online, Xero, Claude or ChatGPT with a spreadsheet, Make or n8n + an LLM. Do not send messages, move money, grant access, merge code, or take any irreversible action until I approve. If you need an input I have not provided, ask me instead of guessing.
The problem
Most small businesses find out cash is tight when the bank balance is already low. The numbers needed to see it coming are scattered: the bank balance, open customer invoices, bills due, payroll dates, loan payments, tax dates and subscriptions. A 13-week cash flow forecast pulls these together week by week, but building one in a spreadsheet and keeping it current takes hours, so it gets done once during a crunch and then goes stale.
How the agent works
Once a week the agent reads the opening bank balance, open receivables and payables from your accounting system, and a short list of fixed dates you maintain (payroll, rent, loan repayments, tax payments, known one-off costs). Instead of assuming every invoice is paid on its due date, it spreads expected receipts using each customer's actual payment history, such as how many days late they usually pay. It lays out inflows and outflows for each of the next 13 weeks, rolls the forecast forward a week, and compares last week's forecast with what actually happened so the gaps are visible. It flags any week where the projected balance falls below the minimum cash level you set and lists the items driving the dip. The finance owner reviews the forecast, adjusts assumptions and decides what to do. The agent only reads and reports; it never moves money, chases customers or delays bills.
Setup steps
- Set the minimum cash balance you want to keep and the day of the week the forecast should run
- Connect read-only access to your bank feed and your accounting system (open invoices, open bills, payment history)
- Write a fixed-dates sheet with payroll, rent, loan repayments, tax payments, subscriptions and known one-off costs, and keep it updated
- Have the agent work out each customer's typical days to pay from past invoices, and use it to place expected receipts in the right week; customers with little history use the due date plus a buffer you choose
- Lay out a 13-week table of opening balance, inflows by type, outflows by type and closing balance, with every line traceable to an invoice, bill or fixed-dates row
- Each week, compare the previous forecast with actual bank movements, note the biggest misses, and roll the forecast forward
- Send a short summary to the finance owner: weeks below the minimum, the items driving them, and assumptions that changed
- Let the owner adjust assumptions and decide actions such as chasing specific invoices or rescheduling a purchase, outside the agent
Tools that can do this
- Float
- Fathom
- QuickBooks Online
- Xero
- Claude or ChatGPT with a spreadsheet
- Make or n8n + an LLM
Some tool links may be affiliate links. We only list tools that fit the playbook; recommendations are not sold. Disclosure.
Not ranked. Tools marked Featured pay for a highlighted listing; that never decides which tools we include. Check each vendor's current features and pricing.
Make one of these tools? Feature your tool on every playbook where it is already listed.
Human in the loop
The finance owner or bookkeeper reviews every forecast, changes assumptions, and makes all decisions about borrowing, paying suppliers later, chasing customers or cutting costs. The agent never initiates payments, moves money between accounts, or contacts customers or suppliers.
Risks and guardrails
A forecast is only as good as its inputs: unrecorded bills, missing payroll changes or a customer who suddenly stops paying will make it wrong, so show every assumption and keep the fixed-dates sheet owned by a person. Language models can make arithmetic slips; do the totals with spreadsheet formulas or code and let the model explain and summarize. Keep bank access read-only and limit who can see the forecast. Treat it as a planning aid, not financial advice, and involve your accountant for lending or tax decisions.
ROI notes
Track how far each week's actual closing balance landed from the forecast, how much warning you got before a tight week, and the time spent building forecasts by hand before. The value is earlier warning and a forecast that stays current, not a guaranteed cash position.
Quick answers
How do I build a rolling 13-week cash flow forecast with an AI agent?
Once a week the agent reads the opening bank balance, open receivables and payables from your accounting system, and a short list of fixed dates you maintain (payroll, rent, loan repayments, tax payments, known one-off costs). The full setup is 8 steps.
Do I need to code to set this up?
No. This can be set up with no-code tools. We rate the setup Medium.
Which tools can do this?
Float, Fathom, QuickBooks Online, Xero, Claude or ChatGPT with a spreadsheet, Make or n8n + an LLM. Not ranked; check each vendor's current features and pricing.
Where does a human stay in control?
The finance owner or bookkeeper reviews every forecast, changes assumptions, and makes all decisions about borrowing, paying suppliers later, chasing customers or cutting costs.
What's a starter prompt I can paste into ChatGPT agent or Claude?
A playbook-specific starter prompt is in the Copy this prompt section above. It is written from this playbook's steps and human-approval checkpoint, for a general agent such as ChatGPT agent or Claude.
Also useful: chase overdue invoices with approved reminders; reconcile bank transactions; match supplier invoices to purchase orders; draft month-end variance commentary.
Related playbooks
Extract invoice data into your accounting system
Someone retypes vendor invoices from PDFs into accounting software.
Categorize expenses and chase missing receipts
Month-end close stalls on uncategorized transactions and missing receipts.
Reconcile bank transactions with your books
Reconciliation is tedious matching across bank lines, invoices, and payouts.
All AI agent examples, by function · More Finance & Accounting playbooks