Every business has workflows that run on rules: when an order is paid, send it to shipping; when a form is submitted, create a contact; when stock hits zero, hide the product. Rules like these are predictable, cheap and easy to test. For a lot of work, they are exactly right.
Agentic workflows put a model in the middle of the process, making a call a rule cannot. The question I get asked most is where one should stop and the other start. The honest answer is that most good systems use both, and the design work is in the handover.
What rules are good at
Rules are the right tool whenever the decision can be written down in advance. If the logic is if this, then that, and it is the same every time, a rule will do it faster, cheaper and more reliably than any model.
Starshipit for Swell, a Swell app I provided architecture and consulting for with Devkind, is a good example. When an order is paid, the app checks it against the merchant's rules, maps it to Starshipit's format and sends it, retrying automatically if a call fails. There is no judgment involved, and adding a model would only add cost and uncertainty. Plain automation turned a daily manual chore into something that happens on its own.
What models are good at
Models earn their place when the input is messy and the decision needs judgment. Reading a customer email and working out what they actually want. Deciding whether an unusual order looks like fraud or just a large one. Summarising a thread so the next person knows what matters. These are hard to capture in rules because the rules would never end.
A useful sign: if the team keeps adding exceptions to a rule, or a person has to read something before deciding what happens next, that is judgment, and a model may be able to help.
Rules for the predictable, models for the ambiguous, and people for the consequential. Most workflows need all three.
Designing the handover
The best agentic workflows are mostly automation with a model at one or two specific points. I design them around a few principles:
- Let rules go first. Handle everything that can be decided mechanically before the model sees it. The model should only get the cases that genuinely need judgment.
- Make the model's output structured. Instead of free text, have it return a clear decision from a fixed set of options, along with its reasoning. Rules can then act on that decision reliably.
- Give it a way to say no. The model should be able to return not sure, and that should route the case to a person rather than forcing a guess.
- Keep consequential actions behind a check. Refunds, cancellations and anything a customer will see can require approval, at least until the model has earned trust.
- Log every decision. What the model saw, what it chose and why. This is how you find problems and how you prove it is working.
A worked example
Take incoming support requests. Rules sort the obvious ones: an order status question with an order number can be answered automatically from the system. A model reads the rest and classifies them: return request, product question, complaint, something else. For returns within policy, rules take over again and start the process. Complaints and anything the model is unsure about go to a person, with a short summary so they do not have to read the whole thread.
The model makes one kind of decision in that workflow. Everything around it is ordinary automation. That is not a compromise. It is what makes the system dependable, cheap to run and easy to change.
If you are looking at a process and wondering whether it needs a model at all, I am happy to help work it out. Quite often the most useful advice is that a few good rules will do, and the model can wait for the part that actually needs it.