|
|
Returns Fraud Detection Agent
Author: Venkata Sudhakar
ShopMax India processes thousands of return requests each month. Most are genuine, but a small percentage are fraudulent - wardrobing (using a product and returning it), return without original packaging, or serial returners gaming the refund policy. Manually reviewing every return is not scalable. An agent that scores each return request using behavioural signals catches fraud early while keeping the experience smooth for honest customers. This tutorial builds a Returns Fraud Detection Agent using ADK and Gemini. The agent analyses a return request against purchase history, return frequency, item condition flags, and timing patterns to produce a fraud risk score with a recommended action: approve, flag for review, or reject. The below example shows the fraud scoring pipeline applied to ShopMax India return requests.
It gives the following output,
Return Assessment - CUST-002 / SKU-1003
Customer: Priya Mehta (Bangalore)
Item: Apple iPad Air 11-inch | Value: Rs 74,000
Days since purchase: 12
Fraud Risk Score: 70 / 100
Signals triggered:
[+30] High return rate - 5 returns on 6 orders (83%)
[+15] No original packaging submitted
[+15] Return follows Diwali sale event
[+10] High-value item (Rs 74,000)
Recommended Action: REJECT
Reason: The combination of an extremely high return rate, absence of original
packaging, post-sale timing, and high item value places this request above
the automated rejection threshold. The returns team should contact the
customer to request further documentation before any refund is processed.
In production, store all return decisions and signal data in BigQuery for model retraining. Connect the rejection workflow to your OMS so approved returns auto-generate a pickup request, while flagged returns trigger a Pub/Sub event that pages the fraud team via a Cloud Function notification.
|
|