Hazelchat
Start free

Add an AI chat agent to your Squarespace site

Add Hazelchat’s chat agent to every page of your Squarespace site with Squarespace’s Code Injection. Hazelchat answers your visitors from the pages and documents you approved, and shows the sources under every answer.

What visitors ask on a Squarespace site

Many Squarespace sites belong to studios, shops, restaurants and service businesses. Their visitors ask the same things again and again:

The chat answers from your own pages, product descriptions and FAQs, with a link to where it found the answer, and checks every price and number against them first. If your pages don’t say, it doesn’t guess.

It cannot see your calendar or your orders. When your pages have no answer, as with a free slot next week, it offers your contact form or booking page instead.

Send visitors to your contact form or booking page

What you need

Add the code

  1. In Hazelchat, open Install in setup, or later Website → Install on your website → Continue setup. Choose Something else and Continue, then open Copy the code. It is one line with your own widget key:
    <script src="https://app.hazelchat.co/widget.js" data-agent="YOUR-WIDGET-KEY" defer></script>
  2. In Squarespace, open the Pages panel, click Custom Code at the bottom of the panel, then Code Injection. On a version 7.0 site, look under Website Tools.
  3. Paste the line into the Footer field, not Header, and click Save. Squarespace adds Footer code just before the end of every page.
  4. Back in Hazelchat, enter your website’s address and click I’ve added the code.
  5. Click Publish and switch on (or Switch on if your agent is already published). Hazelchat first looks for the code on your website and only then makes the chat visible.
  6. Open your website, refresh it, ask the chat a question a visitor would ask, then return to Hazelchat and click Yes, I saw this answer.

These steps follow Squarespace’s own help (Customize parts of your site with code injection, The Pages panel and Premium features), read on 14 October 2026. We have not yet tested Hazelchat on Squarespace ourselves. If a menu looks different, Squarespace’s page is the up-to-date one.

Check it works

Squarespace’s help says this code goes into the page itself, so Hazelchat’s check can find it when you switch the chat on. If your home page does not carry the code, enter the page that does under Manage installation → Installation troubleshooting → Page the script is on.

Common problems

If your cookie banner has a service named Hazelchat, the chat follows it, with no code. Which banners.

Squarespace’s own cookie banner (in the Cookies & Data Privacy panel) does not hold back code you add yourself. Squarespace’s help says you may need to make your banner and such code work together.

To keep the chat closed until a visitor agrees, add data-require-consent="true" to the line, before defer. The chat then waits until your consent tool sends:

window.dispatchEvent(new CustomEvent('hazelchat-consent', { detail: true }));

Send detail: false when a visitor withdraws consent. With this option and no event, no chat appears, so test it on your published site.

Remove Hazelchat

Help

For Squarespace itself, use Squarespace Help. For anything in Hazelchat, email hello@hazelchat.co. We answer within one business day. Other ways to install Hazelchat.

Start free