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

StoreAgent
Affiliates & loyalty recipe

Turn Your Top Referrers Into Affiliates

Finds the RewardsWP members who refer the most friends, checks who is not in AffiliateWP yet, and makes the ones you pick affiliates who earn commission.

WHAT IT DOES asks first Changes your store, only after you say yes
TIME SAVED ~40 min vs doing it by hand
REQUIRES
StoreAgentFree plugin · MCP on every plan
+
RewardsWP RewardsWP 1.6.0+ (free) · changes need Enable MCP Write Access on
+
AffiliateWP AffiliateWP 2.37.0+ · changes need Enable MCP Write Access on
Connect your store
THE PROMPT
Rank my RewardsWP members by completed referrals over the last 6 months and show me the top 15. Check AffiliateWP and remove anyone who is already an affiliate. For the rest, show their referrals and points balance, and write a short note inviting them to earn commission on top of their points. When I approve someone, add them as an active affiliate in AffiliateWP with my default rate and send the 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
Rank my RewardsWP members by completed referrals over the last 6 months and show me the top 15…
12 members completed 3 or more referrals in the last 6 months. 2 are already affiliates. Priya Shah leads with 9 referrals and 4,200 points. Calling:
rewardswp/list-top-membersdone
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
You approved 6 members. They are now active affiliates in AffiliateWP 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
Ranks members by points earned or completed referrals for a period.
rewardswp/list-top-members
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.

+ Look at the last 12 months instead.
+ Put them in my Ambassadors affiliate group.
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