# WooCommerce

> Create a REST API key in WordPress, connect your WooCommerce store and choose what the AI agent can do with your products and orders.

Source: https://docs.komplian.com/integrations/woocommerce

Where: Account menu → Komplian Store → Integrations → WooCommerce
Who: Owners and admins.

The WooCommerce integration brings your store's products and orders into Komplian as they change. You connect it with a REST API key that you create in WordPress.

## Create a key in WordPress

### 1. Open the REST API settings
In your WordPress admin, go to **WooCommerce → Settings → Advanced → REST API**.

### 2. Add a key
Press **Add key**. Name it "Komplian" and choose the WordPress user it acts as.

### 3. Choose the permissions
Choose **Read** to sync products and orders. Choose **Read/Write** only if you also want to publish products from Komplian to your store.

### 4. Copy both values
Press **Generate API key**. Copy the **Consumer Key** and the **Consumer Secret**. WordPress shows the secret only once.

## Connect WooCommerce

### 1. Open WooCommerce in the Store
Open the menu under your name, choose **Komplian Store** and go to **Integrations → WooCommerce**.

### 2. Paste your details
Enter the **Store URL**, for example `https://lumenstudio.com`, then paste the **Consumer Key** and the **Consumer Secret**.

### 3. Connect
Press **Connect**. The status changes to **Connected**, and your products appear in **Inventory → Catalogue**.

## What syncs

| Data | Direction | When |
| --- | --- | --- |
| Products | WooCommerce → Komplian | When a product is created, updated or deleted. |
| Orders | WooCommerce → Komplian | When an order is created or updated. |
| An item you created in Komplian | Komplian → WooCommerce | Once, when you press **Publish to a store** on it. Needs a **Read/Write** key. After that, WooCommerce leads. |

When you connect, Komplian asks your store to send these changes. It never writes orders or stock back to WooCommerce. **Sync Now** pulls the latest data without waiting for the next change.

## Choose what the agent can do

Under **AI Skills**, switch each skill on or off.

| AI Skill | What the agent does |
| --- | --- |
| **Get Products** | Reads your product list. |
| **Search Products** | Finds products that match what the customer asks. |
| **Track Orders** | Tells a customer the status of their order. |
| **Check Inventory** | Says whether a product is in stock. |
| **Recommend Products** | Suggests products to the customer. |

With a store connected, the flow builder shows the **Ecommerce** group of triggers, such as **Order Completed**. Flows are included from the Growth plan. See [Triggers](https://docs.komplian.com/flows/triggers).

## Disconnect WooCommerce

Open **Integrations → WooCommerce** and press **Disconnect**. Confirm in the dialog. To cut access completely, also revoke the key in **WooCommerce → Settings → Advanced → REST API**.

## Limits and rules

| Rule | Detail |
| --- | --- |
| One store at a time | Only one e-commerce platform can be connected. Disconnect Shopify or another store first. |
| Currency | While a store is connected, the workspace currency follows the store's currency. See [Workspace settings](https://docs.komplian.com/settings/workspace). |
| Plan | Counts as one of your plan's connected integrations: 5, 10, 20 or 50. |

## Related

- [Catalogue](https://docs.komplian.com/products/catalog): Where your WooCommerce products appear.
- [Shopify](https://docs.komplian.com/integrations/shopify): The same integration for Shopify stores.
- [All integrations](https://docs.komplian.com/integrations/overview): Every tool you can connect.
