- Three steps: train the agent on your content, copy a one-line embed snippet, paste it before
</body>. - No code needed: the builder generates the snippet; you drop it into a plugin, theme field, or tag manager.
- Fastest path: a URL-trained tool like ChatSys auto-crawls your whole site and is live in about 60 seconds.
- Works everywhere: WordPress, Shopify, Webflow, Wix, Squarespace, and any custom HTML site use the same snippet.
- Free to try: ChatSys has a 7-day free trial, no card; flat plans at $19/month (Pro) and $39/month (Premium).
To add an AI chatbot to your website, you train an agent on your content, copy the one-line embed snippet the builder gives you, and paste it into your site before the closing </body> tag. With a URL-trained tool like ChatSys the whole thing takes about 60 seconds and needs no coding. Here’s exactly how, step by step.
Step 1 — Choose how your chatbot will learn your business
The single biggest decision is how the chatbot gets its knowledge, because it dictates how much work setup takes. There are two approaches. URL-trained tools crawl your live website automatically and build the knowledge base for you. File-trained tools require you to upload documents, paste text, or add links one at a time. For most websites the URL approach is far faster and stays current as your site changes. ChatSys uses it: you give it one URL and it reads your product pages, pricing, FAQs, and policies on its own. For the full landscape, see the comparison of the 8 best AI chatbot builders.
Step 2 — Train the agent on your content
Once you’ve chosen a tool, train it. With ChatSys you paste your homepage URL and it auto-crawls the whole domain, then trains a large language model on that content — a working agent is ready in about 60 seconds. If you use a file-trained tool, this is where you upload your help docs, PDFs, and FAQ exports. Either way, review a few test questions before going live to confirm the answers are accurate. For a deeper look at how training works and how to keep answers grounded, read how to train an AI chatbot on your own data.
Step 3 — Customize the widget to match your brand
Before embedding, set the widget’s accent color, position, welcome message, and avatar so it looks like part of your site rather than a bolt-on. A good first message sets expectations — something like “Hi! Ask me anything about our products, pricing, or shipping.” This step is optional but improves engagement, and it takes under a minute in most builders.
Step 4 — Copy your one-line embed code
Every modern builder gives you a small JavaScript snippet that looks roughly like this:
<script src="https://cdn.chatsys.ai/widget.js" data-bot-id="YOUR_ID" defer></script>That single line is all you add to your site. It loads asynchronously, so it won’t slow your pages down, and it works identically on every platform below.
Step 5 — Paste the snippet into your platform
Add the snippet just before your site’s closing </body> tag so the widget loads on every page. The exact place to paste it depends on your platform:
| Platform | Where to paste the snippet |
|---|---|
| WordPress | A header/footer code plugin (e.g. WPCode), or your theme’s custom-code area |
| Shopify | Online Store → Themes → Edit code → theme.liquid, before </body> |
| Webflow | Project Settings → Custom Code → Footer Code |
| Wix | Settings → Custom Code → add code to all pages, body end |
| Squarespace | Settings → Advanced → Code Injection → Footer |
| Custom HTML | Directly before </body> in your template, or via Google Tag Manager |
Platform-specific guides go deeper on each: see the WordPress AI chatbot guide, the Shopify AI chatbot guide, and the Webflow, Wix & Squarespace guide.
Step 6 — Test, then turn on human takeover
Publish the change and reload your site — the chat bubble should appear in the corner. Ask it a few real questions a customer might ask and confirm the answers are right. Finally, enable one-click human takeover so you or your team can jump into a live conversation when a high-value visitor needs a person. ChatSys includes human takeover on every plan, which turns the widget from a deflection tool into a sales channel. To understand the conversion impact, see how AI chatbots improve website conversion rates.
Troubleshooting: the widget isn’t showing up
If the chat bubble doesn’t appear, the cause is almost always one of three things. First, the snippet may be in the wrong place — make sure it’s inside the <body>, not the <head>, unless your tool says otherwise. Second, a caching plugin or CDN may be serving an old page; clear your cache and hard-refresh. Third, an aggressive ad blocker or content-security policy can block the script — test in a private window and check that your CSP allows the widget’s domain. Once it loads, you’re done.
The fastest way to add an AI chatbot today
If you want the shortest path from “no chatbot” to “live, trained agent,” use a URL-trained builder. With ChatSys you paste your URL, it crawls and trains in about 60 seconds, you copy one line of code, and you paste it into your platform — the same snippet whether you’re on WordPress, Shopify, or a hand-built site. Flat, predictable plans at $19/month (Pro) and $39/month (Premium), with a 7-day free trial and no credit card. Start your free trial and watch your own site answer questions in real time, or compare options in the AI chatbot builder guide.