How to install Boei in your Shopify store

Show your Boei widget on the storefront. Connecting Shopify product and order data is a separate step.

How to get there: Open Widgets, choose your widget, then open Install.

Step 1. Create an account

Create a Boei account if you don't have one yet. The onboarding trains your AI chatbot on your website content. You can also add other ways customers can reach you, like WhatsApp, email, or phone.

Step 2. Copy installation code

In your Boei dashboard, open your widget and click the Install tab. Select Shopify and copy the complete installation code. If you connected Shopify data, check that this widget uses the same AI agent. A Shopify Client ID, app secret or access token never belongs in your theme.

Step 3. Open your Shopify theme code editor

In your Shopify admin, go to Online Store → Themes.

Duplicate the current theme as a backup before editing it.

On your live theme (the one labeled "Current theme"), click the ... menu next to Customize and choose Edit code.

Step 4. Open theme.liquid

In the Layout folder on the left, click theme.liquid. This is the master template that wraps every page on your store, so installing Boei here means it loads everywhere.

Step 5. Paste the Boei code

Press Ctrl+F (Windows) or Cmd+F (Mac) inside the editor to open the search box. Search for </body> to jump straight to it. You'll see it near the bottom of the file.

Click on the line just above </body> and paste the Boei code from Step 2. Click Save in the top right.

This adds the widget to storefront pages using this theme, not Shopify checkout or customer-account pages. A theme update or replacement can remove manual code. Recheck Boei after changing themes. See Shopify's theme-code instructions for the current editor.

Step 6. Verify

Open your storefront in a private browser window. If the store has a storefront password, enter it first. Check the homepage, a product page, the cart and a mobile screen. Confirm that Boei appears once, opens the right agent and can hand off to your team. If Shopify data is connected, test a product question and a test order with its matching checkout email. The Boei chatbot should appear in the corner.

If you don't see it immediately, hard-refresh the page (Cmd+Shift+R on Mac, Ctrl+Shift+R on Windows) to bypass Shopify's cache.

Stuck? If the chatbot doesn't appear, double-check that the Boei code is on the line just above </body>, not above </html> or somewhere else in the middle of the file.


Alternative: use an existing script tool

If your store already has a tool for footer scripts, paste the complete Boei code there and enable it for the storefront. Install it in one place only. If Boei appears twice, remove the duplicate from your theme or script tool.

Alternative: install via Google Tag Manager

If your theme is locked, or your store is a custom Shopify storefront built by a developer, you can install Boei through Google Tag Manager instead. Follow the Google Tag Manager installation guide.


Troubleshooting

If the Boei chatbot doesn't appear on your site:

  • Hard-refresh the page (Cmd+Shift+R on Mac, Ctrl+Shift+R on Windows) to bypass browser cache.
  • Disable ad blockers in your test browser. Some block third-party scripts.
  • Clear Shopify's theme cache (and Cloudflare if you use it). Changes can take a few minutes to go live.