# Check AI Memory Is Ready, Then Switch the Chat Assistant On

> Makes sure the chat assistant has learned your products and pages before shoppers can talk to it, then turns it on.

- Job: [Store setup & admin](https://storeagent.ai/mcp-recipes/job/setup/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~15 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan)
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/chat-assistant-go-live/

## The prompt

```text
Before we turn on the StoreAgent chat assistant, check how far the AI memory sync has got and give me the indexed, failed and pending counts for each content type. List any items that failed with the error message. If most of our products and pages are indexed, tell me it is ready and turn the chat assistant on after I say OK. If it is not ready, tell me what to fix first and leave it off.
```

## What happens when you paste it

You: Before we turn on the StoreAgent chat assistant, check how far the AI memory sync has got and give me the indexed, failed and pending counts for each content type…

Assistant: Sync is 96% done: 412 of 428 items. Products 380 of 384 indexed, pages 32 of 44. 4 products failed with a timeout error. Calling: `storeagent/get-memory-sync-status`, `storeagent/get-memory-content-status`, `storeagent/get-memory-failed-items`, `storeagent/get-chat-widget-config`, `storeagent/toggle-chat-widget`.

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

Assistant: Ready. 4 failed products are minor, and pages are still syncing. After your OK I switched the chat assistant on. It now shows on product pages.

## Abilities this recipe calls

- **Check AI memory sync progress** (`storeagent/get-memory-sync-status`, read only, from StoreAgent): Shows how much of your content the chat assistant has learned and how long is left.
- **Check AI memory by content type** (`storeagent/get-memory-content-status`, read only, from StoreAgent): Shows total, indexed, failed and pending counts for each content type in AI memory.
- **List failed AI memory items** (`storeagent/get-memory-failed-items`, read only, from StoreAgent): Lists content that did not sync into AI memory, with the error and retry count.
- **Read chat assistant settings** (`storeagent/get-chat-widget-config`, read only, from StoreAgent): Reads the chat assistant's name, greeting, colors, position, starters and display rules.
- **Turn the chat assistant on or off** (`storeagent/toggle-chat-widget`, asks first, from StoreAgent): Shows or hides the chat assistant on your storefront.

## Variations

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

- Turn the chat assistant off instead while we [update the catalog].
- Retry the failed items first, then check again.

## Related recipes

- [Check What Your AI Assistant Actually Knows](https://storeagent.ai/mcp-recipes/ai-memory-health.md): A quick health check on which of your store content is indexed, pending or failing in StoreAgent memory.
- [Audit Every Membership Plan in One Go](https://storeagent.ai/mcp-recipes/membership-plans-audit.md): Lists every membership plan with its settings, so drafts and half-finished plans stand out.
- [Make the Chat Assistant Match Your Brand](https://storeagent.ai/mcp-recipes/chat-assistant-branding.md): Gives the chat assistant your brand colors, a name and a greeting that sounds like your store, instead of the defaults.

---

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/
