Automation · Workflows

Workflow Documentation Patterns

Undocumented automation is a liability with a countdown: it runs fine until it breaks, and then no one remembers what it does or why. Documentation is what makes it survivable.

John Kihiu12 min read

Automation accumulates. A team ships dozens of workflows over a couple of years, the people who built them move on, and what remains is a set of critical background processes nobody fully understands. The first time one breaks, the cost of that missing documentation arrives all at once. A little writing at build time is what prevents the archaeology later.

Document the essentials

You do not need a manual — you need the handful of facts someone will desperately want when a workflow breaks at an inconvenient hour:

Keep docs next to the workflow

Documentation drifts from reality the further it lives from the thing it describes. Keep it as close to the workflow as the platform allows — a description field on the workflow, a README beside the exported definition in git, a comment on complex steps. When the docs travel with the definition, updating them is part of changing the workflow, not a separate task everyone forgets.

Explain the why, not the what

The steps are visible in the workflow itself; what is invisible is the reasoning. Why does this run at 2am? Why is this customer excluded? Why the odd retry count? Those decisions have reasons that are obvious now and unrecoverable in a year. Documenting the why behind non-obvious choices is worth more than restating the steps a reader can already see.

A workflow's best doc is a runbook for when it fails

The moment documentation earns its keep is at 2am when something is broken. A short runbook — what this does, how to tell if it is failing, how to safely retry or pause it, who to call — is the highest-value page you can write. Aim it at the tired on-call engineer, not the curious new hire.

Document automation for the moment it breaks, not the moment you build it: purpose, trigger, systems, failure handling, and owner, kept beside the workflow and focused on the reasoning and the recovery. That short investment is the difference between a five-minute fix and a day of reverse-engineering your own past decisions.

John Kihiu
Acumatica ERP Developer · Laravel Engineer

Independent software engineer in Nairobi specialising in Acumatica customisations, Laravel backends, and tax fiscalisation integrations across East and Southern Africa.