# Add an AI support agent to WooCommerce

> Train an AI agent on your WooCommerce store, add the chat with the widget script, and connect the store so it answers where-is-my-order questions.

To add an AI support agent to WooCommerce, crawl your storefront so the agent learns your pages and products, add the chat widget script to your WordPress site, then connect the store for live order status. The agent answers product, shipping and returns questions from your own content and cites the page each answer came from.

Connecting WooCommerce needs the  plan or higher. On Starter the agent can look up orders; order changes and handing the chat to your team need . Learning your store and showing the chat work on the Free plan.

## Before you start

- An AskVault account and your storefront address, such as `https://yourstore.com`.
- Admin or shop manager access to WordPress.
- For order status: pretty permalinks. In WordPress open **Settings** › **Permalinks** and pick anything other than "Plain".

## Steps

1. **Teach the agent your store.**

   
   
#### New dashboard

   Open **Knowledge** under **Your agent**, click **Add knowledge**, choose your website and paste your storefront address.

   
   
#### Previous dashboard

   Open **Knowledge**, choose **Add Source** › **Web Crawler** › **Domain Crawl**, paste your storefront address and start the crawl.

   
   

2. **Add the chat to your site.** Add the [widget script](/channels/website-widget/) to your theme. [Add the chat to WordPress](/channels/wordpress/) shows where it goes. The AskVault plugin is not in the WordPress plugin directory, so searching for it under **Plugins** finds nothing for now.

3. **Connect WooCommerce for order status.** 

   
   
#### New dashboard

   Open **Channels & Apps**, choose the **Apps** tab, find WooCommerce and click **Connect**.

   
   
#### Previous dashboard

   Open **Automation** › **Skills**, find **Order Status (WooCommerce)**, enable it and click **Connect WooCommerce**. WooCommerce is started from this skill card.

   
   

   Enter your store address with `https://` and nothing after the domain. WooCommerce shows its own authorization screen. Sign in as an admin or shop manager and approve. WooCommerce sends the access keys back to AskVault, so you never copy or paste a key.

AskVault connects only to public `https://` stores. WooCommerce's authorization screen shows the access AskVault asks for, read-only or read and write, and the key it sends back has only that access. Order status lookups only read, one order at a time. AskVault writes to your store only for its own webhooks and the [order change actions](/stores/order-changes/), if you switch them on.

## What the agent can do

- **Order status.** The agent asks for the order number and the billing email, looks the order up live and replies with status and a tracking link. An order number alone never works: the agent also needs the billing email, the phone number for an order with no email, or a chat opened from the shopper's own order page. Tracking comes from the `_wc_shipment_tracking_items` order field used by the WooCommerce Shipment Tracking plugin and compatible plugins. See [order status](/actions/order-status/).
- **Order help from your store pages.** The AskVault WordPress plugin adds a help button to the thank-you page, the My Account order pages and order emails, and opens the chat with the order attached. The plugin is not in the WordPress plugin directory; see [Add the chat to WordPress](/channels/wordpress/).
- **Order changes.**  Within the time window you set, a shopper can fix a same-country shipping address or cancel an unshipped order after confirming on a card. See [order changes](/stores/order-changes/).
- **Product answers.** Answers come from the crawl of your public storefront, which reads WooCommerce's public store feed.

## See the shopper's real cart in the chat

**In development, not yet available.** This describes how it will work once it is switched on.

When the chat adds products to your store's cart, its cart button shows the shopper's real WooCommerce cart, including items added from your theme. Each line shows the product name and its option values (for example Blue / M), the quantity and the line price, with the product photo when there is one. Add-on fields such as a gift message show only on your cart page. Below the lines are any coupons on the cart and your store's own **Total**, which says when it includes shipping, fees or tax. The chat never works out a saving itself.

The cart in the chat is read-only: it never changes quantities or removes items. The **View cart** button opens your cart page for that. A product added from the chat may not show on your theme's cart icon until the page reloads. The chat lists up to 20 lines and says how many more are in a bigger cart. If the cart can't be read, the chat says so and links to your cart page.

The chat takes your cart page's address from the settings WooCommerce adds to your pages, or from its add-to-cart script. On a page that has neither, the chat still shows the cart, but with no **View cart** button and no link to your cart page.

## What gets indexed for each product

The WooCommerce connection does not sync your catalogue. Product answers come from the storefront crawl, once, when you set the workspace up.

- **Product name and description** (the short description when there is no long one).
- **Price**, including ranges, and **currency**.
- **Stock status**, in stock or out of stock.
- **Categories** and **average rating**.

Not indexed today: **variations** (sizes, colours), **custom attributes** (materials, dimensions, weight), **product image alt text**, and per-variant SKUs or stock.

When a question is only partly covered, the agent answers from the related content it found and does not flag the missing detail. Judge coverage from the cited sources, not from how confident the answer sounds. For a detail that is not indexed, add a [saved answer](/knowledge/saved-answers/). When nothing in your content relates to the question, the agent replies that it does not have that information.

To refresh changed products, select their pages on the Knowledge page and click **Resync selected**. To add new products, run the domain crawl again; it adds pages you do not have yet but does not re-read existing ones. See [keep your knowledge up to date](/knowledge/keep-up-to-date/).

## What it does not do

- AskVault cannot raise an RMA, email a return label or move an order to "Return requested". Those stay in your WooCommerce admin or returns plugin. The agent answers from your returns policy and can [hand the chat to your team](/actions/hand-off-to-a-person/).
- Abandoned-cart recovery is not available for WooCommerce.
- Subscription lookups are not supported. Those questions go to your team.
- Each workspace connects to one store. For several stores, create a workspace for each.

## Check it worked

1. The chat launcher appears on your storefront.
2. A product question returns the price and stock status, with the product page as the source.
3. A known order number and billing email return the order status.

## If it doesn't work

**The connection shows an error after you approve.** The store's callback to AskVault did not complete. A firewall or security plugin blocking outbound requests is a common cause. Retry the connection.

**"Where's my order" finds nothing.** The email must match the order's billing email exactly, and the order number must be the WooCommerce order ID.

**Lookups are slow.** Each order answer waits on your WooCommerce REST API. AskVault stops waiting after 15 seconds, so slow hosting can make a lookup fail.

**Product changes don't show up.** Nothing refreshes your storefront on its own. Use **Resync selected**.

## Related

- [AI customer support for online stores](/stores/)
- [Add the chat to WordPress](/channels/wordpress/)
- [Answer return and shipping questions](/stores/returns-and-shipping/)
- [Add a support agent to Shopify](/stores/shopify/)

Source: https://docs.askvault.co/stores/woocommerce/
