Cookbook: Adding the Anam Widget to Shopify
Step-by-step guide with screenshots for embedding the widget in your Shopify theme
Overview
The Anam widget can be added to any Shopify store by editing thetheme.liquid file. Once installed, the avatar appears on every page (or specific pages using Liquid conditionals).
Quick Start
Create a persona in Anam Lab
Go to Anam Lab, create a persona, and configure its avatar, voice, and behavior. Navigate to the Widget tab to get your persona ID and configure the widget appearance.
Allowlist your Shopify domain
In the Widget tab, add your Shopify domain (e.g.,
https://your-store.myshopify.com) to the Allowed domains list.Edit your Shopify theme
In your Shopify admin, go to Online Store > Themes > Edit code and open
theme.liquid. Add the widget snippet after the opening <body> tag: