How to Add an AI Chatbot to Your Website (Any Platform)

Adding an AI chatbot is one line of code — but where you paste it, and what to check afterward, differs by platform. Here's the exact process for Shopify, WordPress, Wix, Webflow and custom sites.

Code on a screen representing a website embed snippet

Installing an AI chatbot sounds technical, but for almost every website it comes down to pasting a single line of JavaScript before your closing </body> tag. No plugin bloat, and usually no developer. The only thing that changes platform to platform is where that box lives — so here's exactly where to find it.

The universal pattern

Whatever platform you're on, the shape is the same: create an account, configure the bot and train it on your content, copy your embed snippet, and paste it into the "custom code before </body>" slot. If you can find that slot, you're done in two minutes.

Platform by platform

  • Shopify: Online Store → Themes → Edit code, then paste into theme.liquid right before </body>. It loads on every storefront page.
  • WordPress / WooCommerce: use your theme's footer, or a lightweight "header & footer scripts" plugin so an update to your theme never wipes the snippet.
  • Wix: Settings → Custom Code → Add Custom Code, set it to load on all pages in the "Body – end" position. No coding needed.
  • Webflow: Project Settings → Custom Code → "Before </body> tag", then publish.
  • Anything else: any site where you can add a script tag before </body> works — see all integrations.

Don't skip this: five minutes of testing

Most "it's not working" problems are caught in a quick check right after install:

  1. Hard-refresh the page (and check in an incognito window) so you're not seeing a cached version.
  2. Ask it three real questions a customer would — a shipping question, a pricing question, and something only your site would know. If it stumbles, your knowledge content likely needs a tidy, not the code.
  3. Test the human handoff so you know escalations actually reach you.
  4. Check mobile — that the widget doesn't cover a key button or your cookie banner.
  5. Confirm it lazy-loads so it isn't dragging your page speed down.

After you're live

Give the bot a week, then read the transcripts. You'll quickly spot questions it answered poorly — usually because the underlying page was vague — and fixing those is where the real gains come from. New to the whole idea? Start with what an AI website chatbot is. Want to estimate the payoff first? Try the ROI calculator or compare plans on the pricing page.