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 themefooter.php, before </body> (or with a header/footer snippet plugin):
Shopify
- Go to Online Store > Themes > Edit code
- Open
theme.liquid - Add the script before
</body>
Content Security Policy (Trusted Types)
If your site sends a CSP withrequire-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:
[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