How to add an AI chatbot to Squarespace Commerce

On Squarespace Commerce, a chat widget is installed through Settings → Developer Tools → Code Injection → Footer. Applies immediately on save across the whole site. Custom code is gated: Code Injection requires a Business plan or higher.

Where it goes

Settings → Developer Tools → Code Injection → Footer

Availability: Code Injection requires a Business plan or higher.

Adding the chatbot to Squarespace Commerce

  1. 1

    Open Settings, then Developer Tools, then Code Injection.

  2. 2

    Paste the snippet into the Footer field.

  3. 3

    Save. It now applies to every page including product and cart pages.

  4. 4

    Applies immediately on save across the whole site.

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 Squarespace Commerce

  • Code Injection does not run inside the Squarespace editor preview — check the live site.

  • Checkout is hosted on a Squarespace domain and will not run injected code.

  • Ajax page loading is on by default in some templates, so scripts expecting a full page load should also handle soft navigation.

Squarespace Commerce questions

Where does the code go on Squarespace Commerce?
Settings → Developer Tools → Code Injection → Footer. Applies immediately on save across the whole site.
Do I need a paid Squarespace Commerce plan?
Code Injection requires a Business plan or higher.
Will a Squarespace Commerce update remove it?
Code Injection does not run inside the Squarespace editor preview — check the live site.
Does it slow Squarespace Commerce 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 Squarespace Commerce 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.