How to Add an AI Chatbot to Wix — 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 website, and paste a single script tag into Wix's Custom Code panel. From then on, the chatbot answers visitor questions around the clock — using only your own site's content, in 40+ languages. No coding. GDPR-compliant, hosted in Germany (EU).
→ Start free — no credit card · Live in 5 minutes · Free plan forever
What You Need (Prerequisites)
- A Wix site with a Premium plan and a connected domain.
- A BotChata account — the free start is enough (sign up with email, no credit card).
- 5 minutes. No code, no developer.
⚠️ Important — Wix free plan: the Custom Code panel (the place where you paste the script) is only available on a Premium plan with a connected domain. On the free
wixsite.complan, Wix does not allow custom scripts. If you're on the free plan, upgrade to any Premium plan first — then this guide works on every Wix template. (There is a limited workaround with an HTML-embed element — see the FAQ — but it only shows the chat in one fixed spot, not as a floating bubble across the site.)
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 company 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 website
On the agent, open the "Links / Sources" tab and click "Add source". Enter your website URL and choose "Add entire website".
BotChata reads every reachable page and turns it into the knowledge base. For ~50 pages this takes 1–3 minutes. The status changes from "Indexing" to "Ready".
Why this matters: the bot answers only from your indexed content. If an answer isn't on your site, it says so honestly — instead of making something up. That protects your credibility.
Step 3: Quick test
Switch to the "Overview" tab and ask the bot a few typical customer questions in the live preview (e.g. "How much is shipping?"). 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 load time (Core Web Vitals). The widget runs in an isolated Shadow DOM — it can't interfere with your Wix template's design.
Part 2 — Add the Code to Wix (about 2 minutes)
You have two ways, depending on which editor you use. Method A covers the classic Wix Editor (most sites). Both are no-code and survive design changes.
✅ Method A (recommended): Custom Code in the classic Wix Editor
This is the standard, code-free way and applies the widget to every page at once.
- In your Wix dashboard, go to Settings.
- Open Custom Code (under the Advanced section — Settings → Advanced → Custom Code).
- Click "+ Add Custom Code" (top right).
- Paste the copied BotChata script into the code box and give it a name (e.g. "BotChata widget").
- Under "Add Code to Pages", choose "All pages" and set "Load code on each new page".
- Under "Place Code in", select "Body - end".
- (GDPR) Set the code type / category so your cookie banner can control it — see the GDPR note below.
- Click Apply. Done.
Why "Body - end": the script belongs just before the closing
</body>tag — so the page loads first, the widget after.
Method B: Wix Studio
If your site is built in the newer Wix Studio editor:
- Open your site in Wix Studio.
- Go to Settings → Custom Code (or the
{ }Dev/Custom Code area). - Click "+ Add Custom Code", paste the BotChata script.
- Set it to load on All pages, placed in "Body - end".
- Apply and Publish.
⚠️ You must click Publish. Unlike WordPress, changes in Wix only go live on your real site after you hit Publish — not while you're in the editor or preview.
Step 3 — Check That It Works (Verification)
- Publish your Wix site, then open it in a new private/incognito window (your live domain, not the editor).
- The BotChata bubble appears in the bottom-right.
- Click it and ask a real question about your offering.
- The bot should answer within seconds with content from your website.
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 (Data Processing Agreement) with BotChata (template available in your account) and list the tool in your privacy policy.
- Consent / cookie banner: in the Wix Custom Code panel you can tag the script with a code type (e.g. Functional / Analytics). If you use Wix's cookie banner or a tool like Cookiebot, assign BotChata to the right category so it loads only after consent — no code needed.
- EU AI Act ready: visitors 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 |
|---|---|
| There's no Custom Code option in Settings. | Custom Code needs a Premium plan with a connected domain. On the free wixsite.com plan it's hidden — upgrade first. |
| The widget doesn't appear on the live site. | Did you click Publish? Wix changes only go live after publishing. Then clear the browser cache and check on your real domain (not preview). |
| The bot answers "I don't know". | That page may not be indexed. In BotChata, check under "Sources" and re-index (one click). |
| The widget clashes with the design. | 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 visitor's language (40+ languages). Test with a question in a fresh window. |
FAQ
Does BotChata need a Wix app from the App Market? No. A single script tag in Settings → Custom Code is enough. There's no app to install and no monthly Wix-app fee.
Can I use it on the free Wix plan? Not via Custom Code — that panel requires a Premium plan with a connected domain. On the free plan you could only use an HTML-embed element, which shows the chat in one fixed box on a single page rather than as a floating bubble across the whole site. For the proper experience, a Premium plan is needed.
Is this GDPR-compliant? Yes. BotChata is hosted in Germany (Hetzner), DPA included, no AI training on your data, and controllable via Wix's cookie banner / consent category. See the GDPR note above.
Does the bot make up answers? No. It answers only from your indexed website content. If information is missing, it says so honestly instead of guessing.
What does it cost? The BotChata free start costs $0 (100 messages/month, sign up with no card). Paid plans start at $29/month — a fixed price per plan, no per-message credits. Optionally, test all Premium features for 7 days (sign up with a card, no charge during the trial). (Your Wix Premium plan is billed separately by Wix.)
Will the widget slow down my site?
No. It loads asynchronously (defer) in an isolated Shadow DOM and doesn't block your page from rendering.
Start Now
Add an AI chatbot that knows your content to your Wix site in 5 minutes.
Set up in 5 minutes. 100 messages/month free. GDPR-compliant, hosted in Germany.