Connect WooCommerce: products and orders
The AI answers from your published products, their prices and whether they're in stock, and your team sees a customer's WooCommerce orders beside their chat. The key is read-only, so Chattoko can't change anything in your store.
Before you start
- WooCommerce on your WordPress site, and an administrator login there.
- Your site opens with https://. WooCommerce only hands out API keys that work over a secure connection.
- You're the owner of your Chattoko workspace: only the owner can connect a store.
- The chat itself goes on your site separately, with the free Chattoko plugin (see Add the chat to WordPress).
Steps
Each short video shows the steps named on it. Press play to watch; the videos have no sound.
In WordPress, open WooCommerce ▸ Settings ▸ Advanced ▸ REST API keys and press Add key, or Create an API key if there are none yet.
Type a Description such as Chattoko, keep yourself as the User, choose Read under Permissions and press Generate API key.
WooCommerce shows a Consumer key and a Consumer secret. Copy both now: the secret is hidden once you leave the page.
In Chattoko, open Integrations ▸ WooCommerce and type your Store URL, starting with https://.
Paste the Consumer key and the Consumer secret, then press Save Changes.
Open Integrations ▸ WooCommerce again and press Sync products now: it says how many products came across. Press it again whenever you add or change products.
Check it worked
Integrations ▸ WooCommerce says Connected. Press Test in the Inbox to open a test chat and ask about one of your products: the AI answers with its price.
If it didn't work
- It says the store URL must start with https://.
- WooCommerce only accepts API keys over a secure connection. Type your address as it opens in your browser, with https:// at the start. If your site doesn't open with https://, ask your web host to turn on SSL first.
- Sync says "WooCommerce API error: 401".
- WooCommerce refused the key. It was mistyped, revoked or replaced by a newer one, or it was made with Write permission, which can't read, or for a user who can't manage the shop. Make a new key with Read (steps 1–3), paste both values again and press Save Changes.
- Sync says "WooCommerce API error: 404".
- WooCommerce's API needs your site's pretty links. In WordPress, open Settings ▸ Permalinks, choose any option except Plain and press Save Changes. If your shop lives in a folder, such as example.com/shop, put the folder in Store URL too.
- It synced 0 products.
- Chattoko reads published products only, up to 2,000. Publish them in WooCommerce (drafts and private products are left out), then press Sync products now again.
- A customer's orders don't show beside their chat.
- Orders show when the chat has the customer's email and it matches the billing email on their orders exactly. Ask for an email in your chat form so more chats have one.
Related
Updated