How to Add an AI Chatbot to WooCommerce — Step by Step in 5 Minutes
↑ Part of AI chatbot for your website
In short: You create an AI agent in BotChata, let it index your store, and paste a single script tag into WordPress. From then on, the chatbot answers customer questions around the clock — about shipping, returns, and availability — using your store's own content, in 40+ languages. No coding. GDPR-compliant, hosted in Germany (EU).
→ Start free — no credit card · Live in 5 minutes · Free plan forever
Why stores do this: most tickets are the same questions over and over — where's my order, how do returns work, do you ship internationally. A chatbot that knows your store answers instantly, takes load off support, and keeps customers from leaving the cart.
What You Need (Prerequisites)
- A WordPress site with WooCommerce installed (self-hosted,
wordpress.org), with admin access. - A BotChata account — the free start is enough (sign up with email, no credit card).
- 5 minutes. No code, no developer.
Part 1 — Set Up BotChata (about 3 minutes)
Step 1: Create an account and an agent
Sign up at botchata.net and open the dashboard. Go to "AI Agents" → "New Agent", give it a name (e.g. your store name), and confirm.
The free start needs no credit card — just your email. (You can optionally activate the 7-day Premium-features trial later with a card; not needed for this guide.)
Step 2: Let it index your store
On the agent, open the "Links / Sources" tab and click "Add source". Enter your store URL and choose "Add entire website".
BotChata reads your product pages, shipping & returns policy, FAQ and categories, and builds them into a knowledge base. For a typical store this takes 1–3 minutes. The status changes from "Indexing" to "Ready".
Why this matters: the bot answers only from your indexed store content — your real returns policy, your actual shipping rules. If something isn't on your site, it says so honestly instead of inventing a rule. That protects you from promises you don't make.
Step 3: Quick test
Switch to the "Overview" tab and ask the bot typical customer questions in the live preview ("Do you ship internationally?", "How do returns work?"). If the answers are accurate, you're ready to embed.
Step 4: Copy the embed code
Open the agent's install / embed view and copy the script tag. It looks like this:
<script
src="https://botchata.net/api/widget.js"
data-api-key="YOUR_KEY"
data-api-url="https://botchata.net/api"
defer
></script>
The
deferattribute makes the widget load asynchronously so it won't slow down your store (Core Web Vitals matter for conversion). The widget runs in an isolated Shadow DOM — it can't interfere with your theme.
Part 2 — Add the Code to WordPress / WooCommerce (about 2 minutes)
You have three ways. Method A is best for most people — no code, update-safe.
✅ Method A (recommended): via a header/footer plugin — no code
- In the WordPress admin: Plugins → Add New.
- Search for "WPCode" (formerly "Insert Headers and Footers"), install and activate it.
- Go to Code Snippets → Header & Footer.
- Paste the copied BotChata script into the "Footer" box.
- Save. Done — the widget now loads on every store page, including product and checkout pages.
Why "Footer": the script belongs just before the closing
</body>tag — so the page loads first, the widget after.
Method B: block theme via the Site Editor
If you use a modern block theme, it works without a plugin too:
- Open Appearance → Editor.
- Select Templates → Footer (or the template shown on all pages).
- Add a "Custom HTML" block at the end and paste the script.
- Save.
Method C: manually in footer.php (for developers)
Only if you deliberately edit theme files — ideally in a child theme, otherwise the change is lost on the next theme update.
- Appearance → Theme File Editor.
- Open
footer.php. - Paste the script directly before
</body>. - Update File.
⚠️ Editing theme files directly is error-prone and not update-safe. When in doubt, use Method A.
Optional: Deeper E-commerce Integration
The steps above embed the chatbot based on your store content — it answers from your product pages, policies and FAQ. That covers most support questions.
For stores that want more — live order status ("where's my package?"), real-time stock, product recommendations from your catalog — BotChata offers a deeper integration that connects to your store data, not just your pages. That's a separate setup on top of this script install.
The rule: the script install (above) answers from your site; the deeper integration answers from live store data. Most stores start with the script and add the integration later.
Step 3 — Check That It Works (Verification)
- Open your store in a new private/incognito window.
- The BotChata bubble appears in the bottom-right.
- Click it and ask a real customer question ("Do you ship to France?").
- The bot should answer within seconds with content from your store.
See the widget? You're live. 🎉
GDPR Note
- Hosted in Germany (EU): BotChata runs on Hetzner servers in Germany; data does not leave the EU without consent, and there is no AI training on your data.
- Data processing: sign the DPA with BotChata (template available in your account) and list the tool in your privacy policy.
- Consent tool (e.g. Cookiebot, Complianz): if you use a consent banner, set the BotChata script to load only after consent for EU visitors — most consent plugins do this with a checkbox.
- EU AI Act ready: customers see before the first chat that they're talking to an AI — the transparency duty under Art. 50 (from August 2026) is met by default.
Common Problems (Troubleshooting)
| Problem | Fix |
|---|---|
| The widget doesn't appear. | Clear cache (browser and caching plugin like WP Rocket/LiteSpeed). Re-save Method A and confirm the script is in the footer. |
| The bot answers "I don't know". | That page (e.g. a policy or product) may not be indexed. In BotChata, check "Sources" and re-index (one click). |
| The widget clashes with the theme. | The Shadow DOM should prevent this. If it still happens, adjust position/z-index in the Widget Builder (Business plan and up). |
| Answers in the wrong language. | BotChata auto-detects the customer's language (40+ languages) — useful for cross-border selling. Test in a fresh window. |
| Bot doesn't know live order status. | The script install answers from store pages. For live order status, add the deeper e-commerce integration (above). |
FAQ
Does BotChata need a WooCommerce plugin? No. A single script tag is enough. A header/footer plugin (Method A) is just the easiest, code-free way to insert it — not required.
Does the bot know my products and policies? Yes — it indexes your store pages (products, categories, returns/shipping policy, FAQ) and answers from them. For live order status and stock, see the deeper integration above.
Is this GDPR-compliant? Yes. Hosted in Germany (Hetzner), DPA included, no AI training on your data, controllable via your consent tool. See the GDPR note above.
Does the bot make up answers? No. It answers only from your indexed store content. If a policy isn't on your site, it says so honestly — it won't promise a return or shipping option you don't offer.
What does it cost? The free start costs $0 (100 messages/month, no card). Paid plans start at $29/month — a fixed price per plan, no per-message credits. (Your WooCommerce hosting is billed separately.)
Will the widget slow down my store?
No. It loads asynchronously (defer) in an isolated Shadow DOM and doesn't block rendering.
Start Now
Give your WooCommerce store a 24/7 AI assistant that knows your products and policies — in 5 minutes.
Set up in 5 minutes. 100 messages/month free. GDPR-compliant, hosted in Germany.