5 min read
Automated Tasks: Make Each One Leave a Receipt Before You Trust It
The most common mistake with automated tasks is trusting them because nothing has gone wrong yet. Here are seven steps that make every task prove it ran, in the order I would do them.
By Mario Lucas, founder of Utomat
The mistake I see most is judging an automated task by the lack of complaints. Silence feels like success. It is also exactly what a broken task sounds like, because a task that has stopped running makes no noise at all.
So the fix is not a better tool. The fix is making every task leave proof behind. Here are seven steps, in the order I would do them. They apply whether you call it an automated task, an automation task or automatic tasks. The words differ. The failure mode is the same.
1. Write the finished state as something you can look at
Before you build anything, write one sentence that describes the world after the task has run. Not "follow up with leads." Something like "the lead has a text and an email in their inbox, and my sheet has a row for them marked contacted."
If you cannot point at the result, you cannot check the task later. A vague goal makes automated task creation easy and verification impossible.
- Name the thing that changes (a row, a message, a file, a calendar slot).
- Name where you would look to see it.
- If the answer is "in my head," the task is not ready to build.
2. Pick the one place the receipt lands
Every run should write one line somewhere you already look. A spreadsheet tab, a Slack channel or a database table all work. I like a plain table with four columns: when it ran, what it touched, whether it worked, and what it did.
Do not scatter receipts across email notifications. You will mute them within a week. One boring log you actually open beats ten alerts you ignore.
When I run n8n on my own server, the receipt is the first thing I add, before the clever part. It takes ten minutes, and it has saved me far more than that.
3. Replay it on old, real cases before it touches a live one
Pull a handful of things that already happened. Last week's enquiries, last month's invoices, whatever the task would have handled. Feed them through and compare the output with what a person actually did.
This is where you learn that your "simple" rule falls over the moment a customer types their phone number with spaces in it. Better to find that out on old data than on a live customer.
- Pick cases that include at least one ugly one.
- Compare the output with the real outcome, line by line.
- Fix the task, then replay the same cases again.
4. Add a dry-run switch that skips only the outward step
A dry run does everything except the final action. It reads, decides and logs, but it does not send, charge, delete or post. Then you read the receipt log and ask yourself whether you would have been happy with each action.
Run it dry for a few days. Anything that sends a message to a customer deserves this, and so does anything that spends money. If the message is a text or marketing email, read the FTC guide to the CAN-SPAM Act during this phase. The rules on opt-outs and sender identity apply to automated email just as they do to email you send by hand.
5. Make it safe to run twice
Tasks get triggered twice. A server restarts, a webhook retries, or you click the button again while testing. If a second run sends a second text or creates a second invoice, the task is fragile.
The fix is a check at the start: has this exact item already been handled? Store an ID for each thing you process, and skip any ID you have already seen. It is dull work. It is also the difference between an automate-task project that survives and one that embarrasses you.
- Use a stable ID from the source, such as an order number or message ID.
- Check the receipt log before acting, not after.
- Test it by triggering the same item twice on purpose.
6. Set a silence alarm, not just an error alarm
Most people alert on errors. That misses the worst case, which is the task that never started. An update can switch off a schedule, a credential can expire, and a trigger can quietly come loose.
So alert on absence. If the receipt log has no new line by the time one should be there, send yourself a message. A simple scheduled check that reads the log and compares the time does the job. Scheduled jobs have been a staple of computing for decades. The old cron utility works on the same idea: a clock fires a command, and nothing watches to see that it fired.
The quiet version of this has cost me before. A job looked healthy for weeks, and a missing message was the first sign anything was wrong. Now every job I care about sends a daily heartbeat, and a missing one is the alarm.
7. Book a fixed day to read the receipts, and a day to retire the task
Pick one slot a month and read the log for ten minutes. You are looking for odd patterns. A task that fires far more often than expected, or far less, or keeps failing on the same kind of input.
Also decide up front when the task dies. If the process it serves changes, or the tool it connects to gets replaced, the task goes. Old automations nobody reads are how a business ends up with a tool doing something nobody remembers asking for.
If you self-host, put this day next to your update and backup routine. Running n8n on a VPS is cheap and reliable, but somebody has to own the updates, backups and secrets. That person should own the receipts too. The n8n documentation covers the building blocks for error handling and logging if you want to see how it works there.
What this costs you
About an afternoon per task, most of it in steps three and four. It feels slow next to clicking "activate." It is still faster than discovering a month from now that your lead follow-up stopped on a Tuesday.
If your first task is the boring one, following up with a new lead within minutes, you are in the right place. That one pays for itself more often than a chatbot does.
If you want a hand setting up your first few tasks with receipts built in, get in touch. I am happy to talk it through.
---
*Written by Mario Lucas. Mario runs Utomat, an automation studio that builds AI voice agents and workflow automation for small businesses.*
Related reading: Automating a Business? Pick One Source of Truth Before You Connect Anything.
Related reading: Automating a Business? Build It So You Can Leave Any Tool.
Related reading: Automation Tool: Feed It Five Messy Inputs Before You Pay for It.
Related reading: How to Automate Your Business: Decide Who Builds It Before You Decide What.