Skip to main content
Most of the files that Shopify uses to define themes are written in Liquid, Shopify’s templating language. To embed a Lemon Slice agent into your Shopify site, you’ll need to edit the Liquid file that defines that layout of your page.

Prerequisites

  1. A Lemon Slice Agent created on a paid plan
  2. Some familiarity with Shopify’s code editor

Guide

1

Get an embed code

Visit the Lemon Slice agents platform to find your agent’s embed widget. It should look something 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>
Copy this embed code.
2

Open your Shopify code editor

Shopify admin pageIn 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