Skip to main content
Configure the widget’s appearance and behavior with HTML attributes on the script tag. Everything on this page mirrors the widget source; when an attribute is absent, the tenant’s dashboard configuration applies.

The three display modes

Attribute reference

Precedence: attributes override the tenant’s dashboard configuration for that page only. Anything not set here (welcome screen, booking CTA, AI-transparency banner, “powered by”) is resolved server-side from the tenant config — the persona itself (name, tone, avatar) lives in Dashboard → Agent → Personality.

Auto-open

Auto-open fires once per visitor session, whichever comes first of the delay or the scroll threshold:

JavaScript API

The widget exposes window.AnimamChat once loaded (listen for the animam:ready event):
Full event list (message, open, close, ready, escalated, human_message, status_change, tool_call): see Events. For client-side tools: see WebMCP site actions.

Examples

Open from your own button

Two sibling scripts share the same tenant config:
  • Form widget (form.js) — renders one of your form tools as a standalone form: data-tenant, data-tool, data-target, data-color, data-submit-text, data-success-redirect.
  • Voice button (voice-enabled tenants) — data-tenant, data-target, data-label, data-position, data-style, data-color, data-segment.