How to add an AI chatbot to Wix
Updated · 3 min read
Wix lets you add your own code to every page from the site's settings, which is all the chatbot needs. There's no app to install from the Wix App Market.
Before you start
- Build your assistant in the Chatty4All editor: pick a design, then teach it about your business.
- Under Go live → Websites it may run on, add your website's address. The assistant only loads on the sites listed there, so nobody can copy your code onto theirs.
- Publish it. The editor then shows your code with your own assistant id in place of
YOUR_BOT_ID.
Your code
This is the whole install. Copy yours from Go live in the editor: it's the same line with your id filled in.
<script src="https://chatty4all.design/widget.js" data-bot="YOUR_BOT_ID" async></script>Add it to Wix
- Settings → Custom code → + Add custom code → paste → load on all pages, place in Body - end.
Tips for Wix
- Wix asks for a paid plan and a connected domain before it offers Custom code. If you don't see the setting, check those first.
- Publish your Wix site after adding the code. The chat appears on the live site, not in the Wix editor.
- Add your site's domain under Go live → Websites it may run on before you publish the assistant.
Showing the chat inside a page instead
For the Inline layout, add an Embed code (HTML) element where the chat should appear and paste the line into it.
Check it worked
- Open your live site in a private window. The chat button should appear in the corner within a few seconds.
- If it says it isn't enabled for this site, add that exact domain under Go live → Websites it may run on.
- If nothing appears, check that you published the assistant and that the line is on the page (view the page source and search for
widget.js).
Would you rather let your AI coding assistant do it? See install the chatbot with Cursor, Claude, Lovable, v0 or Bolt.