# Why the automation you paid for keeps breaking

> Nearly every flaky script breaks for the same architectural reason, and one question exposes it.

Written 2026-08-30 by Rahul Madawalkar.

A catering company I worked with paid a developer to automate quoting on an events marketplace. Good idea in theory: events go live, caterers quote, and fast accurate quotes usually win the booking.

Instead, he got a script that logged into the supplier portal in a headless browser and clicked through pages like a person. Every time the marketplace shipped a small UI update, the bot broke. He'd ring the developer, wait days for a patch, and go right back to quoting by hand.

## Browser scripts vs talking to the backend

When you automate by driving a browser (clicking buttons, waiting on spinners, scraping text off the DOM), your script only works as long as the webpage looks identical to the day you wrote it.

The cleaner approach is skipping the webpage and calling the same API requests the page makes underneath. Every modern web app is just a UI talking to backend endpoints: log in, fetch events, submit quote.

Companies tweak their UI layout every couple of weeks and never warn third-party scrapers. Backend API endpoints change much less often because their own frontend and mobile apps depend on them too.

## How we fixed it

There was no public API on that marketplace, so I ran the site's traffic through Burp Suite to trace how it logged in via Cognito and which endpoints fetched events and posted quotes. Then I rebuilt the whole job directly against those HTTP calls with zero browser overhead.

Now it signs in, pulls all open events at once, filters against his guest count and budget rules, calculates prices from his template, and submits or hides them in batches.

A full run dropped from two or three hours down to about five seconds. Better yet, the marketplace can overhaul their buttons tomorrow and his workflow keeps chugging along untouched.

## One question to ask your developer

Ask whoever built your automation: 'Does this open a browser?'

If they mention Puppeteer, Playwright, Selenium, or scraping HTML elements, expect recurring maintenance bills forever. Browser scripts make sense for one-off jobs or sites with zero underlying API, sure, but running one every morning is asking for headaches.

I wrote up the full breakdown, including the numbers behind it, on the case studies page.

The case study behind this: https://imrahul.fyi/work/marketplace-auto-quoting/index.md

Book a 30-minute call: https://cal.com/rahul.fyi/30min
