Home › Guides › How to train an AI chatbot on your website

How to train an AI chatbot on your website

Training a website chatbot doesn't mean building an AI. It means giving it the right content to answer from. The quality of its answers depends almost entirely on what you feed it, so this guide shows how to do that well.

The pages a chatbot has learned from a website.
The pages a chatbot has learned from a website. (Example business.)

Key takeaways

  • Website chatbots answer from your content; they don't learn from conversations on their own.
  • Choose the pages that sell (services, prices, areas, FAQs), not every page you have.
  • Upload price lists and add Q&As for answers that aren't on your website.
  • Fix wrong answers by fixing content, then retrain.
  • Unanswered questions show you exactly what to add next.

How website chatbots actually learn

Modern website chatbots use a method usually called retrieval-augmented generation. Nothing is "trained" in the deep-learning sense. Instead:

How a website chatbot learns and answers1ReadIt visits the pages youchoose and reads thetext, plus any documentsyou upload.2IndexThe text is split intoshort sections andstored in a search indexthat understandsmeaning.3FindWhen a visitor askssomething, it finds thefew sections mostrelated to the question.4AnswerThe AI writes a shortreply using only thosesections, or says itdoesn't know.

Two consequences follow, and they explain most good and bad chatbots:

  • It can only be as good as the content it reads. If your prices aren't written anywhere it can see, it can't answer price questions.
  • Clear content gets clear answers. A page that says "Boiler servicing: £85, takes about an hour, includes a safety check" will be answered well. A vague page full of slogans won't.

Step 1: Choose the right pages

Start with the pages a customer reads before buying. In our experience these do almost all the work:

IncludeUsually leave out
Home, services or products, one page per main serviceOld news and announcements
Prices, packages, "from" pricesTag, category and archive pages
Areas covered and locationsJob adverts
FAQs, about, contact, opening hoursBlog posts unrelated to what you sell
Policies: cancellations, guarantees, delivery, returnsLegal boilerplate that repeats on every page
The pages your chatbot has learned, with one click to choose pages or retrain.
The pages your chatbot has learned, with one click to choose pages or retrain. (Example business.)

More isn't always better. If a plan limits pages, 300 blog posts can push out the pricing page. And old pages with old prices will be found and quoted, so remove or update them.

Step 2: Fill the gaps with documents and Q&As

A lot of what customers ask isn't on the website. It's in a price list PDF, a brochure, a menu, or in the owner's head. Add it:

  • Documents: price lists, brochures, product sheets, menus, terms. PDFs and Word files need real text inside; scanned images of pages contain no text for the chatbot to read.
  • Q&As: for the questions you answer on the phone every week. Write them as the customer would ask them.

A good Q&A looks like this:

Q: Do you charge a call-out fee?
A: No. There's no call-out charge for repairs in Leeds, Wakefield and Bradford.
You pay for the time on site, from £65 for the first hour.

Short, specific, with the numbers and the limits. Avoid "Please contact us for details". The chatbot will repeat it, and visitors want an answer.

Uploaded documents and pasted Q&As. Text is read from files on your device and added to the chatbot's knowledge.
Uploaded documents and pasted Q&As. Text is read from files on your device and added to the chatbot's knowledge. (Example business.)

Step 3: Write content that answers well

If you're adding or rewriting pages, a few habits make a big difference to answer quality:

  • Put facts in sentences: "We cover Leeds, Wakefield and Bradford" beats a map image.
  • One topic per section with a clear heading, so the right section is found.
  • Include the numbers: prices, durations, minimums, guarantees.
  • Say what you don't do: "We don't install heat pumps" stops wrong assumptions.
  • Use your customers' words. If they say "boiler service", don't only say "annual appliance maintenance".

Step 4: Set behaviour, not facts

Instructions are for how the chatbot talks: tone, reply length, what to ask, when to ask for contact details. They're not a good place for facts. "Our boiler service is £85" belongs in your content, where the chatbot can find it and you can keep it up to date in one place.

Tone, length, questions to ask and lead capture are set with multiple-choice options.
Tone, length, questions to ask and lead capture are set with multiple-choice options. (Example business.)

Step 5: Test with real questions

Use real questions from your inbox and phone calls, not ones you invented. Check four things:

  1. Right answer: is it correct and current?
  2. Right source: did it use the right page, or an old one?
  3. Honest gaps: asked something not in your content, does it say so instead of guessing?
  4. Next step: does it offer a quote or callback when the visitor is ready?

When an answer is wrong, find the content that caused it and fix that, then retrain. Adding an instruction like "never say X" treats the symptom and leaves the wrong content in place.

Step 6: Retrain when things change

A chatbot doesn't watch your website for changes. When you change prices, services, opening hours or policies, update the website or your documents, then retrain. In WebsiteChatbot, retraining the website keeps your uploaded documents and Q&As.

Step 7: Use unanswered questions to improve it

Your chatbot shows you exactly what's missing. Every question it couldn't answer from your content appears in a list, with how often it's been asked:

Questions it couldn't answer, with an "Add answer" button that turns each one into a Q&A.
Questions it couldn't answer, with an "Add answer" button that turns each one into a Q&A. (Example business.)

Ten minutes a week on that list is the most valuable maintenance you can do. Those questions were costing you enquiries before you had a chatbot; now you can see them.

Common mistakes

  • Training on hundreds of blog posts but not the pricing page.
  • Leaving out-of-date pages online, so old prices get quoted.
  • Uploading scanned PDFs with no real text.
  • Putting facts in instructions instead of content.
  • Never reading conversations, so the same gaps stay open for months.
FAQ

Frequently asked questions

How long does it take to train a chatbot on a website?

A few minutes for a small site. Larger sites train in the background while you set up the rest.

Does the chatbot learn from conversations automatically?

No, and that's deliberate. It answers only from content you control, so a visitor can't teach it something wrong. Use conversations and the unanswered-questions list to see what to add.

How many pages does a chatbot need?

Most small businesses get good results from 10–30 well-chosen pages plus a few documents and Q&As.

Can I train a chatbot on PDFs?

Yes, as long as the PDF contains real text. Scanned images of pages don't contain text the chatbot can read.

Will it make up answers?

A well-configured website chatbot answers only from your content and says when it doesn't know. Test this before going live by asking something your content doesn't cover.

Get started

Create your free AI chatbot

Enter your email and we'll send you a secure sign-in link. Your chatbot can be live on your website in minutes.

  • Free plan, no credit card
  • Trained on your website in minutes
  • One line of code to install

Start free

No password needed. We'll email you a sign-in link.

Already have an account? Log in