Skip to main content
WooCommerce Store Integration connects your WordPress and WooCommerce store directly to Tools > Ecommerce in ChatbotX. Once connected, ChatbotX automatically syncs your WooCommerce products, variants, inventory, coupons, and orders so you can run your Webview Shop, shopping cart, and Ecommerce Triggers directly from your WooCommerce data.

Prerequisites on WordPress and WooCommerce

Before connecting your store, make sure your WordPress site meets these requirements:
  • Canonical HTTPS URL: Your store must run on a valid https:// URL without root redirects (for example, if your site uses https://www.yourstore.com, enter that exact URL rather than http:// or a redirecting alias that may strip API authentication headers).
  • Pretty Permalinks enabled: In WordPress Admin > Settings > Permalinks, select any structure other than Plain (such as Post name) and click Save Changes. This enables the /wp-json/wc/v3/ REST API endpoints.
  • Administrator access: You need an Administrator account to generate a WooCommerce REST API key with Read/Write permissions.

Create a REST API key in WooCommerce

Generate a Consumer key and Consumer secret in your WordPress Admin so ChatbotX can sync catalog data, create In-App Checkout orders, and register webhooks.
1

Open WooCommerce REST API settings

In your WordPress Admin sidebar, go to WooCommerce > Settings, switch to the Advanced tab, click REST API (or REST API keys), and click Create an API key (or Add key).
Woocommerce Rest Api Navigation
2

Configure key details with Read/Write permissions

Fill in the Key details form:
  • Description: Enter a recognizable name (for example, ChatbotX Ecommerce).
  • User: Select a WordPress Administrator account.
  • Permissions: Select Read/Write. Do not select Read, because write access is required for In-App Checkout orders and automatic webhook registration.
Click Generate API key.
Woocommerce Rest Api Key Details Form
3

Copy Consumer key and Consumer secret

Immediately copy both credentials displayed on screen, as WooCommerce hides the secret once you leave the page:
  • Consumer key (ck_...)
  • Consumer secret (cs_...)
Woocommerce Rest Api Credentials Generated

Connect WooCommerce to ChatbotX Ecommerce

Open Tools > Ecommerce > Settings > WooCommerce in ChatbotX to link your store.
1

Enter Store URL and API credentials

Fill in the connection fields:
  • Store URL: Your canonical WordPress/WooCommerce site URL including https:// (for example, https://yourstore.com, without /wp-admin).
  • Consumer key: Paste your ck_... key.
  • Consumer secret: Paste your cs_... secret.
Ecommerce Settings Woocommerce Connect
Click Connect. ChatbotX validates the credentials and automatically registers the Webhook URL (https://app.chatbotx.io/api/woocommerce/{workspaceId}/webhook) for product.*, order.*, and coupon.* events.
2

Verify connection status

Once connected, the page displays your Store URL, Sync Now and Disconnect buttons, the Sync Status card (showing Connected to..., Last synced counts, and current sync state), and the registered Webhook URL.
Ecommerce Settings Woocommerce Connected Status
3

Switch Store Source to WooCommerce

Open Tools > Ecommerce > Settings > General and change Store Source from ChatbotX to WooCommerce.
Ecommerce Settings General Store Source Woocommerce
When you switch Store Source to WooCommerce:
  • ChatbotX automatically syncs your WooCommerce currency, symbol, and formatting, and hides internal Payments and Shipping tabs.
  • An initial full sync imports products, coupons, and the last 60 days of orders quietly without sending notifications to past customers.
  • Your existing native ChatbotX catalog data is preserved in the background and restored if you switch Store Source back to ChatbotX.
4

Configure WooCommerce Checkout settings

Open Tools > Ecommerce > Settings > Checkout to define how customers complete orders from the Webview Shop:
Ecommerce Settings Checkout Woocommerce Methods
  • Checkout Method:
    • WooCommerce payment page: Redirects customers to your store’s native WooCommerce checkout payment page (/checkout/order-pay/...) with a cbx_ref tracking parameter so they can pay through your configured WooCommerce payment gateways. Unpaid (pending) orders are not displayed or notified until payment succeeds or the order moves to processing.
    • In-App Checkout: Lets customers place Cash on Delivery (COD) / processing orders directly inside the ChatbotX Webview. ChatbotX creates the order in WooCommerce via API, deducts stock, syncs the order immediately, and clears the cart.
  • Auto-apply Discount Codes: Allow customers to apply synced WooCommerce coupons directly inside the Webview cart before checking out.
  • Delivery cost: Set a flat delivery fee applied to orders placed through either WooCommerce payment page or In-App Checkout.

Manage synced products, coupons, and orders

When Store Source is set to WooCommerce, your catalog and order tabs run in read-only sync mode, keeping WooCommerce as the single source of truth:
Ecommerce Woocommerce Orders And Products Sync
  • Products tab: Displays Sync Products and Open WooCommerce buttons, along with Status badges (Active, Draft, Unlisted) instead of local toggle switches. Click any product (or … > View Details) to inspect Variants, SKU, Price, Inventory, and jump to Edit on WooCommerce, or choose Copy Product Link.
  • Visibility control: Even in read-only mode, you can toggle Visible under Categories and Active under Vendors to control which groups appear in the Webview Shop.
  • Orders tab: Includes Payment (All, Paid, Pending, Unpaid, Refunded) and Fulfillment (All, Fulfilled, Unfulfilled, Partial) filters, Sync Orders, CSV Export, and Open WooCommerce. Click any order to inspect Order Details and open View on WooCommerce.
  • Ecommerce Triggers: Real-time WooCommerce webhooks trigger New Order, Product Ordered, Order Accepted, Order Concluded, Order Cancelled, and Order Paid flows for new order activity.
WooCommerce does not have a dedicated Shipped order status by default, so the Order Shipped trigger does not fire for WooCommerce stores.

Troubleshooting

  • Webhooks stopped firing after temporary server downtime: WooCommerce automatically disables webhooks after repeated delivery failures. Click Sync Now in Tools > Ecommerce > Settings > WooCommerce to pull recent updates and automatically re-enable disabled ChatbotX webhooks.
  • 404 Not Found when connecting: Check WordPress Admin > Settings > Permalinks and confirm it is not set to Plain. Save changes to flush rewrite rules so /wp-json/wc/v3/ is accessible.
  • 401 or 403 Unauthorized error: Verify that your REST API key was created with Read/Write permissions (not Read) and that your Store URL uses the exact canonical https:// URL without redirects stripping Authorization headers.