EnrolPilot: What Building Payment Agents at Razorpay Builders Day Taught Me
2026-11-23 · 3 min read
The problem
At CodeMyFYP Academy, a lot of revenue leaks out in two places: leads who show interest but never get a follow-up call, and students whose fee payment fails and who never try again.
At Razorpay Builders Day, I built EnrolPilot on Razorpay's Agent Studio: a team of agents that calls leads, sends official payment links over WhatsApp, email and SMS, recovers failed payments, and escalates problems to a human. It was selected for demo.
Split the work
Instead of one agent that does everything, EnrolPilot uses smaller agents with narrow jobs:
- a lead agent that calls and qualifies interested students,
- a payment recovery agent that follows up when a payment fails,
- an insights agent that summarises what happened.
Smaller jobs mean fewer mistakes and easier debugging.
Write the "never" list first
In India, people are rightly scared of payment calls. An agent near money has to earn trust in the first 10 seconds. Before writing any prompt, I wrote what the agent must never do:
- Never ask for an OTP, card number, PIN or bank details. Not "for verification". Never.
- Never collect money itself. It only sends an official payment link.
- On a failed payment, send a fresh link — never ask the customer to "try another way".
- Never promise a discount, refund or date that isn't backed by a tool.
- Hand off to a human fast when it's confused or the customer is upset.
- Log every call and every link.
Plan for tool failures
Payment links expire. Messages don't deliver. APIs time out. A demo shows the happy path; production is everything else. The agent has to notice a failure and retry safely rather than pretend it worked.
What I learned
Most agent tutorials teach you how to make an agent do more. Very few teach you how to make it fail safely. The interesting engineering in EnrolPilot was not the voice or the prompt — it was the boundaries, the handoffs and the logs.
EnrolPilot goes live for CodeMyFYP Academy once the payment account's KYC is complete.