Back to blog
Guides

How to Add an AI Chatbot to Your WooCommerce Store

20 Mar 2026·5 min read

If you run a WooCommerce store, you already know the drill: customers email the same questions over and over. "Do you ship to Perth?" "Is this available in blue?" "What's your return policy?" An AI chatbot trained on your actual product catalogue can handle these questions instantly, around the clock, without you lifting a finger.

Here's exactly how to set it up with BotPlatform.

Step 1: Create a Knowledge Base

Once you're inside the BotPlatform dashboard, the first thing you'll do is create a Knowledge Base. Think of this as the brain of your chatbot — it's the repository of information the AI will draw on when answering questions.

Give your Knowledge Base a descriptive name (e.g., "My Store Products") and optionally add a brief description.

Step 2: Sync Your WooCommerce Products

In your Knowledge Base, select the Products tab and choose WooCommerce. You'll be prompted to enter your store URL and a REST API key (WooCommerce → Settings → Advanced → REST API — read-only permissions are fine).

Once connected, BotPlatform pulls in all your published products including names, descriptions, prices, stock status, categories, and direct URLs. The sync takes a few minutes depending on catalogue size. You can trigger a re-sync any time your products change.

Step 3: Create Your Chatbot

Head to Chatbots in the sidebar and create a new chatbot. Attach the Knowledge Base you just populated, then write a system prompt. A good e-commerce prompt:

You are a helpful assistant for [Store Name], an Australian online retailer. Answer questions about products, pricing, shipping, and returns using only the provided knowledge base. If you don't know the answer, say so and invite the customer to contact [email]. Be friendly and concise. Where possible, include a link to the product page.

Step 4: Embed the Script on Your Store

Once your chatbot is configured, click Embed on the chatbot card. Copy the single <script> tag and paste it just before </body> in your WordPress theme (or use a plugin like WPCode).

The chat bubble appears immediately. Widget colour, position, and greeting text can all be changed from the chatbot settings — the embed script never needs updating.

What Questions Will Your Customers Ask?

Based on common WooCommerce patterns, expect the chatbot to handle:

  • Product availability and stock levels
  • Price confirmation and variant details (sizes, colours)
  • Shipping times and costs by location
  • Return and exchange policy
  • Product recommendations ("What's a good gift for someone who likes X?")

After a week live, check your Insights tab in the dashboard. The actual questions your customers are asking are the best guide to what to add to your knowledge base next.

Ready to try Klaira?

Train a chatbot on your own content and embed it on your website — no code required.

Request Beta Access