How to add an AI chatbot to Ecwid

On Ecwid, a chat widget is installed through The host page, not Ecwid itself. Instant Site changes publish on save; host-site changes follow that site's model. Custom code is gated: Custom code on Instant Site requires a paid plan.

Where it goes

The host page, not Ecwid itself

Availability: Custom code on Instant Site requires a paid plan.

Adding the chatbot to Ecwid

  1. 1

    Ecwid embeds into an existing site, so the snippet goes on the host page rather than in Ecwid.

  2. 2

    Open the site that hosts your Ecwid store — WordPress, Wix, a static page, whichever it is.

  3. 3

    Paste the snippet before the closing </body> tag of that site's template.

  4. 4

    For Ecwid's own Instant Site, open Website → Site settings and use the custom code field.

  5. 5

    Instant Site changes publish on save; host-site changes follow that site's model.

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 Ecwid

  • The store renders inside the host page, so a widget on the host page sits above it naturally — no Ecwid-side work needed.

  • Ecwid navigation is hash-based, so a widget that reacts to route changes should listen for hashchange.

Ecwid questions

Where does the code go on Ecwid?
The host page, not Ecwid itself. Instant Site changes publish on save; host-site changes follow that site's model.
Do I need a paid Ecwid plan?
Custom code on Instant Site requires a paid plan.
Will a Ecwid update remove it?
The store renders inside the host page, so a widget on the host page sits above it naturally — no Ecwid-side work needed.
Does it slow Ecwid down?
No measurable effect. The snippet is deferred, so it loads after your page has rendered, and the chat interface itself is only fetched when a visitor opens it.

Related

Get your snippet.

Enter your Ecwid 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.