Refund approval
Use this templateDecide whether a refund request can be approved without a person.
Input
amount_usdnumber · requireddays_since_deliveryinteger · requiredreasonstringcustomer_tierenum: standard, plus, businessitem_damagedboolean
Answers
decisionenum: approve, reject, ask · decidescategoryenum: damaged, late, changed_mind, other
Params
limit_usd150window_days30
The config
name: Refund approval
slug: refund-approval
description: Decide whether a refund request can be approved without a person.
policy: |
Approve a refund when the amount is at or under the limit and the order was delivered within the return window.
Reject it when the order was delivered more than the window ago, unless the item arrived damaged.
Ask a person when the amount is over the limit, when the customer is on the business tier and the amount is over
half the limit, or when the reason suggests fraud or a dispute.
The category says why the customer wants the refund, from the reason they gave.
params:
limit_usd: 150
window_days: 30
input:
amount_usd: {type: number, required: true}
days_since_delivery: {type: integer, required: true}
reason: {type: string, max: 2000}
customer_tier: {type: enum, values: [standard, plus, business]}
item_damaged: {type: boolean}
output:
decision: {type: enum, values: [approve, reject, ask], decides: true}
category: {type: enum, values: [damaged, late, changed_mind, other]}
mode: shadow
promotion: {auto: true, min_shadow: 300, max_error: 0.01}
audit_rate: 0.05
failure:
on_model_error: default
default_output: {decision: ask, category: other}
retention_days: 90
redact: [reason]