AWS Builder Center

Recovery Copilot: what failed payments actually cost, and why I started with rules

I built a rule-based recovery copilot for failed payments for the Razorpay AI Buildathon 2026. It taught me that the expensive part of a failed payment is not the retry, it is everything around it.

2nd-year AI & ML student building applied AI
I built Recovery Copilot for the Razorpay AI Buildathon 2026. It's a dashboard that helps a business recover failed payments. Not with a complicated model — with rules.

The problem behind the dashboard

A failed payment looks like a small technical event: a card declined, a bank said no, a retry didn't go through. But for the business on the other side, that one failed payment is lost revenue, a customer who might not come back, and someone on support having to chase it down. Multiply that across every failed payment in a month and it becomes real money and real time, quietly leaking out.
That was the part that stuck with me while I was building it. We talk a lot about getting new customers and very little about the ones we lose at the checkout for reasons that have nothing to do with whether they wanted to pay.

Why rules first

So I kept the approach deliberately simple. The copilot is rule-based. It looks at what happened with a failed payment and suggests the next step — when to retry, what to check, what to tell the customer — based on clear rules, not a black box. A business owner should be able to read the rule and understand why the copilot is suggesting something. If the person using the tool can't follow its reasoning, they won't trust it when real money is on the line.
I know the temptation is to reach for a machine learning model first. I'm an AI & ML student, so it's my instinct too. But for this problem, rules were the right starting point. They are transparent, they are easy to change when you learn something new, and they fail in ways you can see and fix. Over-engineering the recovery would have made the tool harder to trust, not better.

A few things I took away

  • The cost of a failed payment is mostly not the payment itself. It's the customer you lose, the support time, and the revenue that never comes back.
  • A simple tool people trust beats a clever one they don't. The rules-first approach meant every suggestion had a reason I could explain.
  • Building for a real business problem is different from building for a demo. The question that mattered wasn't "is this smart?" but "would a business actually use this on a Monday morning?"
I started Kemono.in while studying, so I've had to think about what it costs when a payment doesn't go through — not as an abstract problem, but as a founder. That's probably why this one felt personal. I'd be curious to hear from anyone who has dealt with failed payments on their own product: what actually worked to win those customers back?
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article