Anakin 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.

What is Add to Website?

Add to Website is the install path for your public agent on any host site. It does not clone or rebuild chat. One canonical loader (/embed.js) mounts an iframe that points at the existing /agent/:slug?embed=true surface — the same frontier support path used for full-page visitors.

Choose a placement

  1. Floating chat — corner bubble; opens a panel iframe.
  2. Inline chat — paste an iframe into a page slot.
  3. Full-page support — share /agent/:slug as a dedicated help page.
  4. Custom buttondata-mode="launcher" + window.Anakin.open() from your own CTA.

Configure once

From Share → Website you can set logo (agent avatar), bubble color (theme primary or preset default), position, welcome/greeting tip, theme, visitor authentication, and see conversation limit summaries. Allowed domains reuse the embed-origin registry.

Trust notes

  • Empty allowed-domains list = legacy fail-open for parent postMessage (shape validation still applies).
  • Visitor auth and per-agent quotas are the same settings used on the full public page.
  • window.Anakin.setContext(text) posts into the iframe; unlisted parent origins are ignored by the public agent bridge.

Method and limits

Shipped as the W-series on top of the completed public-agent SOTA program (A/B/C + S1–S4). No new chat runtime. Signed embed tokens remain out of scope while allowlists suffice.

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.