Anand Sukumaran

Startup Founder, Software Engineer, Abstract thinker
Co-founder & CTO @ Engagespot (Techstars NYC '24)

I built an AI agent in Javascript to pay my bills and place orders just by talking to it!

Feb 18, 2025
facebook-white sharing button
twitter-white sharing button
email-white sharing button
whatsapp-white sharing button
sharethis-white sharing button

I built an AI agent in Javascript to pay my bills and place orders just by talking to it! 🚀

Sometimes, I feel too lazy to log in to a website and pay bills manually. If someone could do it for me, that would be great. So, I built an AI agent to handle it!

Now, I can simply say- Hey, please pay the electricity bill. The due date is near. I’ll pay using my VISA credit card.

🔹 Agent: “Sure! Let me open the website and do it for you!”

I use a secondary laptop for tasks like these, so the agent runs on that device while I continue working on my main laptop.

How does it work?

When sensitive data like my credit card number is required, the agent asks me for input. I’ve added Text-to-Speech (TTS) so it doesn’t just display text but actually calls out:

🔹 Agent: “Anand, I need you to enter your credit card number.” I manually enter it (though I could automate this too, but for security reasons, I didn’t).

The agent then moves to the payment confirmation page, clicks “Confirm,” and asks for the OTP sent to my mobile.

🔹 Agent: “I need your OTP to confirm the payment” Instead of typing it, I use Speech-to-Text (STT) and simply say: “My OTP is 792649.”

And finally, the agent confirms: “I have successfully paid the bill of Rs. XXX. Do you want me to save a screenshot of the confirmation page?”

And that’s it - done! AI is truly becoming my personal assistant! 🚀

How it works? (Technical details)

Tools Used

🔹 Time taken to build this - Around 3 hours.

I will share the source code. But I haven’t structured it properly yet, I’ll publish it when I get the time!

facebook-white sharing button
twitter-white sharing button
email-white sharing button
whatsapp-white sharing button
sharethis-white sharing button