⌂

Where to next?

  1. 01Home
  2. 02Work
  3. 03About
  4. 04Writing
  5. 05Résumé
  6. 06Contact

Writing / Article

Build it so it runs without you

How I build, test, log and monitor automations so they keep working after I hand them over.

Published
Nov 2026
Reading time
5 min read
Topic
Automation

Since August 2024 I've built more than 3,000 automated workflows for over 85 clients on Fiverr and Upwork. Custom API webhooks, n8n orchestration, AI agents and async data pipelines, some of them connected to crypto and fintech gateways.

The part that matters most isn't in that list. It's whether the workflow keeps running after I've moved on to the next one.

Done means it runs without me#

A demo run proves the happy path. Real work is mostly the other paths. A field arrives empty. An API times out. A webhook fires twice. A token expires on a weekend.

If I'm the only thing standing between a workflow and those days, I haven't built an automation. I've built a job for myself.

So every workflow I ship is tested, logged and monitored. Those three words carry most of the work. Here's how I approach each one.

Check what comes in#

Most failures start at the edge, with data the workflow didn't expect.

Before automation I spent four years shipping fintech: the frontend at SeCuWa, a self-custody banking product, and the payments backend at SentIt. Part of the frontend work was form validation. A form that checks its fields before it submits saves everyone downstream. A workflow should do the same.

So the first steps after a trigger are boring on purpose:

  • Confirm the fields I need exist and have the right type.
  • Normalise what can be normalised: trim spaces, lowercase emails, parse dates.
  • Reject what can't, with a clear reason, instead of passing it on.
  • Make the step safe to run twice. Webhooks retry, and the same event should never create two records.

Decide what happens when a step fails#

Every outside call fails eventually. The useful question is what happens next. For each step that talks to another service, I decide three things before I build it.

  1. Retry or not. A timeout is worth retrying. A rejected payload isn't. Retrying it only repeats the error.
  2. What a failure leaves behind. Half-finished work is worse than none. If step four fails, steps one to three shouldn't leave a mess someone has to find by hand.
  3. Who hears about it. A failure nobody sees is the worst kind.

n8n has error workflows and per-step retry settings for exactly this. They're worth setting on purpose rather than trusting the defaults.

A workflow isn't done when it works once. It's done when it works without me.

Write everything down#

At SentIt I designed database schemas for ledgers. A ledger doesn't trust memory. Every movement is recorded, so you can rebuild what happened from the record alone.

I log workflows the same way. Each run should answer these questions without me in the room:

  • What triggered it, and with what input?
  • Which steps ran, and which were skipped?
  • What did each outside service say back?
  • How did it end: success, a handled failure, or an unhandled one?

Logs are for the person debugging at the worst moment, and that's often not me. I write them for that person. Plain messages. One ID that ties every line of a run together. Nothing secret in them: no tokens, no full account details.

Make it tell you#

Logging tells you what happened if you go and look. Monitoring means you don't have to look.

I want a workflow to speak up in two cases. The first is when it fails in a way it couldn't handle. The second is when it goes quiet: a scheduled job that didn't run, or a webhook that usually fires all day and hasn't fired at all. Silence is a failure too, and it's the one people miss.

An alert should say what broke, for which run, and where to look. If it only says “error”, it's noise.

Test the bad day#

Before handover I run a workflow through the cases I designed for, on purpose:

  • the normal input,
  • empty and malformed input,
  • the same event twice,
  • a service further down the line that's slow or down,
  • an expired or wrong credential.

If the workflow handles each one the way I planned, and the log shows it clearly, it's ready. If I have to explain what happened from memory, it isn't.

An illustrative workflow#

Client work stays private, so this is the shape most of these ideas take together, not an export of a real workflow.

IllustrativeNot a client workflow
trigger  webhook: new order
check    required fields?
         no  → log "rejected", stop
dedupe   seen this event id?
         yes → log "duplicate", stop
step     create the record
         retry on timeout, not on 4xx
step     send the confirmation
         retry on timeout, not on 4xx
on fail  log run id, step, response
         alert the owner
always   log run id and outcome
watch    no orders for a day?
         alert "gone quiet"

Before I hand a workflow over#

The short version. I go through it before anything leaves my hands.

  1. Inputs are checked at the start, and bad ones are rejected with a clear reason.
  2. Running the same event twice is safe.
  3. Every outside call has a decision: retry it, or fail cleanly.
  4. A failure doesn't leave half-finished work behind.
  5. Every run leaves a log a stranger could follow.
  6. Failures and silences both raise an alert.
  7. I've tested the bad day, not only the good one.
  8. Someone other than me knows where the logs and alerts go.

The best thing anyone can say about an automation is that they never think about it. It runs. It leaves a trail. When something goes wrong, it says so clearly. That's what I mean by built, tested and monitored, whether it's one workflow or three thousand.