Automate the busywork

How to Document a Process So a Tool Can Run It

To document a process so a tool can run it, write each step with an exact trigger, exact inputs, a clear action and a definite output, and spell out every decision as a rule. Documentation written for people can lean on common sense. Documentation written for a machine cannot, so every assumption has to be stated.

The useful side effect is that a process described this precisely is also easier for new teammates to follow. You end up with one document that serves both purposes.

Start with the trigger and the finish line

Open a document and write two lines at the top. The first says what starts the process, in terms a system could detect: “A new row appears in the Orders sheet,” not “when an order comes in.” The second says what counts as done: “The customer has received a confirmation and the order status reads Shipped.”

If you cannot phrase the start as something observable, the process is not ready to automate. Work out what actually signals the beginning, which might be a form submission, an email to a certain address or a date.

Add the frequency and the typical volume. A process that runs five times a day needs a different design than one that runs five hundred times.

Number the steps and keep them atomic

Write the steps as a numbered list. Each step should contain one action and begin with a verb. “Look up the customer in the CRM” is a good step. “Handle the customer” is not.

If a step contains the word “and,” it is probably two steps. Split it. Atomic steps are easier to test and easier to replace when a tool changes.

For each step, add four small fields.

A table can hold this, but a plain list under each step works too. Keep the wording consistent so patterns are visible.

Turn judgment calls into rules

The hardest part is the places where a person currently uses their judgment. “If it looks urgent, escalate” is useless to a tool. Ask the person to explain why they call something urgent, and write down the signals: the customer mentions a deadline, the order value is above a certain amount, the word “cancel” appears.

Often you will find that the judgment is partly a rule and partly a feeling. Write down the rule part. Leave the feeling part as a step that a person performs.

State each decision in the form “If X, then Y, otherwise Z.” Include the “otherwise.” Missing else-branches cause most surprises when a process first runs by itself.

Record the exceptions

Every process has exceptions that people handle without thinking. A customer without an email address. An order that ships to a different country. A field that has been left blank. Ask the people who do the work, “What goes wrong most often?” and write down the answers.

For each exception, decide on one of three responses: handle it with a rule, send it to a person, or stop and flag it. Stopping and flagging is a perfectly good choice for rare cases, and it is much better than guessing.

A short example shows the idea. Suppose a rule says, “If the shipping country is the home country, use standard shipping.” The exception list adds, “If the country is missing, do not proceed; notify the order owner.” The tool now has a defined behavior for a case that would otherwise cause an error or a wrong shipment.

Do not try to list every exception on the first pass. Cover the three or four that occur most often, and add a catch-all rule for anything else: stop and notify the owner. Over the first weeks, the notifications themselves will teach you which exceptions deserve a proper rule.

Add the data dictionary

List the pieces of information that move through the process and describe each one: its name, its format, whether it is required and an example. A date might need to be in year-month-day order. A phone number might need to include a country code.

This small list prevents many bugs. Two systems often use different names or formats for the same thing, and the dictionary tells you where translation is required.

Include where each field is stored and which system is the source of truth. When two places disagree, everyone should know which one wins.

Name an owner and a review date

Every documented process needs a person responsible for it. The owner answers questions, approves changes and decides whether the document is still accurate.

Put a review date at the top, perhaps every quarter. Processes drift, tools update, and documentation that nobody revisits turns into misinformation. A date and a name keep it honest.

Also record how to turn the automation off. A clear off switch, along with the manual steps to fall back on, is the best safety net you can offer.

Check the document by acting it out

Before you build anything, hand the document to someone who does not know the process and ask them to follow it exactly, using sample data. Watch where they hesitate or ask questions. Each hesitation marks a missing detail.

Fix the document, then try again. When a stranger can complete the process using only the page, a tool can too.

Keep the language plain throughout. Avoid pronouns like “it” and “they” when a noun is clearer, and avoid words such as “soon,” “large” or “usually,” which a tool cannot interpret. Replace them with values: “within one hour,” “over a set amount,” “in most cases, and in these exceptions.” Plain, exact wording is the difference between a document that informs and one that can be built from.

Your next step

Choose one process and spend an hour writing it in this format: trigger, finish line, numbered atomic steps with inputs, outputs and owners, decision rules, exceptions and a data dictionary. Then test it on a colleague.

The finished document becomes the specification for your first automation, whether you build it yourself or hand it to someone else. It will also tell you honestly whether the process is stable enough to automate yet.