New: connect Claude, ChatGPT or Cursor to your WooCommerce store. See how →

StoreAgent
Affiliates & loyalty recipe

Recruit Your Best Customers as Affiliates

Finds your highest-spending repeat customers who are not affiliates yet, writes the invite, and adds the ones who say yes to AffiliateWP. Needs StoreAgent 1.2.2 or later.

WHAT IT DOES asks first Changes your store, only after you say yes
TIME SAVED ~45 min vs doing it by hand
REQUIRES BOTH
StoreAgentFree plugin · MCP on every plan
+
AffiliateWP AffiliateWP 2.37.0+ · changes need Enable MCP Write Access on
Connect your store
THE PROMPT
Find my 20 customers who spent the most in the last 12 months and placed at least 3 orders. Check AffiliateWP and remove anyone who is already an affiliate. Show me the rest with total spent, order count and last order date. Write a short, friendly email I can send to invite them to join my affiliate program. When I tell you who said yes, add each one as an active affiliate with my default rate and send the AffiliateWP welcome email.
PASTE INTO ClaudeChatGPTCursor+ any MCP client
WHAT HAPPENS NEXT

What Happens When You Paste It

Your assistant picks the right abilities, pulls live data from your store and does the work. Here’s roughly how the conversation goes.

1
It reads first. Read abilities run straight away, so it’s working from your real catalog, not guessing.
2
It checks with you. Anything that writes to your store stops and asks before it goes ahead.
3
It’s all logged. Every ability call shows up in wp-admin, so you can see exactly what changed.
Claude · connected to your store
yourstore.com · via StoreAgent MCP
Live
Find my 20 customers who spent the most in the last 12 months and placed at least 3 orders…
18 customers spent over $600 across 3 or more orders in the last 12 months. 3 are already affiliates, so 15 are left. Mia Chen leads with $2,140 over 9 orders. Calling:
storeagent/find-customersdone
affiliatewp/list-affiliatesdone
affiliatewp/add-affiliatedone
CONFIRM BEFORE WRITING
This will make changes in WooCommerce. Do you want me to go ahead?
Yes, applyShow me first
Here is a 4-sentence invite you can send. Mia, Tom and Lena said yes, so they are now active affiliates and each got the welcome email with their referral link.
UNDER THE HOOD

Abilities This Recipe Calls

Make sure these are switched on in your StoreAgent MCP settings. You can turn any of them off at any time.

read only
Finds customers by name or email, or by how much they spent and how many orders they placed, highest spender first.
storeagent/find-customers
read only
Lists affiliates with status, rate, group, earnings and referral counts. Filters by status, name, email or date.
affiliatewp/list-affiliates
asks first
Registers a user as an affiliate, or creates the user from an email address first.
affiliatewp/add-affiliate
MAKE IT YOURS

Tweak It for Your Store

Add one of these to the end of the prompt. Swap anything in [brackets] for your own details.

+ Only include customers who ordered in the last 90 days.
+ Give them a 25% rate instead of my default.
StoreAgent

PO BOX 4362
Gumdale QLD 4154
Australia

Our Brands

© 2026 Rymera Web Co Pty Ltd. All Rights Reserved. ABN 51 604 474 213. Privacy Policy · Terms of Service · Data Processing Addendum · Affiliate Disclosure