# Reward Your Top Loyalty Members

> Ranks your most loyal customers by points earned and gives them a bonus as a thank you.

- Job: [Affiliates & loyalty](https://storeagent.ai/mcp-recipes/job/affiliates/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~20 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + Advanced Coupons
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/reward-top-loyalty-members/

## The prompt

```text
Show me my top 25 loyalty customers by lifetime points earned, with name, email and points. For the top 5, check their points history and tell me how they earn most of their points and when they were last active. Suggest a bonus amount as a thank you. Show me the list and wait for my OK, then give the bonus points to the customers I approve with the note "VIP thank you bonus".
```

## What happens when you paste it

You: Show me my top 25 loyalty customers by lifetime points earned, with name, email and points…

Assistant: Your top 25 earned between 4,100 and 19,800 points. The top 5 earn mostly from purchases and were all active in the last 3 weeks. Calling: `advanced-coupons/list-top-loyalty-customers`, `advanced-coupons/get-loyalty-points-ledger`, `advanced-coupons/issue-loyalty-bonus-points`.

Assistant: This will make changes in WooCommerce. Do you want me to go ahead?

Assistant: Gave 500 bonus points each to the 25 customers you approved, 12,500 points in total. All 25 processed with the note VIP thank you bonus.

## Abilities this recipe calls

- **List top loyalty customers** (`advanced-coupons/list-top-loyalty-customers`, read only, from Advanced Coupons): Ranks customers by current points balance or by points earned in total.
- **Get loyalty points history** (`advanced-coupons/get-loyalty-points-ledger`, read only, from Advanced Coupons): Shows one customer points history: earned, redeemed, adjusted and expired.
- **Give bonus points** (`advanced-coupons/issue-loyalty-bonus-points`, asks first, from Advanced Coupons): Gives bonus points to a list of customers or to everyone with a user role.

## Variations

Add one of these to the end of the prompt. Swap anything in [brackets] for your own details.

- Rank by current points balance instead of lifetime points.
- Give [number] bonus points to every user with the [role] role instead.

## Related recipes

- [Loyalty Program Health Check](https://storeagent.ai/mcp-recipes/loyalty-health-check.md): Tells you if your points program is working: how many points are redeemed, what it costs you and where points come from.
- [Save Loyalty Points Before They Expire](https://storeagent.ai/mcp-recipes/save-expiring-points.md): Finds customers about to lose their points and gives them a small bonus that keeps their account active.
- [Sort Out a Customer's Missing Points](https://storeagent.ai/mcp-recipes/missing-loyalty-points.md): Checks a customer's order and points history to see if points really are missing, then fixes it with a note.

---

Part of the StoreAgent WooCommerce MCP Recipes directory: https://storeagent.ai/mcp-recipes/ (index for LLMs: https://storeagent.ai/mcp-recipes/llms.txt). Get StoreAgent free: https://app.storeagent.ai/sign-up/
