Multi-platform Integrations
Add Chatbots to Squarespace Websites
Add your AI agent to your Squarespace site by pasting its embed code into the header Code Injection for your whole site. No coding needed.
Before you start
- A trained AI agent. New here? Create an account, then train your agent with your data.
- A Squarespace account that can edit your site.
Step 1: Allowlist your domain
In Chat Data, open Settings > Security. Set Visibility to public, turn on Embedding On Websites, and add your Squarespace site's domain to Allowed Embedding Domains. Full details: Allowlist your domain.
Step 2: Copy the embed code
In Chat Data, click Embed on site in your AI agent's sidebar, open the Widget Bubble tab and click Copy Code. Which tab should I use? 
Step 3: Add the code in Squarespace
- Log in to Squarespace and open your dashboard.
- Click GO TO WEBSITE on your site, or CREATE WEBSITE to start a new one. Wait for the editor to load.

- In the left panel, go to Pages > Website Tools > Code Injection.

- Paste the embed code into the header section and save.

- Publish your website and note its production URL. Make sure that domain is in your allowlist (Step 1).
Check that it worked
Open your production URL. The chat bubble should appear. 
If the chat window shows "Domain: … is not in the allowlisted domains of this chatbot", add that domain in Step 1. More fixes: Check that it worked.
Next step: match the AI agent to your brand in Settings > Chat Interface. See Customize the Chatbot Interface.
Frequently Asked Questions
How do I add a Chat Data chatbot to a Squarespace website?
Three stages: build the chatbot in Chat Data, copy the website embed code, and then add that code to Squarespace through the site's code injection settings before publishing the website.
What should I prepare in Chat Data before embedding on Squarespace?
Before the embed step, the guide says to log in to Chat Data and create the chatbot with its knowledge sources. It specifically mentions using documents, text excerpts, webpages, or Q&A pairs so the bot is ready to answer when it goes live.
Where do I add the chatbot code in Squarespace?
In Squarespace, you open the website editor and navigate through `Pages`, then `Website Tools`, then `Code Injection`. The guide says to place the chatbot embed code in the header section and save the change.
Do I need to publish and allowlist the Squarespace domain before testing?
Yes. After adding the code, the page says to publish the website, obtain the production URL, and then allowlist that domain in Chat Data so the chatbot is allowed to display on the live Squarespace site.