Skip to main content
Anam Widget

What is the Anam Widget?

The Anam Widget (<anam-agent-widget>) is a self-contained Web Component that embeds a conversational AI avatar on any website. Configuration is managed through Anam Lab and securely fetched at runtime using domain-based authentication.

Quick Start

1

Create a persona in Lab

Go to Anam Lab, create a persona, and configure its avatar, voice, and behavior. Navigate to the Widget tab to customize the widget appearance.
2

Allowlist your domain

In the Widget tab, add your website’s domain to the Allowed domains list (e.g., https://example.com). Alternatively, enable Allow everywhere for unrestricted access.
3

Publish your persona

Click Publish to make your configuration live. The widget fetches published settings at runtime, so unpublished changes won’t appear on your site.
4

Paste the embed snippet

Copy the embed code from the Widget tab and add it to your website:
<anam-agent-widget agent-id="your-persona-id"></anam-agent-widget>
<script src="https://unpkg.com/@anam-ai/agent-widget" async></script>

Next steps