Skip to main content
Add a conversational AI avatar to your Squarespace site using the Anam Widget and Squarespace’s code injection feature — no coding required.

Cookbook: Adding the Anam Widget to Squarespace

Step-by-step guide for embedding the widget using Squarespace’s code injection

Quick Start

1

Create a persona in Anam Lab

Go to Anam Lab, create a persona, and configure its avatar, voice, and behavior. Navigate to the Embed tab and choose Widget to get your persona ID.
2

Allowlist your domain

In the Embed tab, choose Widget and enter your Squarespace domain under Allowed Domains, then select + to add the origin. Select Publish before testing the embed.Add the origin visitors actually use, including any custom domain. See origin format and matching rules.
3

Add to Squarespace

In your Squarespace dashboard, go to Settings > Advanced > Code Injection. Paste the following into the Header section:
Then paste into the Footer section:
4

Publish

Click Publish in Anam Lab and save your Squarespace settings.

Next Steps

Widget Configuration

Customize the widget’s appearance and behavior

Widget Events

Listen for widget events
Last modified on September 16, 2026