Create and schedule WooCommerce coupons

WooCommerceBeginner~10 minUpdated

Before you start

A connected store with the WooCommerce integration enabled and its coupon read and write abilities on. This plugin's Create coupon tool is high-risk, so it stays locked until High-risk abilities is unlocked in Settings, even if you ticked it in Abilities. A connection on the Shop manager preset never gets it.

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, check the coupon list to see whether the code is
already in use, then 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 (a coupon expires at the start of the date you give, in the site's
timezone, so "good until the end of April" means the first of May), 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 read
the coupon back from the store and show it to me so I can check it matches.

Why this is safe to run

Creating a coupon grants a discount, which is why the plugin treats it as high-risk and keeps it locked by default. A coupon sits ready until a customer uses it, and you can disable it in WooCommerce if the terms are wrong. Once unlocked, 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, and check the code is not already in use.
  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. Read the created coupon back and return its 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.