Create and schedule WooCommerce coupons

WooCommerceBeginner~10 min

Before you start

A connected store with the WooCommerce integration enabled and its coupon write ability on.

Setting up a coupon is not hard, but the details are exactly where promotions go wrong: the discount applies to the wrong thing, there is no usage cap so it gets shared on a deals forum, or it never expires and someone finds it a year later. This prompt lets you describe the promotion the way you would say it out loud, then it turns that into precise coupon terms, reads them back, and only creates the coupon once you confirm the numbers.

The prompt
Set up a coupon for me. Here is the promotion in plain words: [15% off the
whole order for the spring sale, code SPRING15, good until the end of April,
one use per customer, and only on orders over 40 dollars].
Before you create anything, turn that into the exact coupon terms and read them
back to me as a short summary: the code, the discount type and amount, the
expiry date, and every limit (per-customer use, minimum spend, product
restrictions, whatever applies). If any of it is ambiguous, ask me rather than
picking a default.
Only once I confirm the terms, create the coupon with those settings. Then show
me the coupon you created so I can check it matches.

Why this is safe to run

Creating a coupon is a write, but a low-stakes one: a coupon does not move money on its own, it just sits ready until a customer uses it, and you can disable it later if the terms are wrong. The care here is about getting the terms right rather than guarding against damage, so the flow is confirm-before-create. The agent reads the exact code, amount, expiry, and limits back to you and waits for your yes before it creates anything, which is where you catch the missing usage cap or the wrong minimum spend. The create-coupon ability takes the expiry and the limits directly, so a coupon can be scheduled to lapse on its own date. The ability stays off until you switch it on, every call is checked against the capability of the user you bound the agent to, and the creation lands in the Activity Log.

Already connected? Skip the paste. Ask your agent for the “create and schedule coupons” recipe, describe the promotion in your own words, and it drafts the exact terms for you to confirm before it creates the coupon on your own store.

How it works

  1. Turn your plain-language promotion into exact coupon terms: code, discount type and amount, expiry, and limits.
  2. Read the terms back to you as a plain summary and wait for your yes.
  3. Create the coupon only after you confirm, with the expiry and usage limits you set.
  4. Return the created coupon's code and settings so you can check them.

Questions

Will it create the coupon before I confirm the terms?
No. It reads the exact terms back to you first, code, amount, expiry, and limits, and only creates the coupon once you say yes.
Can it schedule the coupon to expire on its own?
Yes. The create-coupon ability takes an expiry date, so the coupon stops working on the day you set without you having to remember to turn it off. It also takes usage limits and spend requirements.