Articles · Dec 5, 2026
How to add an AI avatar to your Shopify store
A talking video assistant for your storefront, added with two lines of code in your Shopify theme.
An AI avatar for Shopify is a talking video character that sits on your storefront and holds a live conversation with shoppers. It works like a chat widget, except the shopper sees a face, hears a voice, and can talk back out loud. You can add one to a Shopify theme with two lines of code and no app install.
This guide covers what a Shopify avatar is good for, how to add one with LemonSlice, and what to check before you go live.
What an AI avatar does on a Shopify store
A store avatar is an interactive avatar: an AI character that listens, thinks with a large language model, and answers on video in real time. On a storefront it usually does three jobs:
- Answer product questions. Sizing, materials, compatibility, shipping times, return policy. You give the avatar this information in its knowledge base and instructions.
- Guide shoppers. Ask what someone is looking for and point them to the right collection or product.
- Give the brand a face. A mascot, a founder look-alike, or an illustrated character that matches the store's style. LemonSlice avatars can be photorealistic people, cartoons, anime characters, or mascots, all made from a single image.
The difference from a text chatbot is the format. The shopper talks, and a character talks back with lip-synced video. That can make a small store feel staffed, and it helps on mobile where typing is slow.
How to add a LemonSlice avatar to Shopify
You need a LemonSlice avatar on a paid plan and access to your Shopify theme code. The full steps are in the Shopify embed guide.
- Create your avatar. Go to the LemonSlice avatar platform, upload or generate an image, then set the voice, personality, and knowledge base. Add your FAQ, shipping and return policies, and product details.
- Copy the embed code. Each avatar has an embed snippet with its avatar ID.
- Open your theme code. In Shopify admin, open your theme, click the three-dot menu, and choose Edit code.
- Paste the snippet into theme.liquid. In the
layoutfolder, opentheme.liquid. Paste the embed code inside the<body>tag, before the first<script>tag, then save.
The embed code looks like this:
<lemon-slice-widget agent-id="AGENT_ID_HERE"></lemon-slice-widget><script type="module" src="https://unpkg.com/@lemonsliceai/lemon-slice-widget"></script>
Because theme.liquid wraps every page, the avatar appears across the whole store. By default it sits in the corner as a small looping video. A shopper clicks it to start a call, and can minimize it to hide it.
Customize how it looks
The widget takes HTML attributes, so you can tune it without touching LemonSlice settings. The customization reference lists them all. The useful ones for a store:
initial-statesets whether it loads minimized, open, or hidden.inlineplaces the avatar inside the page (for example on one product page or a landing page) instead of floating in the corner.custom-active-widthandcustom-active-heightset the size of the open call.video-button-color-hexmatches the call button to your brand color.
To show the avatar on only some pages, put the snippet in that page or section template instead of theme.liquid.
What to check before going live
- Knowledge. The avatar only knows what you give it. Load policies and product facts, and tell it to send shoppers to a human or a contact page when it isn't sure.
- Tone and scope. Write short instructions: who it is, what it helps with, and what it should not do (for example, no discount promises).
- Mobile. Open the store on a phone and check the minimized and open sizes don't cover the add-to-cart button.
- Cost. Shoppers who click the avatar start a call, and calls use minutes. Widget pricing is the same as hosted agent pricing on the pricing page. Plans start at $8 a month with included minutes.
Other ways to build it
The Shopify embed is the no-code path. If you already run your own voice agent, you can use the LemonSlice API instead and keep your own LLM, speech-to-text, and voice. LemonSlice plugs into LiveKit, Pipecat, Daily, and Agora, or a plain WebSocket. The same widget also has embed guides for Wix, Squarespace, and Next.js.
For background on how these avatars work, see What is a real-time avatar?.