What a model is good at
A language model reads text written by people who were not thinking about your database. That covers a misspelt WhatsApp message, a supplier invoice as a scanned PDF, and an email with the request buried in the fourth paragraph.
A model reads the message and hands back the fields you asked for, such as customer name, item, quantity and date. Before these models, a person had to do that reading.
Models also draft well. Give one a customer's question and your refund policy, and it writes a reply a person can check and send. The person still presses send.
What a rule is good at
A rule is a line of ordinary code. If the invoice is more than thirty days overdue, send a reminder. Multiply quantity by unit price. Round to two decimal places.
A rule gives the same answer today, tomorrow and on the ten thousandth run. You can read it, test it and prove it is right. When it is wrong, you can point at the line that is wrong.
A model offers none of that. Ask it the same question twice and the wording may differ. Ask it to add a long column of numbers and it will often be right and sometimes be wrong, with nothing to tell you which time is which. For a draft email that is acceptable. For a customer's bill it is not.
A table to sort your tasks
| Task type | Use | Why |
|---|---|---|
| Reading free-text orders, emails or chat messages | AI | The input has no fixed shape, and a model copes with shorthand and typos. |
| Pulling fields out of PDFs and scanned invoices | AI, with a check | Layouts differ by supplier. Have a rule confirm that the line items add up to the total. |
| Sorting incoming messages by topic or urgency | AI | The categories are fuzzy, and a wrong label is cheap to fix. |
| Drafting replies for a person to approve | AI | A draft saves typing, and the person catches mistakes before sending. |
| Totals, tax, discounts and commissions | Rule | Arithmetic has one right answer, and code gets it every time. |
| Reconciling cash, stock or bank entries | Rule | Auditors and owners need to trace each number back to its source. |
| Deciding who can approve or see what | Rule | Access must be predictable, and you must be able to explain it. |
| Sending reminders on a schedule | Rule | A date comparison needs no intelligence. |
| Moving a record between two systems | Rule | The fields are known. Map them once. |
If the input is messy, a model reads it. If the output must be exact, a rule produces it.
An example from our own product
IndhanFlow is a product we build for petrol pumps. It runs the books for a pump: shifts, meter readings, cash collections, tank stock and profit, reconciled every shift.
All of that reconciliation is arithmetic and rules. The meter readings at the start and end of a shift give the litres sold. Litres and price give the expected sales. The software compares that figure with the cash collected, checks it against the tank stock, and shows any gap.
No model touches those numbers. A pump owner needs to know that a shortfall on the night shift is real, and needs to trace it to a reading. A system that is right most of the time would send the owner back to rechecking every shift by hand. You can read more about it in our lab.
If we added AI to a product like this, it would sit at the edges. It might read a photographed delivery slip or draft a summary of the week for the owner. The books would stay with the rules.
How to combine the two
The setup that works is a model at the front and rules behind it.
- The model reads the messy input and returns structured fields.
- Rules validate those fields. Is the date real? Does the product exist? Do the line items add up to the stated total?
- Rules do every calculation and write the record.
- Anything that fails a check goes to a person, with the original message attached.
Step 2 matters most. The model's output is a claim, and code should test it before anything gets saved. An invoice total that does not match its line items is a strong sign the model misread a digit.
When you need neither
Plenty of automation has no AI in it at all, and it is cheaper and easier to maintain for that. A form that writes to a sheet, a scheduled report and a webhook between two tools are all rules.
If someone pitches you an AI agent for a job where the input already arrives in labelled fields, ask what the model is for. Often it is there to make the proposal sound current.
Bottom line: Put a model where the input is messy and a rule where the answer must be exact. Check everything the model returns with code before it reaches your records.
When we scope a workflow automation project, the first thing we do is mark each step as model or rule. Try it on your own process with the table above. Most steps will land in the rule column.
Workflow & Team Automation. We connect WhatsApp, email, your CRM and your spreadsheets so orders, leads and reports move without anyone retyping them. We also set up your team's Macs with the scripts, shortcuts and local AI tools that take repeated clicks out of everyday work. Every workflow runs beside the manual process until the results match, and one script installs the same setup on every machine.
See the service→
