Connectors

/

WooCommerce

/

Enroll lapsed WooCommerce customers in a Drip campaign
Write
Cross-Connector

Win back lapsed WooCommerce buyers through Drip

For marketers who want repeat WooCommerce customers who stopped ordering enrolled in a Drip win-back campaign by their AI assistant.

Try PopdockAI free
Get a live demo
Enroll lapsed WooCommerce customers in a Drip campaign
Enroll WooCommerce customers who have not ordered in 180 days, with at least 2 earlier orders, in our Drip win-back campaign.
23 lapsed repeat buyers qualify for the Win-back campaign in Drip. - Example: Jordan Lee, 5 orders, last on 2 March, 640.00 USD spent - Left out: 7 not in Drip or unsubscribed - Already enrolled: 4 people - Warning: the campaign is not active yet Shall I enroll the 23 subscribers?
WooCommerce
Sample figures. Your results come from your own account.
drip-get-campaign
woocommerce-get-order
drip-get-campaign-subscriber
drip-get-subscriber
drip-add-subscriber-to-campaign

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

Lapsed repeat buyers nobody tries to win back

Repeat WooCommerce buyers who stop ordering are worth winning back, but finding them means counting past orders, ruling out recent buyers and checking Drip before enrolling. Enroll the wrong people and you email someone who opted out.

Without PopdockAI

  • Export orders and count them per customer
  • Rule out anyone who ordered recently
  • Check each person's status in Drip
  • Enroll someone who never signed up

With PopdockAI

  • Repeat buyers with no order since the cutoff are found
  • Anyone already on the campaign is dropped
  • Only active Drip subscribers are kept
  • Nothing is enrolled until you confirm, and the campaign is never activated

The prompt

Use this prompt

Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.

Prompt
**Objective:** Enroll repeat WooCommerce customers who have not ordered in `{inactive-days}` days (default 180) and had at least `{min-orders}` earlier orders (default 2) in the Drip campaign matching `{campaign-name}`.

**Step 1: Find the Drip campaign**

Call `drip-get-campaign` with `name.contains` set to `{campaign-name}`. If none or several match, list them and stop. Note the campaign-id and status. If the status is not active, warn the user that people added will not receive emails until it is activated.

**Step 2: Find lapsed repeat buyers**

Compute the cutoff as today minus `{inactive-days}` days. Call `woocommerce-get-order` with `created-date.to` set to the cutoff, `status` set to completed and `max-records` set to 500, and count orders per customer email; keep emails with at least `{min-orders}` orders. Then call `woocommerce-get-order` with `created-date.from` set to the cutoff and `max-records` set to 500, and remove every email that ordered since then.

**Step 3: Check them in Drip**

Call `drip-get-campaign-subscriber` with `campaign-id` set to the campaign's id and remove anyone already in it. For each remaining email, call `drip-get-subscriber` with `email` set to it. Keep only active subscribers; set aside the unsubscribed and those not in Drip.

**Step 4: Confirm**

Show a table of people to enroll: email, order count, last order date, lifetime total per currency. Show counts for the set-aside groups. Ask the user to confirm. Do not continue without a clear yes.

**Step 5: Enroll and verify**

For each confirmed person, call `drip-add-subscriber-to-campaign` once with `campaign_id` set to the campaign-id and `email` set to their email. Then call `drip-get-campaign-subscriber` with the campaign-id and confirm they appear. Report enrolled, failed and skipped by reason.

**Rules & Guidelines:**

* Tools whose names start with drip- are on the drip server; tools whose names start with woocommerce- are on the woocommerce server. Both servers must be connected.
* Match people across the two systems by email, compared case-insensitively with surrounding spaces removed. Drip uses `email`; WooCommerce uses `email` on customers and `customer-email` on orders, order lines and refunds.
* Compute dates as today minus the stated number of days and pass them as YYYY-MM-DD.
* The only write allowed is `drip-add-subscriber-to-campaign`, for active Drip subscribers only, after the user confirms in Step 4.
* Never enroll people who are unsubscribed or not in Drip: this tool creates missing people in Drip, which would email someone who never opted in.
* Do not call `drip-activate-campaign`; activating the campaign is the user's decision.
* Make no changes in WooCommerce. Do not call `woocommerce-add-customer`, `woocommerce-update-customer`, `woocommerce-update-order`, `woocommerce-add-order-note`, `woocommerce-add-coupon` or `woocommerce-add-refund`.

**Validation:**

* If either order call returns exactly 500 records, say the results may be incomplete.
* If no one qualifies, say so and stop without writing anything.
* Never add amounts in different currencies together; total each currency separately.

Who it's for

One answer, three teams that use it

Email marketers

Fill a win-back campaign with the right people

Enroll repeat buyers who have gone quiet, limited to active subscribers, with order history shown.

Enroll WooCommerce customers with 3 or more orders and none in 120 days in the Drip Come back campaign.

Retention managers

Win back valuable customers

See each person's order count, last order and spend before you approve them.

Who are our lapsed repeat WooCommerce buyers that are still active in Drip?

Store owners

Avoid emailing people who opted out

Unknown and inactive emails are left out, so the campaign only reaches subscribers.

Add lapsed WooCommerce customers to our Drip win-back series, but only active subscribers.

How it works

What PopdockAI does when you ask

You name the win-back campaign and set what counts as lapsed, and your AI assistant finds the right buyers. Nobody is enrolled until you confirm, and enrollments are read back.

01

Ask

You name the campaign, the lapsed period and minimum earlier orders.

Your AI tool

02

Find

It finds repeat buyers with no order since the cutoff.

woocommerce-get-order

03

Check

It keeps active Drip subscribers not already on the campaign.

drip-get-campaign
drip-get-campaign-subscriber
drip-get-subscriber

04

Confirm

You review each person, then they are enrolled and read back.

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

drip-get-campaign

Returns Drip email series campaigns with status, active and unsubscribed counts, number of emails, sender and opt-in settings. Filter by name, status, minimum active subscribers or created date.
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

drip-get-campaign-subscriber

Returns the people subscribed to each Drip email series campaign, with the campaign's status and the person's tags and lead score. Filter by campaign id or name, a person's email, subscriber status or minimum lead score.
get-data

drip-get-subscriber

Returns Drip people (subscribers) with name, email, location, tags, status, GDPR consent, lead score and lifetime value. Filter by exact email, email domain, tag, status, country, minimum lead score, minimum lifetime value or date added.
run-action

drip-add-subscriber-to-campaign

Subscribes a person to a Drip email series campaign by email address. Drip creates the person if they are not in Drip yet.
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

Lapsed buyers in your win-back series, opted in only

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