# Build a Notification Bar for My Sale

> Finds the products on sale in WooCommerce, drafts a NotificationX notification bar for the sale and saves it switched off once you approve it.

- 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: ~20 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + NotificationX
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/notificationx-sale-announcement-bar/

## The prompt

```text
Set up a notification bar for my sale. First find the WooCommerce products that are on sale right now and tell me how many there are and the biggest discounts. Then check the NotificationX notification bar type for valid themes and content fields. Draft the bar: a short headline, a button label and the link to my shop page, plus the theme you would use. Show me the full draft and wait for my OK before you create anything. When I confirm, create it switched off so I can preview it first.
```

## What happens when you paste it

You: Set up a notification bar for my sale…

Assistant: 27 products are on sale, with discounts from 10% to 40%. The biggest is the Oak Serving Board, down from $65 to $39. The notification bar type has 6 free themes. Calling: `woocommerce/products-query`, `notificationx/describe-type`, `notificationx/create-notification`.

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

Assistant: Draft: Up to 40% off 27 kitchen favourites, ends Sunday. Button: Shop the sale. You said OK, so the bar is saved switched off, ready to preview and turn on.

## Abilities this recipe calls

- **Find products** (`woocommerce/products-query`, read only, from WooCommerce): Finds products by name, SKU, status, type or stock status, with prices and stock.
- **Check a notification type** (`notificationx/describe-type`, asks first, from NotificationX): Shows the valid themes, data sources and message placeholders for a notification type before you build one.
- **Create a notification** (`notificationx/create-notification`, asks first, from NotificationX): Builds a new notification, like a notification bar, and saves it switched off unless you ask for it live.

## Variations

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

- Add a countdown that ends on Sunday at midnight.
- Write 3 headline options and let me pick one.

## Related recipes

- [Is My Sales Popup Showing Real Orders?](https://storeagent.ai/mcp-recipes/notificationx-sales-popup-check.md): Checks that your NotificationX sales popup is live, pulls from WooCommerce and has fresh orders to show, so the social proof is never stale.
- [Check Funnel Checkouts Before You Send Traffic](https://storeagent.ai/mcp-recipes/cartflows-checkout-product-audit.md): Finds funnel checkouts that load an out of stock, unpublished or deleted product, or no product at all, before shoppers find them first.
- [Check Funnel Tracking Before You Run Ads](https://storeagent.ai/mcp-recipes/cartflows-tracking-before-ads.md): Shows which ad and analytics tracking CartFlows has set up, which purchase events are on, and what is missing before you spend on ads.

---

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/
