Past-due invoices: an AR aging watchlist that drafts the nudge, not the threat

You pay contractors every week. Your clients pay you in 30, 45, sometimes 60 days. The gap is your cash, and nobody on the team owns the invoice that is 12 days late until it is 40 days late.

This is a good job for an agent, with one condition: it drafts, a person sends. Here is the minimum build.

Start with one table

Pull open invoices from your billing or accounting system, not the ATS. One row per invoice:

columnwhy it is there
invoice_id, client_idthe join keys
invoice_date, due_dateterms differ by client, so store the due date, do not compute it
amount_openpartial payments happen
ap_contact, ap_emailwho actually pays, which is rarely the hiring manager
dispute_flagset by a human, read by the agent
last_nudge_at, nudge_countso the agent never repeats itself
owner_user_idthe named person who gets the escalation

The identity problem from one contractor, four systems applies here too: map the billing system's client ID to the ATS company record once, and keep the mapping in a table you can read.

Rules, written down

Keep the rules in config, not in a prompt. A first set:

  1. Due in 3 days, no payment: no action. Log it.
  2. 1 to 7 days past due: draft a short reminder to the AP contact with the invoice attached.
  3. 8 to 21 days past due: draft a second note and copy the account owner.
  4. Over 21 days, or nudge_count of 2: no more drafts. Put it on the owner's exceptions list.
  5. dispute_flag is set: the agent does nothing but report it.

The agent never changes a due date, writes off a balance or mentions pausing a contractor's assignment. Those are commercial decisions.

Check the timesheet before you chase

The most common reason a client will not pay is a line they never approved. Before drafting a nudge, the agent checks that every timesheet behind the invoice shows an approval. If one does not, the draft is not a payment reminder. It is a request to approve the hours, and it goes to the approver, not AP. That one check removes a lot of awkward emails.

The approval step

Each draft lands in a queue with the invoice, the history of earlier nudges and the rule that fired. A person edits and sends it, or discards it. The pattern is the same as the approval queue for agent-drafted outreach. Log the draft, the human who approved it and the send time. If a client later says they were never contacted, you can show the record.

What to measure

Track days sales outstanding by client, and the share of invoices paid within 7 days of the first nudge. Run the agent in shadow mode for two billing cycles first: it produces drafts, nobody sends them, and you compare against what your collector actually did.

Not yet, if

  • You have fewer than about 30 open invoices a month. A spreadsheet and a calendar reminder will do.
  • Most of your clients pay through a VMS or an MSP portal. Payment status lives there, and the first job is getting that data out.
  • Your billing data is rekeyed by hand after each pay run. Fix the feed before you automate the chase.

If you want a second opinion on whether a collections agent would pay back at your firm, that is the kind of question a workflow assessment answers in a few days of senior engineering time.