AI agents or conventional automation? Compare one order
Hexwave Lab · Field noteUse rules where the contract is stable and a model where language varies.

Take an order amendment with three fields: product, quantity and delivery address. The source email can describe the change in a hundred ways, while the condition governing a dispatch deadline is precise. These parts warrant different machinery.
A worked scenario
A distributor wants to match incoming orders to fulfilment rules even when the customer describes a change in an email.
| Review stage | Example |
|---|---|
| Source records | The order record and customer email |
| Exception | A note asks for a different address after dispatch |
| Acceptance condition | The change is proposed for review while the confirmed dispatch record stays intact |
When a rule is enough
A rule-based step takes a known event and applies a defined test. Think of an order that is ready to release when its payment is settled and its address has passed validation. A person can write those conditions down and predict the result before the software runs.
| Test case | Rule-based workflow | Bounded agent |
|---|---|---|
| Complete structured order | Validate fields against a fixed schema. | Use the same validator after interpreting the request. |
| Free-text request | Ask for a structured submission or route to a reviewer. | Extract a proposed intent and show the supporting phrase. |
| Unknown exception | Enter a defined waiting state. | Ask a permitted clarifying question, then stop at the agreed limit. |
| Replay after a failure | Run the same inputs against the same rule version. | Retain tool calls, retrieved evidence and model version for review. |
Start with a decision table. Include a row for every missing input and specify whether the work should wait, return to its owner or stop. This makes a rule maintainable when the policy changes.
Where an agent has room to act
An agent can choose a next step from a limited set of tools. In a support queue it might search the product manual, retrieve a delivery record or request a missing order number. The allowed tools define how far that choice can reach.
| Decision question | Evidence to inspect | Starting design |
|---|---|---|
| Can the team enumerate the conditions? | An agreed decision table covers the exceptions. | A rule and an explicit manual path. |
| Does the input vary in language? | Different messages express the same underlying request. | An interpretation step followed by validation. |
| Can the proposed action create an obligation? | A transaction, external message or permanent change would follow. | A reviewer or strict approval gate before execution. |
Put the stop conditions in the design brief. A proposal to issue a refund should land with an authorized reviewer when the evidence is incomplete or the amount exceeds the limit agreed by the team.
Join the approaches at a clear boundary
One part of a workflow can interpret an ambiguous request while another enforces a strict policy. Make the handoff explicit. The interpretive step proposes a structured record and the deterministic step validates required fields, approved values and authority to proceed.
Test the boundary by passing a plausible but invalid record. The receiving step should refuse it, explain which condition failed and preserve the original context for the reviewer.
When predictable rules fit the work
Suppose a team can release a document only after receiving three recorded approvals. There is little value in asking a model to decide whether three approvals exist. A direct check can return the missing approver, record why the task is waiting and produce the same answer when replayed.
Choose a rules-first design when the team can state the policy completely, the required data arrives in a known shape and repeating the check is inexpensive. Use representative exceptions to see where that description stops being true.
When a bounded agent fits the work
Now consider the message that arrives with the document. A supplier may explain a change of address in a paragraph, attach a corrected file or ask which fields are still missing. A bounded agent could select the right reference, summarize the change and prepare a question.
Keep authority to update the supplier record separate from interpreting the message. The reviewer should be able to inspect the original text and the proposed change together, correct the interpretation and record the reason for accepting it.
Putting it into practice
Keep the rule that an order already dispatched requires review outside the language model. Test that condition with the same order described in several different ways.
Explore Hexwave Lab’s approach to AI workflow automation.