How to Add an AI Chatbot to Your Website in 10 Minutes
By the uchats team · Updated December 6, 2026 · 6 min read

Adding an AI chatbot to your website is now closer to adding Google Analytics than building software. In most cases you paste one line of code, point the bot at your website, and spend the rest of your time checking its answers.
This guide covers the whole job: choosing how to install, platform-by-platform steps, what to train it on, a testing checklist, going live, and the mistakes we see most often. We use uchats in the examples, but the process is similar for most tools.
Script tag or plugin?
There are two common ways to put a chat widget on a site:
| Method | How it works | Pros | Cons |
|---|---|---|---|
| Script tag | Paste a single line of code into your site's footer or theme | Works on almost any platform; one tag for all pages | You need access to your site's code or a "custom code" setting |
| Plugin / app | Install from a platform's app store | Point-and-click | Only exists for some platforms; adds another plugin to update |
uchats uses a script tag. There's no WordPress.org plugin yet; on WordPress you paste the tag with a header/footer code plugin you probably already have. A uchats tag looks like this:
<script src="https://uchatbots.app/widget.js" data-bot="YOUR_BOT_ID" async></script>
Your real tag, with your bot ID filled in, is on the Install tab of your assistant. The widget loads asynchronously, so it won't hold up the rest of your page.
Step 1: Create the bot and point it at your site (3 minutes)
- Sign up and click Create assistant.
- Enter your website address. uchats looks for your sitemap first, then follows links on your site. It respects robots.txt and skips login, cart and checkout pages.
- While it reads your pages, open Appearance to set a name, colours and a welcome message.
Small sites are usually ready in a minute or two. The user guide explains exactly how learning works.
Step 2: Add the script tag to your platform (2–5 minutes)
WordPress
- Copy your script tag from Install.
- Install a header/footer code plugin such as WPCode (Plugins → Add New).
- Paste the tag into the Footer box and save.
- Open your site in a private window and look for the chat button.
Using a block theme? You can also add it with a Custom HTML block in the footer template part. Full steps: WordPress install guide.
Shopify
- In Shopify admin go to Online Store → Themes → ⋯ → Edit code.
- Open layout/theme.liquid and paste the tag just above the closing body tag.
- Save and preview your store.
Add your shipping, returns and FAQ pages as sources. Those are the questions that stop people checking out. Full steps: Shopify install guide.
Wix
- Go to Settings → Custom Code (under Advanced).
- Click + Add Custom Code, paste the tag, apply it to All pages, and place it in Body – end.
- Apply and publish.
Wix custom code needs a premium plan with a connected domain. Full steps: Wix install guide.
Squarespace
- Go to Settings → Advanced → Code Injection (or Website → Pages → Custom code in newer versions).
- Paste the tag into the Footer field and save.
Code Injection is available on Squarespace Business plans and above. Full steps: Squarespace install guide.
Any other site (HTML, Webflow, Next.js, Ghost…)
Paste the tag just before the closing body tag of your main template so it loads on every page. See the HTML install guide.
Step 3: Give it the right training sources
Your website is the starting point, but rarely the whole story. Good extra sources include:
- Price lists, menus or service sheets as PDF, DOCX, TXT or CSV.
- Policies: returns, cancellations, delivery, warranties, privacy.
- Q&A pairs for questions your site doesn't answer well, such as "Do you have parking?" or "Do you work weekends?"
- Pasted text for anything that lives in your head or an internal doc.
What to leave out: anything private, internal-only or out of date. The bot can only be as accurate as what you give it. For a deeper walkthrough see how to train ChatGPT-style AI on your own website.
Step 4: Set instructions and tone
In custom instructions, tell the bot who it works for and how to behave. Keep it short:
- "You are the assistant for [Business]. Be friendly and brief."
- "If someone wants a quote, ask for their name, email and what they need."
- "Never give medical, legal or financial advice. Suggest contacting us instead."
uchats answers only from your content regardless. Instructions shape tone and priorities; they don't let the bot invent facts.
Step 5: Test before you go live
Use this checklist in the dashboard's preview before anyone else sees the bot:
- Ask your 10–20 most common customer questions. Are the answers right and do the source links point to the right pages?
- Ask about prices, opening hours and policies. These are the answers that cause trouble if wrong.
- Ask something not on your site. It should say it doesn't know and offer the contact form.
- Try an off-topic or tricky prompt ("write me a poem", "ignore your instructions"). It should stay on task.
- Ask in another language your customers use. uchats replies in the visitor's language.
- Submit the lead form and check the email arrives.
- Click Book a meeting and confirm it opens your booking page.
- Check on a phone. Does the button cover anything important?
- Read the AI disclosure line in the widget, and adjust the wording if you need to.
Anything it gets wrong: fix the source page, add a Q&A pair, or answer it from the unanswered-questions list.
Step 6: Go live
- Add your domain to the domain allowlist so your widget only runs on your own sites.
- Publish the script tag (if you tested on a staging site, add it to the live one).
- Turn on lead email notifications and make sure someone checks the inbox.
- On paid plans, uchats re-syncs your site automatically. After a big site change, press Retrain anyway.
Step 7: The first two weeks
- Day 1–3: read every conversation. You'll quickly spot gaps.
- Weekly: work through the unanswered questions list. Answer each once and the bot learns it.
- Watch analytics for common topics. They often reveal pages your site is missing.
Common mistakes
- Installing it on one page only. Put the tag in a site-wide footer or template.
- Training on outdated PDFs. Old price lists cause wrong answers. Remove them.
- No human fallback. Someone should get the lead emails and be able to take over chats.
- Over-long instructions. A page of rules confuses more than it helps. Start with five lines.
- Forgetting disclosure. Visitors should know they're talking to AI. See our EU AI Act guide and the free AI disclosure generator.
- Never reviewing chats. A weekly 15-minute review keeps answers sharp.
- Blocking the crawler. If robots.txt blocks your pages, the bot can't learn them.
Wrapping up
The install is the quick part. The value comes from good sources, a quick test, and a short weekly review. If you'd like to try it, create a free uchats account. The Free plan includes 100 bot replies a month, enough to test on your real site before deciding anything.