✏️Prompts

AI Cash Flow Forecasting: Building a 13-Week Forecast You Can Trust

How AI speeds up building and updating a 13-week cash flow forecast.

Sketch of a calendar, a wavy line chart on a whiteboard and coins on a desk

A 13-week cash flow forecast shows, week by week, what cash will come in from customers and go out to suppliers, payroll, rent, taxes and debt. AI makes it faster to build and update: it can turn your receivables and payables exports into weekly timing, learn how late each customer usually pays, and compare last week's forecast with what actually happened. The judgment calls, such as which payments to delay or when to draw on the credit line, stay with the controller and CFO.

What goes into the forecast

LineSourceHow AI helps
Customer receiptsOpen AR aging and expected new invoicesPlaces each invoice in the week it will most likely be paid, based on each customer's past payment timing
Supplier paymentsOpen AP and planned purchasesPlaces bills by due date and your usual payment run days
PayrollPayroll calendar and recent payroll totalsAdds each pay date, including taxes and benefits
Fixed paymentsRent, loans, leases, insurance, taxesLists them from a schedule you maintain
Opening cashBank balancesNone; take this from the bank, not from AI

Step 1: Learn how customers actually pay

Prompt
Attached is twelve months of paid invoices with customer, invoice date, due date, payment date and amount. For each customer with more than five invoices, calculate the average number of days paid after the due date, and the range. List customers who pay more than 15 days late on average, sorted by total amount. Show your calculations.

Step 2: Build the weekly forecast

Prompt
Using the attached open AR aging, open AP, payroll calendar and fixed payments schedule, build a 13-week cash forecast starting Monday 23 November. Place each open invoice in the week it is expected to be paid, using each customer's average days late from the "Payment history" tab, or the due date if a customer has no history. Place bills on the Thursday payment run after their due date. Start with an opening balance of $1,240,000. Show weekly receipts, payments, net flow and closing cash, and flag any week where closing cash falls below $400,000. Use formulas, not typed values.

Step 3: Compare forecast with actual every week

The forecast improves when you check it. Each Monday, compare last week's forecast with what the bank shows, and ask for the reasons for any difference above your threshold, such as a large customer paying late or an unplanned purchase. Over a few months, this shows where your assumptions are wrong.

Where this breaks

Limits to plan around

Payment history predicts the usual, not the unusual. A customer in financial difficulty, a disputed invoice or a new contract with different terms will not show in the history. The forecast also depends on complete AP: bills sitting in someone's inbox will not appear. Take opening cash from the bank, review the largest receipts with the people who manage those customers, and treat the forecast as a planning tool, not a guarantee.

A weekly routine

  1. Monday morning: refresh AR, AP and bank balances, and rerun the forecast.
  2. Monday midday: compare last week's forecast with actual and note the reasons for differences.
  3. Tuesday: review the lowest-cash weeks with the CFO and agree any actions.

Free playbook

Cash Forecasting Automation Playbook

How finance teams are automating cash forecasting: forecasts based on payment history, bank feed integration and scenario modeling.

This is an independent guide, and no vendor reviewed or paid for it.

Example figures in the prompts are illustrative.

Related Articles