Use this guide to install the AI Agent widget on Squarespace. Copy the Embed Code from your portal as described in Installation Overview.Two embed methods are supported:
1.
Script-based loader (recommended): Adds an AI Agent bubble. The chat opens in an iframe popover when the visitor clicks the bubble.
2.
Iframe-based embed: Loads the AI Agent directly as an iframe appended to the page body (best for a dedicated page).
This method appends the iframe to the page body and is best used on a dedicated page.
1.
Open the page where you want the embedded AI Agent.
2.
Add a Code Block.
3.
Paste the Iframe-based embed code.
4.
Save and publish.
Notes:
To control size, adjust iframe.style.width and iframe.style.height in the code (example: 600px, 80vh, 100vh).
Some Squarespace blocks or templates can restrict scripts. If the Code Block does not run the script, use Code Injection for that page, or place the code in a footer injection area if your plan supports it.