# Give a Customer Membership Access by Hand

> Finds the customer from their orders, checks what they already have, then adds the plan you choose.

- Job: [Customers](https://storeagent.ai/mcp-recipes/job/customers/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~10 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + WooCommerce Memberships
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/grant-membership/

## The prompt

```text
Find the customer who uses the email [customer email] from their orders. Show me any memberships they already have, then list my membership plans. Create a [plan name] membership for them, linked to their most recent order, and wait for my OK before you create it.
```

## What happens when you paste it

You: Find the customer who uses the email [customer email] from their orders…

Assistant: Found 3 orders from sam@example.com (user 214). They have 1 expired Silver membership. Calling: `woocommerce/orders-query`, `woocommerce-memberships/user-memberships-list`, `woocommerce-memberships/plans-list`, `woocommerce-memberships/user-memberships-create`.

Assistant: This will make changes in WooCommerce. Do you want me to go ahead?

Assistant: Created an active Gold membership for user 214, linked to order 10482.

## Abilities this recipe calls

- **Find orders** (`woocommerce/orders-query`, read only, from WooCommerce): Finds orders by status, customer, email or date, with the items in each order.
- **List a customer's memberships** (`woocommerce-memberships/user-memberships-list`, read only, from WooCommerce Memberships): Lists the memberships of one customer, with plan, status and dates.
- **List membership plans** (`woocommerce-memberships/plans-list`, read only, from WooCommerce Memberships): Lists your membership plans with access, length and rules.
- **Grant a membership** (`woocommerce-memberships/user-memberships-create`, asks first, from WooCommerce Memberships): Adds a customer to a membership plan.

## Variations

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

- Skip it if they already have an active membership.
- Do this for every customer who bought [product] in the last 30 days.

## Related recipes

- [Answer a Where Is My Order Question](https://storeagent.ai/mcp-recipes/trackship-where-is-my-order.md): Paste a customer's email and get the full tracking story plus a ready reply.
- [Find Failed Shipping Notifications](https://storeagent.ai/mcp-recipes/trackship-failed-shipping-notifications.md): See which tracking emails and texts never reached customers, and who needs a manual update.
- [Reorder Link for a Regular Customer](https://storeagent.ai/mcp-recipes/payplug-repeat-order-link.md): Rebuilds a customer's last order with current stock and prices, and sends a Payplug link to pay.

---

Part of the StoreAgent WooCommerce MCP Recipes directory: https://storeagent.ai/mcp-recipes/ (index for LLMs: https://storeagent.ai/mcp-recipes/llms.txt). Get StoreAgent free: https://app.storeagent.ai/sign-up/
