
AI Agents for Failed Payment Recovery and Dunning
A meaningful share of subscription churn is not a decision. It is an expired card and a retry schedule that gave up too early.
- Failed payments split into two groups that need opposite treatment: temporary declines worth retrying and hard declines that need a customer conversation.
- Response codes carry that distinction, and most dunning sequences ignore them entirely in favour of a fixed retry cadence.
- Retry timing matters more than retry count, since a retry at the wrong moment can also increase issuer scrutiny on the account.
- Recovered revenue rarely gets reported properly, so nobody knows whether the sequence is working.
- ChatFin reads the decline detail, sequences retries and outreach by reason, and reports recovery against the ledger.
Subscription businesses spend heavily to acquire customers and then lose a portion of them to expired cards, insufficient funds and issuer level blocks.
The standard response is a fixed dunning sequence: retry after three days, retry after seven, send two emails, cancel. That sequence treats an expired card and a temporary funding issue identically, which guarantees it handles both badly.
This page covers what decline responses actually tell you, why timing beats frequency, and how a governed agent can run recovery in a way finance can measure.

Two problems wearing the same jacket
A temporary decline means the payment method is valid and the attempt failed for a reason that may not persist. Retrying is reasonable and often works.
A hard decline means the method will not work again. Retrying it is not persistence, it is noise, and the only useful action is asking the customer to update the method.
Timing beats frequency
Retrying more often is the intuitive lever and usually the wrong one. Retries clustered together tend to fail together, because the underlying condition has not changed.
Spacing retries around plausible funding events, and avoiding the pattern of repeated rapid attempts, generally recovers more while creating less friction with issuers.
The other lever is the message. A dunning email that tells the customer exactly which method failed and links directly to updating it will outperform a generic payment failure notice by a wide margin.

The reason is in the response
The gateway returns a response code with every failure and the billing system usually ignores it, running the same retry cadence regardless. The information needed to treat a decline correctly arrives at the moment of failure and is discarded.
What the agent needs to see
Ledger detail from the billing system, plus decline and response codes taken from the source they arrive in, read through the API surface your ERP already exposes rather than the database.
What it should be allowed to do
Prepare a retry schedule and an outreach list and leave it for the AR manager to approve. Reading widely and writing narrowly is the line that keeps this safe.
That division matters more than which model sits underneath. An agent that can read decline and response codes, subscription and invoice records and customer contact history while posting only through the validated path a person uses gives you the coverage without handing over the ledger, and ChatFin works that way on every ERP it connects to.
What the agent runs
The agent classifies each failure by response, chooses a retry approach or an outreach approach, and drafts the customer message with the specific detail included.
It also watches for accounts that recover on their own, so the sequence stops rather than continuing to contact somebody who has already paid.
Classify the failure
Read the response detail and separate temporary declines from hard declines and ambiguous cases.
Choose the path
Retry with sensible spacing where the method may still work, or route to outreach where it will not.
Draft the outreach
Prepare a message naming the failed method and the action needed, for approval before sending.
Stop on recovery
Detect payment received and close the sequence rather than continuing to chase.

Reporting recovery honestly
Recovery rates are easy to overstate. Customers who would have paid anyway get counted as recoveries, and cancelled subscriptions get quietly excluded from the denominator.
Measuring against the ledger keeps the number honest: invoices failed, invoices recovered, days to recovery, and revenue permanently lost. Those four figures tell you whether the sequence works.
Classification and sequencing
Failure analysis, retry approach, drafted outreach, and a stop when the payment arrives.
Policy and tone
How many attempts, when to stop, when to involve a person, and what the customer message says.
Customer messages are approved before they send
Outreach about a failed payment reaches a paying customer at an awkward moment, so tone and timing matter commercially. Messages are drafted with the specific failed method named and approved before sending, and the sequence stops the moment payment arrives.
The record kept against failed payments is deliberately plain: the decline and response codes the agent read, the reasoning it applied, the draft it produced, what the AR manager changed, and the moment it posted. That is the trail an auditor asks for, and it is assembled while the work happens rather than reconstructed afterwards.
The wider argument for that design sits in governed write-back and a controller's guide to reviewing AI generated entries.
A is prepared, reviewed and approved before it posts, and every step is logged from the source document to the entry. retry schedule and an outreach list
How ChatFin runs recovery
Failures are classified from the response detail, retried with sensible spacing where the method may still work, and routed to outreach where it will not. Recovery is measured against the ledger rather than the billing platform, so the sequence can be judged honestly.
It connects to the billing system, the payment gateway and the ERP through the interfaces those systems already expose, which keeps the security review short and the setup measured in days rather than quarters.
Classify every failure
Temporary declines, hard declines and ambiguous responses separated from each other.
Choose retry or outreach
Spacing set around plausible funding events rather than a fixed three and seven day cadence.
Draft the specific message
Outreach naming the failed method and the action needed, prepared for approval.
Stop on recovery
Payment detected and the sequence closed rather than continuing to contact a paid customer.
A first run is usually read only against a period you have already closed, so you can compare what the agent found against what your team found before anything is trusted with a retry schedule and an outreach list.
Adding the workflow after this one costs no second integration, because NetSuite, SAP Business One, Acumatica and the other supported systems are already connected on the same terms.
A fixed retry cadence treats two different problems the same way and handles both badly.
ChatFin
Frequently Asked Questions
Does our billing platform not already do dunning?
Most do, on a fixed schedule with generic messaging. What is usually missing is treatment based on the actual decline response and outreach that names the specific method that failed. Those two changes carry most of the improvement.
Does the agent send emails to customers by itself?
It drafts them. Customer facing messages are approved before sending, and the sequence and tone stay under your control. Reading widely and writing narrowly applies to customer communication as much as to the ledger.
How do we know it is actually recovering revenue?
By measuring against the ledger rather than against the billing platform: invoices failed, invoices recovered, days to recovery and revenue permanently lost. Those figures make the sequence testable.
Treat failed payments by reason, not by calendar.
ChatFin classifies every failure from its response detail, retries where retrying can work, and drafts specific outreach where it cannot.
Recovery is reported against the ledger, so you can see whether the sequence is earning its place.
Book a DemoSee your failed payments classified by reason.
Bring a month of failed payments with their response detail. We will show the split by cause, the recommended path for each group, and the outreach drafted for approval.