> ## Documentation Index
> Fetch the complete documentation index at: https://lemonslice.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify

> Learn how to deploy a LemonSlice avatar to your Shopify page with minimal code.

Most of the files that Shopify uses to define themes are written in Liquid, Shopify's templating language. To embed a LemonSlice avatar into your Shopify site, you'll need to edit the Liquid file that defines the layout of your page.

### Prerequisites

1. A LemonSlice avatar created on a paid plan
2. Some familiarity with Shopify's code editor

### Guide

**1. Get an embed code**

Visit the LemonSlice [avatar platform](https://lemonslice.com/avatars) to find your avatar's embed widget. It should look something like this:

```javascript JAVASCRIPT theme={null}
<lemon-slice-widget agent-id="AGENT_ID_HERE"></lemon-slice-widget>
<script type="module" src="https://unpkg.com/@lemonsliceai/lemon-slice-widget"></script>
```

Copy this embed code.

**2. Open your Shopify code editor**

![Shopify admin page](https://mintcdn.com/lemonslice/ijSarkZGcrUvO2ND/images/admin.shopify.com_store_gekqgf-xd_themes_187775811953_editor\(2\).png?fit=max\&auto=format\&n=ijSarkZGcrUvO2ND\&q=85\&s=b0f50b3a74b508adfb4e2c715e928325)

In your Shopify editor, click the three dots () at the upper left corner. Then, click "Edit code" to open your Shopify code editor.

**3. Place your embed code in your layout file**

1. In the side menu, navigate to the `theme.liquid` file inside your `layout` folder.
2. Inside the \<body> tag, paste your embed code from step 1 before the first` <script>` tag.
3. Then, save your file with  + S on Mac, or Ctrl + S on Windows.

   ![Admin Shopify Com Store Gekqgf Xd Themes 187775811953](https://mintcdn.com/lemonslice/ijSarkZGcrUvO2ND/images/admin.shopify.com_store_gekqgf-xd_themes_187775811953.png?fit=max\&auto=format\&n=ijSarkZGcrUvO2ND\&q=85\&s=dc7254262e4c16534fb641caab82f25a)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.