Docs/E-Commerce/WooCommerce Integration

WooCommerce Integration

Connect your WooCommerce store to enable live product search, order lookups, cart display, and category browsing from your AI agent. The primary connection method uses WooCommerce's built-in REST API with an OAuth handshake, so no plugin is required for that path. An optional WordPress connector plugin is also available as an alternative or complementary connection method — see Optional: WordPress connector plugin below.

Prerequisites

  • •WooCommerce 3.5 or later.
  • •WordPress site served over HTTPS — the WooCommerce REST API requires a valid SSL certificate.
  • •WordPress permalinks set to Post name (go to WordPress Admin → Settings → Permalinks, select Post name, and save).
  • •The store must be publicly accessible — AIChatVault's servers need to reach your WooCommerce REST API endpoint.

Connecting via OAuth (recommended)

1

Open Integrations → WooCommerce

In your agent's sidebar, click Deploy or Integrations and select the WooCommerce card.
2

Enter your WooCommerce store URL

Type your full store URL, for example https://yourstore.com.
3

Click Connect

You are redirected to your WooCommerce store's OAuth approval page. Log in as an admin and click Approve.
4

Connection confirmed

You are redirected back to AIChatVault. The integration page shows a green Connected status. A background product sync starts automatically.

Connecting manually (fallback)

If the OAuth redirect cannot reach AIChatVault (e.g. your store is on a local network, behind a firewall, or the OAuth callback fails), use the manual connection method:

  • •In WooCommerce Admin, go to WooCommerce → Settings → Advanced → REST API.
  • •Click Add Key. Set Description to "AIChatVault", User to an admin account, and Permissions to Read/Write.
  • •Click Generate API Key and copy both the Consumer Key and Consumer Secret.
  • •On the WooCommerce integration page in AIChatVault, expand the Manual connection form and enter your store URL, Consumer Key, and Consumer Secret.

Available actions

ActionDescription
Product Search & RecommendationsSearches the WooCommerce catalogue and shows product cards with images, prices, and direct links.
Order Status LookupRetrieves order status and purchase history by order ID and customer email.
View CartDisplays the customer's current cart contents, quantities, and totals.
Browse CategoriesBrowses WooCommerce product categories to improve product discovery.
Update Customer ProfileLets signed-in customers update their name, email, or phone through chat.
Update Billing AddressLets signed-in customers add or modify billing addresses through natural conversation.
Order CancellationLooks up an order and, once the customer confirms via a confirmation card, cancels it. Always requires explicit confirmation before cancelling.
Compare ProductsShows a side-by-side comparison of up to 4 products the customer is considering.
Check Return EligibilityChecks whether an order is still within your configured return window. Governed by the Return Policy panel on the integration page (return window in days, eligible order statuses, and any excluded categories or products).
Check Discount CodeValidates a discount or coupon code the customer mentions against your store, and checks it against their live cart.
Get Cross-Sell / Related ProductsSuggests related, cross-sell, or upsell products after the customer shows interest in an item.

Optional: WordPress connector plugin

Alongside the OAuth/REST API connection above, AIChatVault also offers a downloadable WordPress plugin that pairs with your integration from inside WordPress Admin. It's optional — the store already works fully once connected via OAuth or a manual REST API key — but it adds a couple of things the REST API path doesn't cover on its own:

  • •Download the plugin from the WooCommerce integration page and install it like any other WordPress plugin, then use the Pair button on the integration page to link it — it opens your WP Admin with a short-lived pairing token that the plugin claims automatically.
  • •Once paired, the plugin sends a periodic heartbeat so AIChatVault can confirm it's active and report its version.
  • •It exposes GDPR-compliant data export and erasure endpoints, so requests submitted through WordPress's built-in Privacy tools (Tools → Export/Erase Personal Data) also cover conversations and action logs stored in AIChatVault for that customer's email address.

Widget embed code

Unlike Shopify, the WooCommerce integration does not auto-inject the chat widget. Copy the widget snippet from the integration page and paste it into your WordPress theme — typically just before the closing </body> tag in your theme's footer.php, or use a plugin like "Insert Headers and Footers" to add it site-wide without editing theme files.

Product sync

After connecting, AIChatVault syncs your WooCommerce product catalogue to the knowledge base. Use the Sync Products button on the integration page to trigger a manual sync at any time — useful after adding new products or making significant catalogue changes.

Disconnecting WooCommerce

Clicking Disconnect removes the integration and clears synced products from the knowledge base. The agent will no longer answer product or order questions from WooCommerce data. The API key you created in WooCommerce remains unless you delete it manually from WooCommerce Admin → REST API.

⚠️
If your WooCommerce site uses a self-signed SSL certificate or is on a local/development server, the OAuth flow and API calls will fail. Use a staging environment with a valid certificate, or connect a production store.

Was this page helpful?