Skip to content

Integration

Add an AI chat widget to your Shopify site

Add Kit’s AI chat to your Shopify storefront by adding one line to your theme and testing it before publishing.

Hire KitFree to try. No card needed.

First, two things in Kit

Kit learns your business from your website, and you check its answers before anyone else sees it. Once Kit is live (with a plan, or with Go live free when Kit offers it), open the install code from your dashboard: click Get the install code on the “Put Kit on your website” card if you see it (it carries your agent’s name), or Install code on your Overview. Then, in this order, before you go to Shopify:

  1. Under Add your website (or Change allowed websites), add your site and click Save allowed websites. Kit answers only on the websites you list, so use the address your visitors see, and include “www” if your site uses it.
  2. Click Copy snippet. Copying unlocks once a website is saved. It’s one line, with your own agent’s ID where this one says your-kit-id:
<script src="https://kit.ai/widget.js" data-bot="your-kit-id" defer></script>

Add Kit to your storefront theme

  1. In Shopify admin, go to Online Store → Themes. Duplicate your theme so you can test the change on a copy.
  2. For the duplicate, choose Edit code. Open layout/theme.liquid, paste the snippet once immediately before </body>, and save.
  3. Preview the duplicate before publishing. Add the exact preview address to Kit’s allowed websites if it differs from your storefront. Check the home and product pages, then publish the theme when you’re ready.

See Shopify’s instructions if you need help finding the editor.

Check it, or hand it off

Open your live storefront and look for the chat button. If the site was already open, reload it first. Ask it something a customer would ask and wait for the answer. Then go back to Kit and click Check for a visitor reply (it reads Check for a new visitor reply once Kit has a reply on file). Kit shows the latest reply on any of your allowed websites, so check that the website and the time match your test.

If someone else looks after your Shopify site, find Who looks after your website? next to the install code, choose Someone helps me with my website and click Copy installation instructions: the snippet, where it goes and how to test it, in one message. They won’t need access to your Kit account, and Kit doesn’t send anything for you.

Questions people ask

Does Kit appear in Shopify checkout?

This change adds chat to storefront pages that use the theme layout. Checkout uses a separate layout.

What if I change themes?

Check the new theme for the snippet before publishing. Theme changes can replace the file that loads Kit.

Do I need a marketplace app?

There’s nothing to install from a marketplace. Copy your own snippet from Kit’s dashboard.

Get your install code

Show Kit your website and try its answers before adding chat to your site.

Free to try. No card needed.