Rules or LLMs for Purchase Requests? Designing a Control Flow for Small Businesses
A purchase request inside a small business rarely arrives neatly. It can be a Zalo message at 10pm, a supplier quote screenshot in a group chat, or a one-line note from an end user that nobody remembers promising anythin
A purchase request inside a small business rarely arrives neatly. It can be a Zalo message at 10pm, a supplier quote screenshot in a group chat, or a one-line note from an end user that nobody remembers promising anything about. The operations team's problem is usually not a lack of AI tools โ it is the lack of a flow that knows exactly which parts must be exactly right, which parts may be interpreted, and who owns the final decision.
This is a classic design mistake: handing the LLM the jobs that need precision, and handing rules the jobs that need reading context. The result is a system that is both slow and untrusted.
What rules do, what LLMs do
Rules fit every condition that needs a consistent answer: department codes, price thresholds, mandatory fields, approval rights. These leave no room for "approximately right". A request missing a budget code gets flagged as missing by a rule โ no language model needs to guess what the code might be.
LLMs fit requests that arrive in free-form language, with attachments, or that need a purchase reason summarised from a long thread. A request may contain abbreviated item names, incomplete descriptions, or a reason buried in chat. The LLM extracts a draft: item, quantity, needed-by date, and open questions โ but it must not infer a budget code, add up money, or decide who approves.
The two complement each other; they are not substitutes. The full role matrix โ which fields rules check, which fields the LLM summarises, which decisions belong to a human โ is laid out in the full rule-vs-LLM matrix for purchase requests on dnai.vn โ link https://dnai.vn/tin-tuc/ai-xu-ly-yeu-cau-mua-hang-sme-da-nang
Three ways to organise, chosen by input clarity
Before investing, compare three approaches against three criteria: how clear the input is, how often it repeats, and what happens if it goes wrong.
First, controlled manual handling: fits low request volumes where one person can review everything โ but still needs a standard intake form so nothing depends on one person's memory.
Second, rules and forms first: fits the case where the common errors are missing information, wrong approval routing, or no audit trail. Forms create a trace, but if they are too long, users avoid filling them in when exceptions pile up.
Third, rules combined with an LLM: the form keeps a minimal structure, the LLM reads the free-form part to summarise, ask follow-up questions, and classify exceptions. This is usually the sensible threshold for a small team that already has a basic process.
Do not judge an option by how many AI features it has. Measure the time it takes a request to go from "nobody knows who handles this" to "enough data for the authorised person to decide".
A minimal flow that works
A durable flow starts with minimal data and ends with an accountable person:
Structured request โ Rules check fields and permissions โ LLM summarises context โ Owner approves or asks for more โ Action is recorded.
A few principles for implementing it:
- Standardise minimal input. Agree on one form: requester, department, item or service, quantity, needed-by date, reason, and related documents. For new suppliers or out-of-budget requests, add an exception flag instead of letting the information sit in a private message.
- Put rules where rules beat AI. A rule check can return "quantity missing", "no matching approval level", or "attachment does not meet requirements". Totals, budget thresholds, cost-code validation and permissions should not go to the LLM. When policy changes, an admin updates the rule once instead of hoping the model remembers.
- Let the LLM draft within limits. After rules pass, the LLM standardises item names, summarises the purchase reason, and proposes missing questions. The output is an internal draft, not a purchase order. If the description is vague, the model must flag it for the requester to clarify instead of inventing details.
An example prompt for this step (illustrative scenario, not real customer data): "Read the purchase request below and only produce an internal summary with: item, quantity, needed-by date, reason, documents already available, and missing information. Do not calculate money, do not suggest suppliers, do not confirm budget, and do not write commitments to send outside."
Which approval gates must never go to AI?
AI can help a team see which requests are incomplete or look like exceptions, but it has no authority to approve spending. Approval gates must sit before every action that creates a commitment: choosing a supplier, adjusting a price, approving a budget, placing an order, sending a contract or an official email.
The approver needs to see the data source and the reason for the exception, not just a conclusion the AI produced. When the LLM summarises two quotes, the system should keep links to the source documents so the owner can compare delivery terms, tax, warranty, and payment conditions.
Four hard limits should be written as operating rules, not just documentation: no self-placing orders; no AI arithmetic on financial figures; no sending data outside by default; no dropping the processing log (request versions, who edited, why it was approved, the final decision).
A two-week pilot, then decide on expansion
A good pilot is not measured by how much automation it creates, but by fewer requests missing data and clearer decision gates. Pick one low-risk request type, one approver with clear responsibility, and one place to store records that can be traced.
In week one, log the repeating errors: missing department codes, unclear descriptions, missing quotes, requests sent to the wrong approver. Standardise the form and rules for those errors, then check whether users understand how to complete them. In week two, bring the LLM into summarising and drafting questions; compare each draft against the source record before allowing wider use. Only connect more tools after the flow has a log, approval gates, and a clear way to handle exceptions.
The difference between a helpful AI assistant and a risky process is decision structure. Rules hold the conditions that must be exact, the LLM helps read and summarise the language part, and the owner approves every financial and supplier commitment. Start with one short form, one approval gate, and one specific exception group โ once the team can see which data is missing, who must decide, and what needs to be recorded, AI has a foundation to help faster without blurring responsibility.
This post is part of a hands-on AI series by DNAI Academy โ AI training, consulting and implementation for businesses in Da Nang & Central Vietnam. Learn more about DNAI Academy's AI implementation services for businesses in Da Nang โ link https://dnai.vn/trien-khai-ai-cho-doanh-nghiep-da-nang
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.