# WooCommerce

## Prerequisites

* A WooCommerce store with admin access
* Your store URL (e.g., `https://mystore.com`)

## Setup

### Step 1: Enable WooCommerce in Alhena

1. In Alhena, go to **Settings > Integrations**
2. Find **WooCommerce** and click **Enable**
3. You'll be taken to the WooCommerce configuration page

### Step 2: Connect Your Store

1. Enter your **Store Name** (a friendly name to identify your store)
2. Enter your **Store URL** (the full URL of your WooCommerce store, e.g., `https://mystore.com`)
3. Click **Connect**

You'll be redirected to your WooCommerce store to authorize the connection. Log in with your WooCommerce admin credentials and approve the access request.

After authorization, you'll be redirected back to Alhena with your store connected.

***

## Enabled Agents

When you connect your WooCommerce store, the following agents are enabled:

| Agent                      | Description                                                                |
| -------------------------- | -------------------------------------------------------------------------- |
| **Order management agent** | Handles order inquiries, tracking, and order-related customer support      |
| **Product expert agent**   | Provides detailed product information, specifications, and recommendations |

You can configure these agents in **AI Settings > Agents**.

***

## Recommended: Add Your Store to Training

After connecting, we recommend adding your WooCommerce store's domain to your training URLs so Alhena can learn from your product pages and help articles. See [Training on Websites](https://alhena.gitbook.io/docs/ai-configuration/data-sources/websites) for more information.

***

## Disconnecting

To disconnect your WooCommerce store:

1. Go to **Settings > Integrations > WooCommerce**
2. Click **Disconnect**
3. Confirm the disconnection

This will disable the WooCommerce-connected agents and revoke access to your store data.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alhena.gitbook.io/docs/integrations/ecommerce/integrating-alhena-ai-with-woocommerce.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
