Connectors

/

WooCommerce

/

Launch a WooCommerce win-back offer through Mailchimp
Write
Cross-Connector

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.

Try PopdockAI free
Get a live demo
Launch a WooCommerce win-back offer through Mailchimp
Create a win-back offer for WooCommerce customers inactive for 180 days and tag them winback-q4 in Mailchimp.
94 lapsed WooCommerce customers are still subscribed in the audience for winback-q4. - Coupon: WELCOMEBACK15, 15 percent off, code unused - Expiry: 30 days, one use per customer - Left out: 41 lapsed customers who are not subscribed Shall I create the coupon and tag the 94 contacts?
WooCommerce
Sample figures. Your results come from your own account.
mailchimp-get-segment
woocommerce-get-customer
woocommerce-get-order
mailchimp-get-list-member
woocommerce-get-coupon
woocommerce-add-coupon
mailchimp-add-segment-member

On this page

The problem

The problem

The prompt

Who it's for

How it works

Tools used

Connector

WooCommerce

WooCommerce
Run it on your own WooCommerce data.

Connect WooCommerce, pick your AI tool and paste the prompt.

Try PopdockAI free

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.

Prompt
**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.

Your AI tool

02

Find

It finds lapsed paying customers still subscribed in the audience.

mailchimp-get-segment
woocommerce-get-customer
woocommerce-get-order
mailchimp-get-list-member

03

Confirm

You review the code, expiry, limits and contacts to tag.

No items found.

04

Create

It creates the coupon, then tags each contact, sending nothing.

Your AI tool

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.

get-data

mailchimp-get-segment

Returns the segments and tags defined on Mailchimp audiences, with their type, conditions and member counts.
get-data

woocommerce-get-customer

Returns WooCommerce customer accounts with name, billing address, role and whether they have paid for an order. Filter by email, id, last name, billing country or state, role and created date range.
get-data

woocommerce-get-order

Returns WooCommerce orders with status, totals, discounts, shipping, payment method and paid date. Filter by status, customer email or id, order number, created date range, total range or billing last name.
get-data

mailchimp-get-list-member

Returns the members (subscribers) of Mailchimp audiences, with subscription status, tags and engagement rating. Filter by email address or status to look someone up.
get-data

woocommerce-get-coupon

Returns WooCommerce coupons with discount type, amount, usage limits, times used and expiry. Filter by code, discount type, times used, created date and expiry date ranges.
run-action

woocommerce-add-coupon

Creates a WooCommerce discount coupon with its code, discount type and amount, expiry date, minimum spend, usage limits and whether it can be combined with other coupons.
run-action

mailchimp-add-segment-member

Adds an existing audience contact to a static Mailchimp segment or tag.
Read only.Nothing in WooCommerce Changes

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.

How Popdock AI secures your data

The outcome

A win-back audience and code, ready to send

Try PopdockAI free
Get a live demo

Related use cases

More ways to put this data to work

All Ramp use cases

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.

Try PopdockAI Free
See Documentation