How to Add an AI Chatbot to a Squarespace Website
By Karla, founder of Proxxie · How-to ·

To add an AI chatbot to Squarespace, copy the chatbot's embed code, open Code Injection from the Custom Code section of your Pages panel, paste the code into the Footer field, and save. Code Injection is available on the Core, Plus and Advanced plans and some legacy plans. It isn't available on the Basic plan.
This works for most chatbots that give you a script tag to paste, including Proxxie.

Before you start
You'll need:
- A Squarespace plan that includes Code Injection. If you don't see the Code Injection option, your plan likely doesn't include it.
- Your chatbot's embed code, usually a single line starting with
<script. In Proxxie, open your chatbot, go to the Embed Code tab and click Copy Code.
Step 1: Copy your embed code
Copy the complete snippet, from <script through </script>. A missing character is the most common reason a chatbot doesn't appear.
Step 2: Open Code Injection
In the Squarespace editor, open the Pages panel, scroll to the bottom and click Custom Code, then Code Injection. On older version 7.0 sites, these options are under Website Tools instead. If you can't find it, search "Code Injection" in the dashboard search.
Step 3: Paste into the Footer
- Find the Footer field.
- Paste your embed code.
- Click Save.
The Footer field adds the code to every page, just before the closing </body> tag, so your page content comes first and the chatbot doesn't slow down what visitors see.
Step 4: Test on your live site
Check the live site rather than the editor, where scripts may be turned off while you edit. Open your published site in a private or incognito window and look for the chat bubble, usually in the bottom-right corner. Open it and ask a real customer question.
Troubleshooting
I can't find Code Injection. Your plan probably doesn't include it. Check your plan in Billing, or upgrade to a plan that does.
The chat bubble doesn't appear.
- Make sure you're viewing the live site, not the editor
- Check that you pasted the entire code and clicked Save
- If your site is private or password protected, publish it or test while logged in
- Try a private window to rule out caching
It appears twice. You may have pasted the code in both the Header and Footer fields, or also in a Code Block on a page. Keep only the Footer copy. (Proxxie ignores a second copy on the same page, but other tools may not.)
It overlaps another button. Some templates or add-ons place their own floating buttons in the same corner. Check whether your chatbot lets you change its position. In Proxxie, the Widget placement settings on the Embed Code tab let you switch to the bottom left or change the distance from the bottom and side. Copy the code again afterwards and replace the old copy in the Footer field.
Why not use a Code Block?
Squarespace's Code Block adds code to a single spot on one page, and on the Basic plan it doesn't run JavaScript at all. A floating chat bubble should appear on every page, which is what the site-wide Footer field does.
After it's installed
The chatbot is only as good as what you teach it. Use our knowledge base checklist so it can answer what your visitors actually ask.
Frequently asked questions
Can I add a chatbot on the Squarespace Basic plan?
Not through Code Injection, which Basic doesn't include, and Basic's Code Block doesn't run JavaScript either. You'd need to upgrade to Core or higher.
Will a chatbot slow down my Squarespace site?
It shouldn't. The Footer field places the script at the end of the page, and with the async attribute (Proxxie's embed code includes it) the script loads without holding up your content.
Do I need to edit any code?
No. You only paste the code your chatbot provides.
How do I remove it later?
Return to Code Injection, delete the code from the Footer field, and save.
Try it with your own business. Proxxie builds an AI chatbot from your content. Paste in your information or add pages from your website, test it, then add it to your site with one line of code. Start your free 14-day trial. No credit card required.