Connectors

/

WooCommerce

/

Tag WooCommerce product buyers in Drip
Write
Cross-Connector

Tag buyers of a WooCommerce product in Drip for follow-up

For marketers who want everyone who bought a WooCommerce product tagged in Drip for cross-sells by asking their AI assistant.

Try PopdockAI free
Get a live demo
Tag WooCommerce product buyers in Drip
Tag everyone who bought BLEND-01 in the last 90 days with bought-blend in Drip.
68 people bought BLEND-01 in the last 90 days; 51 can be tagged in Drip. - Subscribed: 51 buyers to tag bought-blend - Already tagged: 6 - Not tagged: 7 unsubscribed and 4 not in Drip - Guests: 3 lines with no email, left out Shall I tag the 51 subscribers?
WooCommerce
Sample figures. Your results come from your own account.
woocommerce-get-product
woocommerce-get-product-variation
woocommerce-get-order-line
drip-get-subscriber
drip-add-subscriber-tag

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

Product follow-ups that need a list of real buyers

Product follow-ups in Drip need to know who bought an item in WooCommerce. That means confirming the SKU, pulling order lines, removing cancelled and refunded ones and tagging buyers without creating subscribers for guests who never opted in.

Without PopdockAI

  • Confirm the SKU and pull its order lines
  • Remove cancelled and refunded orders
  • Look up each buyer in Drip
  • Tag a guest and create a subscriber by accident

With PopdockAI

  • The product or variation is confirmed, stopping on no or several matches
  • Cancelled, failed and refunded orders are dropped
  • Buyers are sorted as subscribed, tagged, unsubscribed or not in Drip
  • Only subscribed buyers are tagged after you confirm

The prompt

Use this prompt

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

Prompt
**Objective:** Tag in Drip everyone who bought the WooCommerce product with SKU `{product-sku}` in the last `{lookback-days}` days (default 90), using the tag `{tag}`.

**Step 1: Confirm the product**

Call `woocommerce-get-product` with `sku` set to `{product-sku}`. If nothing comes back, call `woocommerce-get-product-variation` with the same `sku`. If neither finds it, or more than one product matches, list what you found and stop. Note the product name.

**Step 2: Find the buyers**

Call `woocommerce-get-order-line` with `line-sku` set to `{product-sku}`, `date-created.from` set to today minus `{lookback-days}` days, and `max-records` set to 500. Drop lines whose order status is cancelled, failed or refunded. Collect the distinct customer emails, with each buyer's quantity and last purchase date.

**Step 3: Check each buyer in Drip**

For each email, call `drip-get-subscriber` with `email` set to it. Sort buyers into: subscribed in Drip, already carrying `{tag}`, unsubscribed in Drip, and not in Drip.

**Step 4: Confirm**

Show the counts per group and the list of subscribed buyers who will be tagged. Ask the user to confirm. Do not continue without a clear yes.

**Step 5: Tag and verify**

For each confirmed subscribed buyer who does not already have the tag, call `drip-add-subscriber-tag` once with `email` and `tag` set to `{tag}`. Then re-read a sample of up to 5 with `drip-get-subscriber` and confirm the tag shows. Report tagged, 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-tag`, for subscribed buyers only, after the user confirms in Step 4.
* Never tag buyers who are not in Drip or who are unsubscribed: tagging an unknown email creates a new Drip subscriber. List them instead.
* Do not call `drip-add-subscriber`, `drip-update-subscriber` or `drip-add-subscriber-to-campaign`.
* 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 no qualifying order lines come back, say so and stop.
* Order lines with a blank customer email are guest orders with no address to match; count them and leave them out.
* If an order line's SKU differs only in case from `{product-sku}`, treat it as the same product.

Who it's for

One answer, three teams that use it

Email marketers

Set up a product follow-up

Tag everyone who bought a product so your Drip workflow can send care tips or cross-sells.

Tag buyers of KETTLE-05 in the last 60 days with bought-kettle in Drip.

Ecommerce managers

Plan a cross-sell campaign

Find real buyers of an item and count how many can be reached by email.

How many people bought TEE-BLK-M in the last 90 days, and how many are subscribed in Drip?

Marketing operations

Respect opt-outs

Unsubscribed buyers and guests not in Drip are left untagged and counted.

Tag buyers of BLEND-02 since 1 September with blend-buyer, subscribed people only.

How it works

What PopdockAI does when you ask

You give a SKU, a lookback and a tag, and your AI assistant finds the real buyers and checks them in Drip. Only subscribed buyers are tagged, after you confirm.

01

Ask

You give a product SKU, a lookback period and a tag.

Your AI tool

02

Find

It confirms the product and reads order lines, dropping canceled and refunded orders.

woocommerce-get-product
woocommerce-get-product-variation
woocommerce-get-order-line

03

Check

It sorts buyers in Drip as subscribed, tagged, unsubscribed or not in Drip.

drip-get-subscriber

04

Confirm

You approve, then only subscribed buyers are tagged.

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

woocommerce-get-product

Returns WooCommerce products with prices, stock, status, categories, total sales and average rating. Filter by SKU, name, category, type, status, stock status, price range or a low stock threshold.
get-data

woocommerce-get-product-variation

Returns the variations of WooCommerce variable products with SKU, prices, sale flag and stock. Filter by parent product, SKU, status, stock status, price range, on sale or a low stock threshold.
get-data

woocommerce-get-order-line

Returns the product lines on WooCommerce orders: product, SKU, quantity, price, line total and tax. Filter by order, customer, SKU or product id, order status and date range.
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-tag

Applies a tag to a Drip subscriber identified by email address. Creates the tag if it does not exist.
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

Buyers tagged for follow-up, no accidental subscribers

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