{"slug": "rules-or-llms-for-purchase-requests-designing-a-control-flow-for-small", "title": "Rules or LLMs for Purchase Requests? Designing a Control Flow for Small Businesses", "summary": "A developer outlined a control-flow design for small-business purchase requests that splits work between deterministic rules and LLMs, assigning field validation, permission checks and approval routing to rules while using the model only to summarize free-form requests and flag missing information. The design keeps human approval gates before any commitment such as supplier selection, price changes, budget approval or order placement, and requires the approver to see source documents behind any AI summary. The author recommends measuring success by time-to-decision rather than the number of AI features.", "body_md": "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.\n\nThis 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.\n\nRules 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.\n\nLLMs 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.\n\nThe 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](https://dnai.vn/tin-tuc/ai-xu-ly-yeu-cau-mua-hang-sme-da-nang)\n\nBefore investing, compare three approaches against three criteria: how clear the input is, how often it repeats, and what happens if it goes wrong.\n\nFirst, 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.\n\nSecond, 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.\n\nThird, 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.\n\nDo 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\".\n\nA durable flow starts with minimal data and ends with an accountable person:\n\nStructured request → Rules check fields and permissions → LLM summarises context → Owner approves or asks for more → Action is recorded.\n\nA few principles for implementing it:\n\nAn 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.\"\n\nAI 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.\n\nThe 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.\n\nFour 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).\n\nA 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.\n\nIn 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.\n\nThe 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.\n\nThis 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](https://dnai.vn/trien-khai-ai-cho-doanh-nghiep-da-nang)", "url": "https://wpnews.pro/news/rules-or-llms-for-purchase-requests-designing-a-control-flow-for-small", "canonical_source": "https://dev.to/dnaiacademy/rules-or-llms-for-purchase-requests-designing-a-control-flow-for-small-businesses-53ce", "published_at": "2026-11-24 02:30:29+00:00", "updated_at": "2026-11-24 02:42:58.150285+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "large-language-models"], "entities": ["dnai.vn", "Zalo"], "also_reported_by": [], "takeaway": "Assign field validation, permission checks and approval routing to deterministic rules and let the LLM only draft summaries with item, quantity, date, reason and missing information, keeping human approval gates before any spending commitment.", "recommendation": {"advice": "Put rules in charge of codes, thresholds and approvals, and constrain the LLM prompt to summarizing requests and listing missing fields, never calculating money or confirming budget.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/rules-or-llms-for-purchase-requests-designing-a-control-flow-for-small", "markdown": "https://wpnews.pro/news/rules-or-llms-for-purchase-requests-designing-a-control-flow-for-small.md", "text": "https://wpnews.pro/news/rules-or-llms-for-purchase-requests-designing-a-control-flow-for-small.txt", "jsonld": "https://wpnews.pro/news/rules-or-llms-for-purchase-requests-designing-a-control-flow-for-small.jsonld"}}