How to Write an SOP an AI System Can Follow

A step-by-step template for writing SOPs that people and AI systems can both follow: triggers, inputs, rules, exceptions, outputs and owners.

Author
QILabs
Published
Reading time
5 min
Category
Operations

Most standard operating procedures describe what a skilled person does by feel: "check it looks right", "use your judgment", "escalate if needed". A new hire can muddle through that. An AI system cannot. It needs what a good new hire needs: when to start, what is available, what to do, and when to stop and ask.

Writing the SOP so a machine can follow it also makes it better for people. This guide shows what changes, gives you a nine-part template, and shows how to test it before anything is built.

What changes when AI is a reader

  • Triggers are explicit. "When a new order arrives" beats "as orders come in".
  • Inputs are named. Which system, which field, which format.
  • Rules use thresholds, not adjectives. "Larger than 2 percent" beats "significantly different".
  • Exceptions have a path. Who gets it, how fast, with what information.
  • Outputs are defined. Format, destination and who sees it.
  • One owner is named. Someone responsible for keeping it true.

The nine-part template

1. Name, owner, version, last reviewed
2. Purpose            One sentence: what this achieves and why
3. Trigger            What starts it (event, schedule, request)
4. Inputs             Where each comes from, in what format
5. Steps              Numbered, one action per step
6. Decision rules     If / then, with numbers and named values
7. Exceptions         What counts as unusual, who handles it, how fast
8. Output             Format, destination, who is told
9. Checks and metrics How you know it worked: errors, time, volume

Use it for every process you plan to automate, and for those you do not. It is a good SOP for people, too.

Before and after

Before (vague)

Check the invoice looks right and approve it.

After (usable by a person or a system)

  1. Match supplier name, PO number and invoice total to the purchase order record in the finance system.
  2. If all three match, mark the invoice "ready for approval" and send it to the approver for its cost centre.
  3. If the total differs from the PO by more than your agreed tolerance (for example 2 percent), send it to the finance lead with the difference shown. Do not mark it ready.
  4. If there is no matching PO, send it to the requester to confirm. Do not approve.

The second version says what to compare, what counts as a match, and what to do when it does not. It also says what not to do, which is what protects you.

How to write it

  1. Sit with the people who do the work. Ask them to walk through a real case, not describe the ideal one.
  2. Ask "what do you do when…?" Out loud, for every step. The answers hold the hidden rules.
  3. Write what actually happens first. Then decide what should happen. Do not document an imaginary process.
  4. Turn adjectives into numbers. If you cannot, that is the part that needs a person.
  5. Name the exceptions. The unusual cases often cause most of the trouble.

Test it before you build anything

Give the SOP to someone who has never done the task and ask them to follow it on five to ten real past cases. Compare their results with what happened. Every mismatch is a missing rule.

You can run the same test with an AI system, using the SOP as its instructions and past cases as the input. Treat a mismatch as a gap in the SOP, not a failure of the system.

Keep it alive

  • Give it one owner and a review date
  • Keep a change log: what changed, when, who approved
  • Link it to the metrics you track
  • Store it in one place, so there is only one version

Changes to the rules of an automated process should be approved by the owner. See the decisions to keep with a person.

Common mistakes

  • Adjectives instead of thresholds. "Quickly", "appropriate", "if needed"
  • Hidden knowledge. The step only one person knows
  • Steps that bundle several actions. Split them
  • No exception path. The system has nowhere to send the odd case
  • Five copies in five places. Nobody knows which is current

Once written, the same SOP feeds a clean handoff between people and systems.

Need a hand turning a process into an SOP?

Bring one process and we will map it with you, find the missing rules and show what is ready to automate. Book a 20-minute call.

Frequently asked questions

Does an AI system need a different SOP from people?

Not a different one, but a more precise one. Explicit triggers, thresholds and exception paths help people as much as systems.

How long should an SOP be?

As long as it takes to cover the nine parts for one process, and no longer. If it runs past a few pages, the process probably needs splitting.

Can AI help write the SOP?

Yes. It can draft from notes, recordings or tickets. Someone who does the work should check every rule, because a draft that sounds right can still be wrong.

Which processes should we document first?

Start with frequent, rule-based processes that cost the most time. Our scoring method helps you choose.

Next step

Book a 20-minute call.

Bring one process. We will map it with you and show where agents prepare and where your people sign off.