# Give every regular their own year in review: the prompt

A prompt file from MediaMentorAI's Daily AI Move series.
Tutorial, video and live demo: https://mediamentorai.com/ai-tutorials/customer-year-in-review-cards-with-claude

Works in Claude, ChatGPT and Codex. We tested this prompt on 7 models. GPT-6 Luna (61 out of 100) failed our checks; the other 6 passed.

Check one or two regulars against your export before you send any cards, and decide what the thank-you offer means first.

## How to use it

1. Export your visits from your loyalty app or point-of-sale system as a CSV: one row per visit with the date, the customer and the item. First names and last initials are enough.
2. Open a new chat in Claude, ChatGPT or Codex.
3. Copy the prompt below and paste it in. Change the first line to your business and your shop's name.
4. Replace the last line with your export (or attach the file). To try it first, paste the practice export instead: https://mediamentorai.com/ai-tutorials/customer-year-in-review-cards-with-claude/loyalty-export-sample.csv
5. Send it as one message. In Claude, you can add "Don't publish or share it. Show it to me here." at the end.

This is the prompt we tested, so leave the rest of it as it is. You don't need to know how to code. To test the finished page's paste box, paste this practice export from another made-up shop into it: https://mediamentorai.com/ai-tutorials/customer-year-in-review-cards-with-claude/second-export-sample.csv

## The prompt

```text
I run a small coffee shop in New Jersey called Grounds for Divorce Coffee Co. Below is our loyalty export for 2026 so far (sample, made up): one row per visit, with the date, the customer and what they ordered.
Make a year-in-review recap for each customer: a few bold, phone-sized cards, one stat per card, that I can step through:
1. Visits: how many times they came in (one row is one visit).
2. Favourite: the item they ordered most. If two tie, the one they ordered most recently.
3. Busiest month: the month they came in most. If two tie, the later month.
4. Top N%: rank customers by visits, most first (the same visits share a rank). N is their rank divided by the number of customers, as a percent rounded up to a whole number.
5. Thank you: their favourite, on us, next time they come in.
Then a leaderboard of who gets a recap: everyone whose Top N% is 20 or less, with their visits and favourite. Click a name to see their cards. Tell me how many customers and visits you found, and who's number one.
Build it as a recap card maker: pick any customer, step through their cards with Back and Next, and a button that downloads the card on screen as an image. Put our shop's name on the cards, with a box to change it. Let me upload or paste my own export (rows like the ones below) to make new recaps, and add a "Load sample data" button that loads exactly this export, labeled as sample data.
Use click handlers, not a form, and no pop-up dialogs. No AI or internet, all in one file.

Export:
[paste your export here, or the practice export from loyalty-export-sample.csv]
```

---

Made by MediaMentorAI, which builds AI that takes the busywork off service businesses. https://mediamentorai.com
