> ## 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.

# Wix

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

### Prerequisites

1. A LemonSlice avatar created on a paid plan
2. A Wix page on a premium account. Embedding custom JavaScript is only available on Premium plans.

### 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. Add embed code to your site**

1. [Go to Settings](https://www.wix.com/my-account/site-selector/?buttonText=Open%20Settings\&title=Select%20a%20Site\&autoSelectOnSingleSite=true\&actionUrl=https://www.wix.com/dashboard/\{\{metaSiteId}}/settings) in your site's dashboard.
2. Scroll down and click **Custom Code** in the Advanced section.

   ![Manage Wix Com Dashboard 9dce7b81 A074 45be B517 Dacaf8c88735 Domain Settings Domain Name=wixlemonslicetest Com (1)](https://mintcdn.com/lemonslice/ijSarkZGcrUvO2ND/images/manage.wix.com_dashboard_9dce7b81-a074-45be-b517-dacaf8c88735_domain-settings_domainName=wixlemonslicetest.com\(1\).png?fit=max\&auto=format\&n=ijSarkZGcrUvO2ND\&q=85\&s=53bea465acb855e4bba7e68258aa34f9)
3. Click **Add Custom Code** at the top right.
4. Configure how your code will run in this section.

   ![Manage Wix Com Dashboard 9dce7b81 A074 45be B517 Dacaf8c88735 Domain Settings Domain Name=wixlemonslicetest Com (4)](https://mintcdn.com/lemonslice/ijSarkZGcrUvO2ND/images/manage.wix.com_dashboard_9dce7b81-a074-45be-b517-dacaf8c88735_domain-settings_domainName=wixlemonslicetest.com\(4\).png?fit=max\&auto=format\&n=ijSarkZGcrUvO2ND\&q=85\&s=175bd3b628c320d38a94cd7bbc225368)

   * Paste your embed code under "Paste the code snippet here:"
   * (Recommended) If you select **All pages** and select **Load code once**, every page on your site will have the LemonSlice widget. Your avatar will persist across multiple pages.
     * You may also choose certain pages to display your avatar. We don't recommend this, as it will cause your avatar to restart if you change pages.
5. Apply your changes.


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