How to add an AI chatbot to Wix

Wix handles custom scripts through Settings → Custom Code, where you can add a snippet to all pages and choose where it loads. You need a premium plan with a connected domain — custom code does not run on free Wix sites.

Where it goes

Settings → Custom Code → Add Custom Code

Availability: Premium plan with a connected domain. Free Wix sites cannot run custom code.

Adding the chatbot to Wix

  1. 1

    In your Wix dashboard, go to Settings.

  2. 2

    Under Advanced, select Custom Code.

  3. 3

    Click Add Custom Code.

  4. 4

    Paste your RubyRep snippet and give it a name, such as 'RubyRep widget'.

  5. 5

    Set Add Code to Pages to 'All pages', and Place Code in to 'Body - end'.

  6. 6

    Apply, then publish your site and open the live URL.

The snippet you paste

<script src="https://rubyrep.com/rubyrep.js" data-rubyrep="rr_your_public_key" defer></script>

Your own key replaces rr_your_public_key — you get it after training RubyRep on your site.

Worth knowing on Wix

  • Custom code needs a premium plan and a connected domain. It will not run on a wixsite.com free site.

  • Choose 'Body - end' rather than head, so the snippet stays off the critical path.

  • Wix caches aggressively. If nothing appears, republish and hard-refresh.

  • Wix Editor preview does not run custom code — always check the published site.

Wix questions

Does this work with Wix Studio?
Yes, Wix Studio has the same Custom Code panel under site settings, and the snippet behaves identically.
Why isn't the chatbot showing?
In order of likelihood: the site is not published, you are on a free plan, or you are looking at the editor preview rather than the live site.

Related

Get your snippet.

Enter your Wix site and RubyRep reads it, builds your representative, and hands you the exact line to paste.

https://

Takes about a minute. No credit card.

Using something else? See all platforms.