# Save Loyalty Points Before They Expire

> Finds customers about to lose their points and gives them a small bonus that keeps their account active.

- 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: ~25 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/save-expiring-points/

## The prompt

```text
Find customers whose loyalty points expire in the next 30 days. Show their name, email, points balance and expiry date, sorted by the largest balance. Tell me what all those points are worth in money. Then suggest a small bonus to give the top 20 so their account stays active and they have a reason to come back. Wait for my OK, then give the bonus with the note "Points saver bonus". Give me their emails too, so I can send a reminder.
```

## What happens when you paste it

You: Find customers whose loyalty points expire in the next 30 days…

Assistant: 63 customers have points expiring by 31 October, 48,300 points in total, worth about $483. The largest is 3,200 points for Ben Ortiz. Calling: `advanced-coupons/get-expiring-loyalty-points`, `advanced-coupons/get-loyalty-balance`, `advanced-coupons/issue-loyalty-bonus-points`.

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

Assistant: Gave 50 bonus points each to the 20 customers you approved, all 20 processed. Their emails are listed below for your reminder email.

## Abilities this recipe calls

- **Find expiring points** (`advanced-coupons/get-expiring-loyalty-points`, read only, from Advanced Coupons): Lists customers whose points expire in the next number of days.
- **Get loyalty points balance** (`advanced-coupons/get-loyalty-balance`, read only, from Advanced Coupons): Shows a customer points balance, what it is worth and when it expires.
- **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.

- Look [number] days ahead instead of 30.
- Do not give a bonus. Just give me the list and the emails.

## 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.
- [Reward Your Top Loyalty Members](https://storeagent.ai/mcp-recipes/reward-top-loyalty-members.md): Ranks your most loyal customers by points earned and gives them a bonus as a thank you.
- [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/
