- CDN (Recommended)
- npm
Include a script tag and the custom element. No build step required.The script auto-registers the
<anam-agent> custom element. Place it anywhere in your HTML. The async attribute ensures it doesn’t block page rendering.Framework-specific setup
- Plain HTML
- Next.js
Add the snippet before the closing
</body> tag:Domain allowlisting
To allowlist your domain:- Open Anam Lab and navigate to your persona
- Go to the Widget tab
- Under Allowed domains, add your website origin (e.g.,
https://example.com) - Click Publish

