All guides
Deployment

Install the chatbot on Shopify

Add an AI chatbot to your Shopify store to answer your customers about products, shipping and returns.

1 min read

This guide shows you how to add your chatbot's widget to your Shopify store by pasting one line of code into your theme.

Before you start

Tip: before editing your theme, make a backup copy: on the Themes page, click … then Duplicate.

1

Open the theme code

  1. In the Shopify admin, go to Online Store → Themes.
  2. On your current theme, click … then Edit code.
2

Paste the code before `</body>`

  1. In the layout folder, open the theme.liquid file.
  2. Find the </body> tag, at the very bottom of the file.
  3. Paste the embed code right before that tag.
  4. Click Save.

The widget now shows on every page of your store.

3

Check on your store

Open your store in a private browsing window: the chat bubble should appear in the corner chosen in Settings.

Good to know

  • The code belongs to the theme. If you switch themes, paste the code again into the new theme's theme.liquid.
  • Checkout pages are handled separately by Shopify: the widget doesn't show there.
  • To let the chatbot know your products and policies, import your store's pages: see Train the chatbot on your website.

The widget doesn't show?

  • Check that you edited the current theme (the one marked "Current theme").
  • Allowed sites: if you filled them in, add your domain and, if customers use it, your .myshopify.com address.
  • Check that the chatbot is Live in the Deploy tab.
Was this guide helpful?
Next guideInstall the chatbot on Wix