When a process is worth automating: the rule of three and automation payback

The first time you do a task, the second time you notice it, the third time you automate it or at least write it down. How to work out payback and launch automation safely.

6 min read

In this article
  1. The rule of three
  2. Payback: one formula
  3. How to automate safely: eight principles from our projects
  4. Our projects
  5. What to do tomorrow
  6. Frequently asked questions

Automating too early is expensive: you code a process that is still changing, then pay to rewrite it. Automating too late is expensive too: for months you pay in staff time for work a program could do. This article is about recognising the right moment, working out whether automation will pay off, and launching it without breaking what already works.

If you are still looking for what to automate in the first place, start with the one-hour audit — this article is about the next step.

The rule of three

  • The first time, you just do the task. You do not know yet whether it will come back, and you do not need to.
  • The second time, you notice: "this again". That is the signal to start writing the steps down.
  • The third time, you automate it — or at least write the procedure down so that someone else could do it.

Why not straight away? A one-off task may never return, and automating it the first time means coding a guess. By the second time you can see what repeats and what was a coincidence. By the third time the process has a shape — and only a process with a shape is worth turning into code.

"At least write it down" is not a consolation prize; it is a key part of the rule. A written procedure is half the automation: you can hand it to an employee, and later, almost unchanged, to a developer as a software brief. If you cannot write the procedure down because every time you decide "depending on the situation", there is nothing to automate yet.

A good procedure answers five questions: what starts it, where the data comes from, which steps happen in which order, what the result should be, and what to do if something goes wrong. The answer to that last question later becomes the automation's error-handling rules.

The rule also does not apply while a process still changes every few weeks: every change to the process would mean a change to the code. Stabilise the procedure first, automate later.

Payback: one formula

The maths is simple:

  • monthly cost of manual work = time per run × runs per month × hourly rate;
  • payback period = cost of automation ÷ monthly cost of manual work.

A hypothetical example: a task takes 40 minutes, is done 12 times a month, and an hour costs €30. That is 8 hours and €240 a month. An automation pays for itself in as many months as its quote is multiples of that €240: a quote equal to four months of savings pays back in 4 months.

The formula only counts time. Add three things that often decide the matter:

  • The cost of mistakes. When hundreds of rows are moved by hand, mistakes happen. What does one cost — a missed order, a wrong price, an unhappy customer?
  • Scale. If the process grows with the business — more products, more orders — the manual work grows with it, while the cost of automation stays the same.
  • Maintenance. Systems change: a supplier changes their file format, a platform changes its API. The automation will occasionally need fixes; budget for that up front.

How to automate safely: eight principles from our projects

Automation that occasionally fails silently is worse than manual work: the mistake repeats across thousands of rows and nobody sees it. That is why we build larger automations on the same principles every time.

  1. Dry run first. The first runs change nothing: the program goes all the way through and shows what it would have done — a draft. Only after a person has reviewed the result is live mode switched on.
  2. A row-by-row report after every run. An Excel file in which every row has a status: done, skipped, or error with a reason. The file goes back to a person — for example as a Telegram message — so nobody has to log into a server and read logs. The report matters even when everything worked: it proves that it did and shows what was skipped. We wrote separately about how Telegram becomes the control panel for this kind of automation.
  3. Interrupted work resumes where it stopped. If the connection drops or the server restarts halfway through, the next run does not start over and does nothing twice.
  4. Stop after several errors in a row. A single error is usually a problem with one row: it is flagged in the report and the work continues. Several errors in a row signal a systemic problem (a changed format, a broken login), and carrying on would mean corrupting data. The program stops and notifies a person.
  5. Randomised pacing. Pauses of varying length between actions keep the job within the limits of the systems it works with.
  6. A person approves risky steps. Anything that cannot be undone — bulk changes, messages to customers — runs only after a person confirms it.
  7. Handover with instructions. Along with the automation, we hand over instructions for the operator in their own language: how to run it, how to read the report, what to do when the program stops. The automation must not depend on one developer's phone.
  8. A service on a server, not a program on someone's laptop. The automation runs as a service on a Linux server: if it crashes, it restarts itself, and the logs show what happened and when.

None of these principles makes the automation faster. They make it something you can trust — and something that people other than its author can look after.

Our projects

Two clients we can name:

  • Bonideco.lt — we automated several large, constantly recurring processes. Technologies: Python, Telegram Bot API, Google Sheets, REST API, Excel reports, Linux server (systemd).
  • Triovendi — we automated recurring processes. Technologies: Node.js, Playwright, XML and JSON data feeds, Excel reports.

Automation built for one private client contributed to €137,000 in profit growth.

The price depends on how many systems are connected and how many exceptions the process has: a simple workflow is a small job, an integration across several systems or a large system a bigger one. We send an estimate within 24 hours, and a project takes 1–4 weeks. More on the automation service page.

What to do tomorrow

  1. Write down which tasks you have already done for the third time this month.
  2. For one of them, write out the steps so that someone else could follow them without asking questions.
  3. Do the maths: time × runs per month × hourly rate — and compare it with the cost of automation.

Frequently asked questions

What if a process repeats, but a little differently each time?

Automate the stable part and leave the variable part to a person: the program prepares, the person approves. It is the same principle as approving risky steps.

Doesn't a dry run make the project longer?

A little, but it is the cheapest way to see mistakes before they touch real data. Fixing a draft is easy; restoring thousands of records that have already been changed is not.

What happens when the automation stops?

You get a message with the reason and a report showing which rows have already been processed. Once the cause is fixed, the work resumes from where it stopped — not from the beginning.

More posts

All posts