# 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

- [Find Your VIP Customers](https://storeagent.ai/mcp-recipes/vip-customers.md): Your top spenders and most loyal repeat buyers, plus the ones who have gone quiet.
- [Say Sorry With Store Credit](https://storeagent.ai/mcp-recipes/store-credit-delays.md): Gives a small credit to every customer whose order is running late, with a note explaining why.
- [Set Which Chat Topics Go Straight to a Human](https://storeagent.ai/mcp-recipes/chat-escalation-rules.md): Checks real shopper chats for refund, billing and order problems, then sets the assistant to hand those chats to your team.

---

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/
