Why business rules should stay explicit when you add AI
Approval limits, credit limits and posting rules belong in code or ERP configuration, not an AI prompt. How to let AI read and the rules decide.
Westerwick5 min read

On this page
When AI enters a process that touches money, there's a tempting shortcut: write the rules into the prompt, for example "approve invoices under R50,000 from known suppliers", and let the model decide. We recommend enforcing business rules outside the prompt instead, with explicit checks before any action is approved. Let the AI read; let explicit rules decide.
Why business rules belong outside the prompt
We recommend treating instructions to a large language model (LLM) as guidance, with a separate check to enforce business rules. Version and test your prompts, but let that separate rules check determine whether a proposed action is permitted.
Compare that with a rule held in your ERP (enterprise resource planning software) or in code. An approval limit is a number in a field. It gives the same answer every time, anyone with access can inspect it, and a change to it can be controlled and logged. When an auditor asks why an invoice was approved, you can point to the rule, not to a model's reasoning.
An approval limit is a fact about your business, not an opinion for a model to form.
Let the model read; let the rules decide
AI is genuinely good at the messy, judgement-heavy front end of a process:
- Reading a supplier invoice, a claim form or an email.
- Extracting fields: supplier, amount, dates, line items.
- Classifying: which cost centre, which type of request, which product.
Deterministic rules, which always give the same result for the same inputs, are good at the back end, where the answer must be exact:
- Is this amount within the approver's limit?
- Is the supplier on the approved list?
- Does this posting follow the chart of accounts?
The pattern we recommend: the AI produces a structured proposal, the rules check it, and your existing approval process makes the decision. AWS draws a similar line in its own guidance. It notes that validating a password against a set of requirements "is better handled by deterministic, rule-based code" than by a system built to interpret natural language5. The same logic applies to a credit limit.
Where your rules already live: the ERP
For many organisations, the rules engine already exists. It's the approval workflow in the ERP.
In Dynamics 365 Business Central, a workflow is "a sequence of tasks triggered by an action, a condition, or a rule", usually used to build in controls such as "the separation of duties"1. Microsoft lists typical approvals, including changes to sensitive fields "such as Vendor Bank Account No. or Customer Credit Limit" and "finance journals prior to posting"1.
Approval limits are configuration, not guesswork. Each approval user can have a "Sales Amount Approval Limit", the maximum amount "in local currency (LCY)" they can approve, and a matching limit for purchases2.
Dynamics 365 finance and operations apps go further. The system can act automatically when conditions are met, for example approving "expense reports that have total amounts that are less than USD 100"3. You can also require a final approver, and set "Disallow approval by submitter" so people can't approve their own documents3.
These controls are exactly where an AI proposal should land. The AI fills in the draft; the workflow applies the limits and routes it to the right person.
Controls can fail quietly too
Explicit rules only work if they're set up properly. Business Central warns that when a user is both requester and approver in a workflow user group, "their requests are always approved automatically"2. In finance and operations apps, "Disallow approval by submitter" is off by default3. Check these settings before an AI starts submitting documents at volume.
Adding a rules check to AI answers
Sometimes the AI's output is an answer rather than a record, for example an assistant telling staff whether a claim qualifies. Here AWS offers a way to check the answer against rules without moving the rules into the prompt.
Automated Reasoning checks, part of Amazon Bedrock Guardrails, keep your rules in a separate policy that "encodes the business rules, regulations, or guidelines that you want to validate LLM responses against"5. Rather than pattern matching, the service "uses formal logic to provide structured feedback about why a response is correct or incorrect"4. AWS positions it for "complex rule sets such as mortgage approvals, zoning laws, insurance eligibility, or employee benefits"4.
It's a checker, not a decision-maker:
- It doesn't block anything. The checks "operate in detect mode only", and "your application is responsible for deciding what to do with the findings"6.
- The translation step can err. The service uses language models to turn text into logic, and "because this step uses LLMs, it may contain errors"5. Only the logical check that follows is exact.
- A pass only covers what the policy models. A valid result "covers only the parts of the input captured through policy variables"5.
- Availability is limited. It supports English (US) only and runs in three US and three EU Regions, none of them in Africa4.
Where it fits, its value is the audit trail. AWS describes its findings as "mathematically verifiable proof of validity", showing an answer was checked against specific rules, "not just pattern-matched or probabilistically assessed"6.
Make business rules easy to audit
The US standards body NIST lists the characteristics of trustworthy AI as including "accountable and transparent" and "explainable and interpretable"7. Its AI Risk Management Framework is voluntary7, and following it isn't the same as complying with South African law. We recommend using these characteristics as a governance checklist: can you explain why the system did what it did?
Explicit rules make that question easy to answer. The AI's contribution (what it read and extracted) can be logged and reviewed. The decision rests on a rule anyone can inspect. For more on when a model shouldn't be involved at all, see when not to use an LLM.
What to do next
- List the rules in the process you want to automate: limits, thresholds, required approvals, posting rules. If a rule only exists in someone's head, write it down first.
- Put each rule in the ERP or in code, never only in a prompt. Use the approval workflows and limits you already have.
- Give the AI a narrow job: read, extract and classify into a structured draft that the rules then check.
- Tighten the controls before volume arrives: separate requesters from approvers, and enable settings like "Disallow approval by submitter".
- Log the AI's proposal and the rule's decision separately, so you can show which did what. Our article on approval gates for AI actions covers how to design that step.
Sources
- 1.Using approval workflowsMicrosoft Learn
- 2.Set up approval usersMicrosoft Learn
- 3.Configure approval processes in a workflowMicrosoft Learn
- 4.What are Automated Reasoning checks in Amazon Bedrock Guardrails?Amazon Bedrock User Guide
- 5.Automated Reasoning checks conceptsAmazon Bedrock User Guide
- 6.Integrate Automated Reasoning checks in your applicationAmazon Bedrock User Guide
- 7.AI Risk Management Framework FAQsNational Institute of Standards and Technology (NIST)


