Resources
Why automations break (and how to keep them running)
Automations break because the world around them changes: websites, APIs, logins, and AI models. Ten maintenance habits that keep them running.
Picture it: the Monday report doesn't arrive. Nobody notices until a customer asks where their update is.
By then the automation has been failing quietly since Thursday, when a website moved a button.
If that sounds familiar, you're not alone. In a 2020 study by Forrester Consulting for Tricentis, 45% of firms with RPA programs dealt with bots breaking weekly or more often.
It isn't getting easier. In Camunda's 2025 survey of 800 large organizations, the average process touched about 50 endpoints, and 77% reported a higher risk of core processes failing.
The good news is that most breakage has the same few causes. You can design for them, and a handful of maintenance habits keeps an automation healthy.
Most breakage starts outside your code
Automations rarely break because someone changed the automation. They break because the world around it moved.
Websites change their screens. A redesign, a renamed field, or a new cookie banner is enough. Anything that reads a page by its layout feels every change the site's owner makes.
APIs retire. Even stable APIs have end dates. Salesforce retired API versions 21.0 to 30.0 in Summer '25, and calls to them now get "410 Gone".
Logins change. Sites add two-factor codes, shorten sessions, or retire old ways of signing in. Microsoft plans to switch off basic authentication for sending mail through Exchange Online by default from December 2026, so scripts that send mail the old way will start to fail.
AI models get switched off. Anthropic retired Claude Sonnet 3.7 on February 19, 2026. OpenAI shut down its Assistants API on August 26, 2026, and anything built on it had to move first.
The inputs drift. A supplier changes its invoice layout, or a customer starts sending scans instead of PDFs. Volume doubles at quarter-end.
People leave. The person who built the automation, and the only one who knew its quirks, takes another job.
None of these are bugs you can test away once. They're events you have to expect.
Ten habits that keep automations running
These are the habits we build in. You can apply them yourself.
1. Plain code first
Use ordinary, predictable code for every step that follows a rule. Save AI for steps that truly need judgment, like reading an unstructured document.
Treat each AI call as one step with tests and a fallback, never as the whole design.
2. Keep selectors in one place, with fallbacks
Selectors are how code finds a button or a field on a page. Keep them all in one file, each with a primary and one or two fallbacks.
When a site changes, you fix one line instead of hunting through the code.
3. Test against recordings
Save every page state your code depends on: the list, the empty list, the error, the two-factor prompt, and the expired session. Replay those recordings in tests on every change, offline.
Your tests then run the same way every time, without touching the live site.
4. Check the site before the run
Before each scheduled run, a read-only check signs in, loads the key pages, and confirms they still look the way the code expects. If something has drifted, you hear about it before the real run fails.
5. Make every write safe to repeat
Give each write a unique key and a dry-run mode. Re-running a failed batch should never post an invoice twice or submit a form twice.
This one habit turns most incidents from "clean up the mess" into "run it again".
6. Allow no silent drops
Every item should end in exactly one state: done, sent to a person with the reason, or skipped with the reason. Alert on any item that ends in none of them.
Silent drops are how an automation fails from Thursday to Monday without anyone knowing.
7. Give people a review queue
When the automation isn't sure, it shouldn't guess. It sends the item to a queue with the reason and the evidence, such as a screenshot or the source page, and a person decides.
8. Pin models and migrate early
Use exact model versions in production, never "latest", and watch each provider's deprecation page. Move at least 30 days before a retirement, and only after the new model scores as well as the old one on your own test samples.
Give every AI step a backup model.
9. Send a short daily digest
One message a day goes to the person who owns the process: runs done, items waiting for review, and open incidents. When all is well, it's three lines, and it keeps a person close enough to notice drift.
10. Have an incident routine
When something breaks, pause the affected writes and tell the people who depend on the output. Run a manual fallback if they need it today.
Then find the cause from screenshots and logs, fix it, and test the fix against your recordings. Re-run the failed items safely, and write down what happened and what changes.
What breaks, and what catches it
| What changes | What catches it | What limits the damage |
|---|---|---|
| A website's layout | The pre-run check | Fallback selectors, review queue |
| An API version | A run-failure alert | Pinned versions, a monthly changelog check |
| A login or two-factor method | The pre-run check, credential-expiry warnings | Accounts set up only for the automation |
| An AI model retirement | A deprecation watch | Migration gated on test scores, a backup model |
| Input layouts or volume | Exception-rate and volume alerts | Review queue, safe re-runs |
| The builder leaving | Nothing, unless it's written down | A runbook, tests, and code you own |
What to measure
Three numbers tell you whether an automation is healthy:
- Maintenance time per workflow per month. If it climbs, the design or the website is fighting you.
- Straight-through rate: the share of items completed with no human touch.
- Exception rate over time. A sudden jump often means something upstream changed.
Do it yourself, or have us do it
Everything above is doable in-house. If you have the engineers, you should consider it.
The hard part isn't knowing the habits. It's keeping them up every week, for every workflow, while the rest of the business wants your engineers' time.
That's why keeping it running is part of what we sell. The monthly fee covers hosting, monitoring, and fixes, and this playbook is how we do it.
Here's how we monitor and fix what we build.
If your current automations already break every week, start with rebuilding the ones that break most. If most of yours touch websites and spreadsheets, see how we move data between systems.
Written by Pyzen. Drafted with AI help, then checked against each tool's own documentation before publishing.
Next step
Bring us one process.
A free 30‑minute call. An honest answer, even if it isn’t us.