# Run a Weekly Happy Hour Coupon

> Makes a coupon work only in your quiet hours, like weekday afternoons, so the discount drives sales when you need them.

- Job: [Marketing & promos](https://storeagent.ai/mcp-recipes/job/marketing/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~30 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/happy-hour-coupon/

## The prompt

```text
Look at my orders from the last 60 days and tell me which days of the week and hours of the day are the quietest. Then set up a happy hour coupon for those times. Use the code [code] if it exists, or create a new 10% coupon with that code. Make it work only on the days and times you suggest, and show the message "Happy hour is over, come back during our next one" outside those hours. Show me the schedule and wait for my OK before you save it.
```

## What happens when you paste it

You: Look at my orders from the last 60 days and tell me which days of the week and hours of the day are the quietest…

Assistant: Across 1,120 orders, Tuesday and Wednesday 13:00 to 16:00 are the quietest, with about 40% fewer orders than your weekday average. Calling: `woocommerce/orders-query`, `advanced-coupons/get-coupon`, `advanced-coupons/create-coupon`, `advanced-coupons/set-recurring-schedule`.

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

Assistant: HAPPYHOUR now works Tuesday and Wednesday from 13:00 to 16:00 only. Outside those hours customers see your happy hour message.

## Abilities this recipe calls

- **Find orders** (`woocommerce/orders-query`, read only, from WooCommerce): Finds orders by status, customer, email or date, with the items in each order.
- **Get coupon details** (`advanced-coupons/get-coupon`, read only, from Advanced Coupons): Shows every setting on one coupon, including cart conditions, schedule and URL settings.
- **Create coupon** (`advanced-coupons/create-coupon`, asks first, from Advanced Coupons): Creates a new percentage or fixed amount coupon with optional cart conditions.
- **Set weekly coupon hours** (`advanced-coupons/set-recurring-schedule`, asks first, from Advanced Coupons): Limits a coupon to certain days of the week and times of day.

## Variations

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

- Use [days] from [start time] to [end time] instead of your suggestion.
- Turn the weekly schedule off for coupon [code].

## Related recipes

- [Fix Google Shopping Feed Problems](https://storeagent.ai/mcp-recipes/feed-errors.md): Tells you exactly what is wrong with each feed's setup, and which products are being left out, in plain English.
- [Clear Slow Stock With a Limited-Time Coupon](https://storeagent.ai/mcp-recipes/slow-stock-coupon.md): Finds what is gathering dust and sets up a short, sharp coupon you can promote to move it.
- [Add Conversation Starters That Mention Your Current Sale](https://storeagent.ai/mcp-recipes/chat-proactive-starters.md): Writes short pop-up messages for the chat assistant that point shoppers to what is on sale right now.

---

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/
