A refund policy written for humans is a persuasive document. It explains intent, softens exceptions and leaves room for judgment. An AI support agent cannot use intent; it needs a sequence of checks that produces exactly one outcome per conversation. A guide to customer service automation frames this as the core design question: which decisions can the system make alone, which can it only recommend, and which require a person. That question maps directly onto your refund rules.
The conversion has three parts. First, extract every checkable condition from the policy text: amounts, days, order states, product condition, proof of purchase, payment method. Second, put those conditions in the order a trained representative would actually apply them. Third, attach to each condition the exact sentence the agent should say and the exact action it should take.
The failure mode is well documented. A step-by-step build playbook describes the consistent pattern: teams dump the whole website into the knowledge base, write a one-line instruction and push it live, and the agent answers vaguely because it was never told how to behave. AI agent challenges at scale makes the same point from the operations side: most failures are system failures, not model failures, and agents that respond without a defined procedure produce confident, plausible answers that contradict the policy.
Keep two artifacts separate. The knowledge base holds the policy document, so the agent can quote a clause when asked. The prompt holds the procedure, so the agent knows which clause applies first. Mixing them is how you get an agent that recites "returns accepted within 30 days" to a customer reporting a cracked item in week five.
| What the policy document says | What the prompt must say |
|---|---|
| "Refunds are available within 30 days of delivery." | "Step 2: If days since delivery is 30 or fewer, continue. If greater than 30, go to step 5." |
| "Defective items are handled case by case." | "Step 5: If customer states the item is defective, request a photo, then apply rule D. Do not deny on the window alone." |
| "We may offer store credit at our discretion." | "Step 7: If refund is denied, offer store credit once. If declined, escalate." |
| "Agents should use good judgment on large orders." | "Step 3: If order total is above the approval threshold, do not approve. Escalate with the order summary." |
The right-hand column is the deliverable. Each line has one condition, one next step and no interpretation left to the model.



