Adding an AI chat assistant to your website on Shopify, Wix, Squarespace or WordPress: where the snippet goes on each platform, what to put in its knowledge, and how to test it

The assistant is one line of code. The only hard part is finding where your website platform lets you paste it, because every platform hides that setting somewhere different. Here is the exact path for each, current as of writing.

By Ritchie, ReplyKit · Published 5 October 2026 · 6 min read

Quick answer

Create a website assistant in your dashboard, copy its snippet, and paste it just before the closing body tag of your site: on Shopify in the theme's layout file, on Wix in Settings under Custom code, on Squarespace in Code Injection, and on WordPress with a header-and-footer plugin or your theme's footer scripts box. Give the assistant your site's knowledge (it can crawl the site itself) and a short instruction set, test it on a product page, and watch the chats arrive in the same inbox as WhatsApp. ReplyKit's assistant is included on every plan.

ShopifyWixSquarespaceWordPressWhat the assistant should knowFAQ

Shopify

  1. Online Store, Themes, the three-dot menu on your live theme, Edit code.
  2. Open Layout, theme.liquid.
  3. Find the closing body tag near the bottom and paste the snippet on the line above it.
  4. Save. The assistant appears on every page.
  5. If your theme updates often, re-check after updates; some themes reset edits.

Wix

  1. Site dashboard, Settings, Custom code (under Advanced).
  2. Add custom code, paste the snippet, name it.
  3. Add to: All pages. Place code in: Body, end.
  4. Apply. Custom code requires a paid Wix plan with a connected domain.

Squarespace

  1. Settings, Developer tools, Code injection (older versions: Settings, Advanced, Code injection).
  2. Paste the snippet in the Footer box.
  3. Save. Code injection needs a Business plan or above.

WordPress

  1. Easiest: install a header-and-footer scripts plugin, paste the snippet in the footer box, save.
  2. Or: Appearance, Theme file editor, footer.php, before the closing body tag; this is overwritten on theme updates unless you use a child theme.
  3. Many themes have a "footer scripts" box in their own settings; use it if present.
  4. For WooCommerce stores the assistant works on product pages like any other page.

Webflow: Project settings, Custom code, Footer code. Plain HTML: paste before the closing body tag in your template. The widget loads asynchronously and does not slow the page.

What the assistant should know

Let it crawl your site, then add what the site does not say: shipping and returns in plain lines, sizing, stock notes, hours, and the questions people ask before buying. The assistant has its own instructions and knowledge separate from your WhatsApp agent, so a storefront persona can differ from the WhatsApp one; see instructions for a website assistant. Test on a product page with the five questions customers ask most, as in AI chat widget for websites. Chats land in the same inbox and CRM as WhatsApp, and visitors can be moved to WhatsApp by giving them your number.

Frequently asked questions

Where does the snippet go on Shopify?

Online Store, Themes, Edit code, Layout, theme.liquid, just before the closing body tag.

Does it work on Wix free plans?

No. Wix custom code requires a paid plan with a connected domain.

Will it slow my site?

No. The widget loads asynchronously after the page.

Can the assistant have different knowledge from my WhatsApp agent?

Yes. Each website assistant has its own instructions and knowledge, and all chats share one inbox.

Does it work on WooCommerce product pages?

Yes, like any other page once the snippet is in the footer.

How do I remove it?

Delete the snippet from the same place you pasted it.

On your site in five minutes

One snippet, your knowledge, the same inbox as WhatsApp. 7-day free trial, no card.

Start free
Written by Ritchie, ReplyKitPart of the small team in Malaysia that builds and runs ReplyKit. Writes about WhatsApp automation, AI customer service and small business lead response.

How we know this. ReplyKit's website assistant installs with one script tag, and these are the exact paths our customers use on each platform; they are re-checked when platforms move settings. Product figures in this article (limits, prices, per-reply costs) are taken from ReplyKit as it runs today and are re-checked when we update the page. Where we cite outside research, the source is linked below. We sell ReplyKit, so read our product claims with that in mind; we say where a different tool or no tool is the better choice. About ReplyKit.

Sources and further reading

  1. Harvard Business Review, The Short Life of Online Sales Leads (Oldroyd, McElheran, Elkington, 2011) · firms that responded within an hour were about seven times more likely to qualify the lead
  2. WhatsApp Business Messaging Policy · opt-in, opt-out and prohibited-use rules every business must follow

ReplyKit is an independent product and is not affiliated with or endorsed by Meta or WhatsApp. This article is general guidance for running a small business, not legal, financial or regulatory advice.