Anakin
← Back to Insights

How do I add my public agent to a website?

Open your agent → Share → Website. Pick Floating, Inline, Full-page, or Custom button, tune logo/color/position/greeting, copy the snippet, and paste it on your site. The loader always opens /agent/:slug?embed=true — the frontier public agent, not a second widget runtime. Lock parent domains under Allowed domains.

Frequently asked questions

Do I need a different agent for the website widget?

No. Every placement loads the same public agent surface (/agent/:slug?embed=true). PageCta, sources, handoff, and write integrity all apply inside the embed.

What is the difference between Floating and Custom button?

Floating ships a branded bubble. Custom button loads data-mode=launcher with no bubble — your HTML calls window.Anakin.open() when the visitor clicks.

Which script URL should I use?

https://tryanakin.app/embed.js with data-agent-slug. The older worker /embed/widget.js path only redirects when data-agent-slug is set; data-agent-id (UUID) is no longer supported.

How do I restrict which sites can drive the chat?

Share → Website → Allowed domains. Empty list keeps legacy behavior; listed origins (plus tryanakin.app) may send postMessage commands.

Sources: live catalog, resource model, integration guide.