Back to Automation

Where Should the AI Step Go?

Where Should the AI Step Go?
AI Tutorials Team 9 February 2026

The temptation is to put AI at the centre of a workflow. The better design puts it in one place, doing the one thing that could not be expressed as a rule.

What should the AI step do?

  • Classify. Which category something belongs to.
  • Extract. Fields from unstructured text.
  • Summarise. Condense something long.
  • Draft. Produce a first version.
  • Judge similarity. Whether two things match.

What should stay as ordinary logic?

Anything with a definite answer: arithmetic, lookups, date handling, validation, routing based on a value. Those are cheaper, faster, exact and testable as code.

Why does that split matter?

Because every AI step is a point of variability. Minimising how many there are, and how much each decides, is what makes a workflow predictable.

What is the ideal position?

Early, converting unstructured input into structured data. After that everything downstream is ordinary logic operating on fields, which is far easier to test and debug.

What should the step output?

Something narrow. A single label from a defined list, or a set of named fields, rather than prose the next step has to interpret.

What about the step being wrong occasionally?

Expected, and the design question is what happens then. A classification that is wrong one time in fifty is fine if wrong items are recoverable and serious if they trigger something irreversible.

Designing around the error rate rather than hoping to eliminate it is the productive approach. Routing uncertain cases to a person handles the tail without requiring the step to be right every time.

Why does narrowness help?

Because you can validate it. A response that must be one of five values is checkable; a paragraph is not, and the failure appears three steps later as something inexplicable.

What about several AI steps?

Sometimes right and worth questioning. Two steps each doing something narrow is better than one doing everything, and four suggests the workflow is doing several jobs.

What model should it use?

The lightest that works. Classification and extraction rarely need a capable model, and testing down the range usually reveals a considerably cheaper option performs identically.

What about the prompt being the weak point?

Frequently true and worth testing separately. An automation that fails intermittently often has an AI step producing slightly different output rather than anything wrong with the surrounding logic.

Running that step alone against twenty real inputs isolates it quickly. Most of the fixes are in the instruction rather than the workflow, and they are considerably easier to find when tested in isolation.

What about prompts inside a workflow?

Worth treating as configuration rather than as something typed into a box. A prompt embedded in a step is part of the logic, and changing it changes behaviour as surely as editing code.

Keeping a record of what it said, and why, matters for the same reasons. An automation behaving differently after somebody adjusted the wording is difficult to diagnose when nobody recorded the previous version.

What should you do when it is unsure?

Route to a person. An AI step that can output an uncertain value, which sends the item for review, is far more useful than one forced to guess between categories.

Watching the work happen, rather than asking about it, is what produces a map of the real process instead of the intended one.

What is the design principle?

AI at the edges where the world is messy, ordinary logic in the middle where it is not. That produces workflows that are mostly deterministic and easy to reason about.