|
|
Loyalty Rewards Agent
Author: Venkata Sudhakar
Loyalty programmes drive repeat purchases at ShopMax India, but complexity around point balances, redemption rules, and tier benefits often confuses customers. An ADK loyalty rewards agent gives customers a single conversational interface to check their points, redeem rewards, understand tier benefits, and get personalised tips on reaching the next tier faster.
The agent uses tools to fetch the loyalty account, calculate redemption options, apply points at checkout, and generate a personalised tier progression plan. It handles the full loyalty lifecycle from balance enquiry to redemption in one session.
It gives the following output,
[u_priya] Q: How many points do I have and how much are they worth?
A: Hi Priya! You have 4,250 ShopMax India points (Silver tier).
At your Silver rate of Rs 0.30 per point, they are worth Rs 1,275.
Points expire on 31 December 2026.
[u_priya] Q: Use my points on a Rs 45,000 order
A: Applied 3,000 points (worth Rs 900) to your Rs 45,000 order.
Note: maximum redemption is 20% of order value (Rs 9,000).
Amount payable: Rs 44,100. Remaining points: 1,250.
[u_rohan] Q: How far am I from reaching Silver tier?
A: Hi Rohan! You are at Standard tier with Rs 18,500 lifetime spend.
You need Rs 6,501 more to reach Silver tier, where you will earn
2 points per rupee (vs 1 now) and redeem at Rs 0.30 per point.
The agent gave Priya her exact point value in rupees (most customers do not know the conversion rate), correctly applied the 20% cap on redemption, and showed Rohan exactly how close he is to Silver with the benefit of reaching it. These personalised details increase engagement with the loyalty programme.
For ShopMax India production, store loyalty accounts in Firestore with real-time point balance updates after every order. When points are redeemed at checkout, write a debit transaction to the loyalty_transactions collection and update the balance atomically using a Firestore transaction. Send a WhatsApp or SMS message after each purchase showing points earned and updated balance - this notification is one of the highest-engagement touchpoints in Indian loyalty programmes and significantly increases repeat purchase rates.
|
|