Skip to main content
Add the Animam widget to your website with one line of code.

Basic integration

Copy this code just before the </body> tag on your website:
Replace YOUR_SLUG with your tenant slug (visible in the dashboard URL).

Verification

After integration, the widget appears in the bottom right of your page. Click it to open the chat.

Frameworks

Next.js / React

Vue.js / Nuxt

WordPress

Add the script to your theme footer.php, before </body> (or with a header/footer snippet plugin):

Shopify

  1. Go to Online Store > Themes > Edit code
  2. Open theme.liquid
  3. Add the script before </body>

Content Security Policy (Trusted Types)

If your site sends a CSP with require-trusted-types-for 'script', the widget creates its own Trusted Types policy, named animam. What you need to do depends on your trusted-types directive:
If the policy is refused, the widget does not appear and the browser console shows a warning that starts with [Animam] Trusted Types.
The policy stays private to the widget script and is never attached to window, so other scripts on your page cannot use it. It only accepts HTML built by the widget (every variable value is escaped), JSON for the page’s structured data, and two script URLs: Cloudflare Turnstile (challenges.cloudflare.com/turnstile/v0/api.js) and the voice module (cdn.animam.ai/vapi.iife.js).

Next steps

Configuration

Customize the widget appearance

Segments

Contextualize based on pages