/
/
Ready a WooCommerce win-back offer for subscribed Mailchimp contacts
For marketers who want a win-back coupon created and lapsed, still-subscribed buyers tagged in Mailchimp by asking their AI assistant.
On this page
Connector
Connect WooCommerce, pick your AI tool and paste the prompt.
The problem
Win-back lists that include people who unsubscribed
Winning back lapsed WooCommerce buyers means finding who has not ordered in months, checking who still subscribes in Mailchimp, creating a coupon and tagging the right contacts. By hand it is easy to tag people who unsubscribed or reuse an existing code.
Without PopdockAI
- Work out who has not ordered in months
- Check each one's Mailchimp status
- Create a coupon and check the code is new
- Tag contacts by hand and include people who left
With PopdockAI
- Lapsed paying customers still subscribed in the audience are found
- An unused code is proposed with a 30-day expiry and one use per customer
- You review the code and contacts before anything is created
- Tagging stops if the coupon fails, and nothing is sent
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Find WooCommerce customers whose last order was more than `{inactive-days}` days ago (default 180) and who are still subscribed in Mailchimp, then, after confirmation, create one `{discount-percent}` percent WooCommerce coupon (default 15) and add those contacts to the Mailchimp tag `{tag}` so a campaign can send them the code.
**Step 1: Find the tag**
Call `mailchimp-get-segment` with `name` set to `{tag}` and `type` set to static. If none or more than one comes back, list what was found and stop; this prompt does not create tags. Note `segment-id` and `list-id`.
**Step 2: Find lapsed customers in WooCommerce**
Work out the cutoff date as today minus `{inactive-days}` days. Call `woocommerce-get-customer` with `paying-customer` set to true. For each, call `woocommerce-get-order` with `customer-email` and keep the customer only if no order that is not cancelled or failed has a `created-date` after the cutoff. Record the last order date, order count and lifetime total.
**Step 3: Check they can be reached in Mailchimp**
For each lapsed customer, call `mailchimp-get-list-member` with `email`. Keep only contacts whose `status` is subscribed in the audience whose `list-id` matches the tag's. Report the rest as unreachable with their status.
**Step 4: Plan and confirm**
Propose a coupon code such as WINBACK followed by the percent and the current month, and call `woocommerce-get-coupon` with `code` set to it to check it is unused; if taken, add a suffix and check again. Show the code, discount, an expiry 30 days from today, usage limit per user of 1, and the contacts to tag (email, last order date, lifetime total). Wait for an explicit yes.
**Step 5: Create the coupon and tag the contacts**
Call `woocommerce-add-coupon` once with `code`, `discount-type` percent, `amount` set to `{discount-percent}`, `expiry-date`, `usage-limit-per-user` 1, `individual-use` true and a `description` naming this win-back. If it fails, stop before tagging anyone. Then call `mailchimp-add-segment-member` once per confirmed contact with `segment-id`, `list-id` and `email-address`.
**Step 6: Report**
The coupon code and expiry, counts tagged, unreachable and failed, and the next step for the user: send a Mailchimp campaign to the `{tag}` tag containing the code.
**Rules & Guidelines:**
* `woocommerce-get-customer`, `woocommerce-get-order`, `woocommerce-get-coupon` and `woocommerce-add-coupon` are on the woocommerce server. `mailchimp-get-segment`, `mailchimp-get-list-member` and `mailchimp-add-segment-member` are on the mailchimp server.
* The only write tools this prompt may call are `woocommerce-add-coupon` (once) and `mailchimp-add-segment-member` (once per contact), both after Step 4. Never call `mailchimp-add-list-member` or `mailchimp-update-list-member` to reach someone who is not subscribed, and do not call `mailchimp-replicate-campaign` or `mailchimp-start-automation`.
**Validation:**
* Match on email, compared case-insensitively.
* `{discount-percent}` must be a number between 1 and 100. Otherwise stop and ask.
* If no lapsed, subscribed customers are found, say so and stop without creating a coupon.Who it's for
One answer, three teams that use it
Email marketers
Build the win-back segment in one step
Lapsed buyers who still subscribe are tagged, ready for your Mailchimp campaign to target.
Tag WooCommerce customers inactive for 120 days as lapsed-spring in Mailchimp and create a 10 percent coupon.
Retention managers
Reach only people who still want email
Unsubscribed contacts are left out, so the offer goes only to people who accept it.
How many lapsed WooCommerce buyers are still subscribed in our Mailchimp audience?
Store owners
Use a code nobody has seen before
The proposed code is checked as unused, with one use per customer and a 30-day expiry.
Set up a 15 percent win-back code for WooCommerce customers gone a year and tag them winback-annual.
How it works
What PopdockAI does when you ask
You name the Mailchimp tag, and your AI assistant finds lapsed buyers who still accept email and prepares the coupon. Nothing is created until you confirm, and the campaign is left for you to send.
01
Ask
You name the Mailchimp tag, and optionally the inactivity period and discount.
02
Find
It finds lapsed paying customers still subscribed in the audience.
03
Confirm
You review the code, expiry, limits and contacts to tag.
04
Create
It creates the coupon, then tags each contact, sending nothing.
What PopdockAI provides
The tools behind the answer
Ready made tools for WooCommerce and one secure connection to your AI tool. No code, no exports.
mailchimp-get-segment
woocommerce-get-customer
woocommerce-get-order
mailchimp-get-list-member
woocommerce-get-coupon
woocommerce-add-coupon
mailchimp-add-segment-member
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
A win-back audience and code, ready to send
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
