← Setup guides

How to add a chatbot to your Shopify store

On Shopify you add the code to your theme's main layout file, theme.liquid, so it appears on every page of your store.

."},{"@type":"HowToStep","position":2,"text":"In your Shopify admin, go to Online Store, then Themes."},{"@type":"HowToStep","position":3,"text":"Duplicate your current theme first, so you have a backup."},{"@type":"HowToStep","position":4,"text":"On your current theme, click the ... button, then Edit code."},{"@type":"HowToStep","position":5,"text":"In the Layout folder, open theme.liquid."},{"@type":"HowToStep","position":6,"text":"Paste your code just before the closing tag."},{"@type":"HowToStep","position":7,"text":"Click Save."},{"@type":"HowToStep","position":8,"text":"Open your website in a new tab and look for the chat bubble in the bottom-right corner. Your Widget page shows \"Widget live\" once it has been seen on your site."}]}

Before you start

Steps

  1. Sign in, open your assistant's Widget page and copy the one line of code shown there. It starts with <script and ends with </script>.
  2. In your Shopify admin, go to Online Store, then Themes.
  3. Duplicate your current theme first, so you have a backup.
  4. On your current theme, click the ... button, then Edit code.
  5. In the Layout folder, open theme.liquid.
  6. Paste your code just before the closing </body> tag.
  7. Click Save.
  8. Open your website in a new tab and look for the chat bubble in the bottom-right corner. Your Widget page shows "Widget live" once it has been seen on your site.

Platform steps checked on September 16, 2026 against Shopify Help Center: Editing theme code

Good to know

Can't edit your website?

Every assistant has its own chat page. Link to it from your website's menu, your Google Business Profile, social media or email signature. Or use "Email this to my web person" on your Widget page to send the code to whoever runs your site.

Questions

Is there a Shopify chatbot app?

Not for this assistant. You add it with one line of code in your theme, which works with any theme you can edit.

Will it appear on the Shopify checkout?

No. Checkout pages don't use your theme's layout, so the chat shows on your store pages but not at checkout.

Try it on your own website

Your customers are asking right now

Paste your website and hear your assistant answer as your business. It takes about a minute.

  • No account needed
  • No card
  • Free plan forever

Want the details first? See pricing