AI Chatbot for WooCommerce: How to Add One and Feed It Your Product Catalog
Add an AI chatbot to WooCommerce and connect it to your public product feed via the Store API, so it can answer real product questions.
WooCommerce gives you full control over your store, but it leaves customer support entirely up to you — every "is this in stock," "what sizes do you have," and "when will this ship" lands in your inbox unless you build something to catch them first. An AI chatbot for WooCommerce does exactly that, and — unlike most generic chatbot tutorials — it can be connected directly to your real product data, not just a static FAQ.
Here's how to set one up with ChatInCart, including the public product feed most WooCommerce guides don't mention.
Step 1: Create Your Agent and Train It
Sign up for a free ChatInCart account, name your agent, and add a short description of your store.
Connect your live product catalog
WooCommerce ships with a public, unauthenticated Store API that powers its own cart and checkout blocks — and you can point ChatInCart at the same endpoint to give your chatbot real product data. The endpoint is:
https://yourstore.com/wp-json/wc/store/v1/products
This returns your published products — names, prices, descriptions, and stock status — in structured JSON, without needing any API key or authentication, because it's the same public data your storefront already shows to visitors. Paste this URL into ChatInCart as a data source, and your agent can answer specific product questions pulled straight from your live catalog.
Note: This is WooCommerce's public Store API (
/wc/store/v1/), not the authenticated REST Admin API (/wc/v3/). You don't need to generate API keys for this — it's designed to be read by front-end tools without credentials, since it only exposes what's already public on your site.
Add your policies and a Q&A set
Alongside the product feed, add:
- Your shipping and returns policy pages as direct links.
- A support manual or FAQ document, if you have one, covering anything not obvious from the product pages themselves.
- A short list of Q&A pairs for your most frequent pre-sale questions.
Step 2: Embed the Chat Widget
Since WooCommerce runs on WordPress, embedding the widget uses the same approach as any WordPress site:
- Copy your embed snippet from the ChatInCart dashboard.
- In your WordPress admin, install a free header/footer scripts plugin (search "Insert Headers and Footers" in Plugins → Add New).
- Paste the ChatInCart snippet into the plugin's footer field and save.
- Visit your store in an incognito window to confirm the widget is live on every page, including individual product pages.
If you'd rather edit your theme directly, you can also paste the snippet into your theme's header.php file just before the closing </head> tag via Appearance → Theme File Editor — though a plugin is the safer option if you're not comfortable editing theme files, since it survives theme updates.
Step 3: Brand It with a Real Human Avatar
Swap out the default bot icon for a warm, real-looking avatar and give your assistant an actual name — think "Chat with Emma" rather than "Support Bot." This one detail changes how shoppers perceive the interaction: a named, human-styled agent feels like getting help from a person on your team, which makes hesitant shoppers more likely to actually ask the question that's stopping them from buying, rather than just leaving the page.
Why Connecting the Product Feed Matters
Most chatbot tutorials stop at "add your FAQ." That gets you a bot that can answer generic policy questions but falls back to "please check the product page" the moment someone asks about a specific item — which is precisely the moment that matters most. By pointing ChatInCart at your live Store API feed, your agent can answer "is the blue one in stock" or "how much is shipping on this" with the same accuracy as your product page itself, because it's reading the same underlying data. That's the difference between a chatbot that deflects and one that actually closes a sale a human agent might have missed at 2am.
Running Shopify or a General WordPress Site?
If your store is on Shopify instead, the setup is nearly identical but uses Shopify's own public product feed — see our AI chatbot for Shopify guide for the exact URL format. If your WordPress site isn't running WooCommerce, our general AI chatbot for WordPress guide covers the same embed process without the product feed step. For platform comparisons and the bigger picture, read our AI chatbot for ecommerce guide.
Get Started
- Create a free ChatInCart account.
- Add
https://yourstore.com/wp-json/wc/store/v1/productsas a data source, along with your policies. - Install a header/footer plugin and paste in the embed script.
- Name your agent and give it a real, human avatar.
Start free — no credit card required — or see pricing plans as your store grows.
