Guides

How to train an AI chatbot on your own content, step by step

Training a chatbot means giving it good sources and checking its answers. Here is how to pick content, clean it, add Q&A pairs, retrain and test with real questions.

By the Askocto team · · 5 min read

To train an AI chatbot, you do not teach it from scratch. You give it sources it can search, write rules for how to use them, and check its answers against the pages they came from. Quality depends far more on the content you connect than on the settings you tweak.

In short: Choose a small set of accurate sources, clean them, add Q&A pairs for exact wording, retrain after changes and test with real customer questions.

What "training" actually means

Many people picture training as feeding a model thousands of examples. For a customer-facing chatbot that is rarely what happens. The usual setup is simpler: the chatbot reads your content, finds the parts relevant to a question and writes an answer from them.

So "training" in practice is three jobs:

  • Choose sources the chatbot may draw on.
  • Shape behavior with instructions, tone and procedures.
  • Check and correct answers, then update the sources.

If you are curious about the technical difference between searching your content and changing a model, RAG vs fine-tuning explains it plainly. For almost every support use case, connecting content is the better starting point, because you can fix a wrong answer by editing a page.

Choose sources: less, but right

Start with the ten most common customer questions and the pages that answer them. A hypothetical language school might begin with course levels, schedule changes, payment options, cancellation rules and exam preparation. That is five topics and perhaps 20 pages.

Good sources are:

  • Current. Remove anything that has been replaced.
  • Written for customers. Internal notes full of shorthand confuse retrieval.
  • One topic per page. A page that covers eight topics matches poorly.
  • Consistent. Two pages that disagree produce unstable answers.

Leave out old campaigns, drafts, internal memos and anything you would not want quoted to a customer.

Connect and format the content

Askocto accepts five kinds of knowledge: a Website (crawl a URL or sitemap), Files (PDF, DOCX, TXT, CSV), pasted Text, Q&A pairs and a help center import. You find them under Build > Sources. Each source shows a status of Queued, Training, Ready or Failed.

A few formatting habits help any tool:

  1. Put the answer in the first sentence under each heading.
  2. Spell out conditions, such as dates, regions and exceptions.
  3. Use the words customers use, with the formal term in brackets if you need it.
  4. Turn tables into short text when a table loses meaning without its layout, such as a price grid in a PDF.

The article on structuring a knowledge base for AI goes further into layout.

Add Q&A pairs for answers that must be exact

Some answers should never be reworded: your cancellation window, your refund rule, a statement about what you do not cover. Write these as question and approved answer pairs. They carry more weight than general pages and give you a place to correct mistakes quickly.

Create a pair whenever you catch a wrong answer in testing. For the language school, "Can I switch to a different class level mid-course?" gets a pair with the exact rule. Keep a list of the pairs and review it each month so that old rules do not linger.

Write procedures for anything with steps

Content describes. Procedures instruct. For requests that have steps, such as "change my class time", write a short procedure in plain language:

Change class time
1. Ask for the student name and current class.
2. Check the schedule source for classes at the same level.
3. Offer up to three alternatives.
4. If the student is within 24 hours of the class, hand over to
   the front desk.

The agent then follows the steps instead of improvising. The article on writing procedures for an AI support agent shows more patterns.

Retrain and test with real questions

A change to a source only helps once the chatbot has retrained on it. Retrain manually after each batch of edits, and set Auto-retrain on a schedule for sources that change often, such as a pricing page or a timetable.

Then test. Take 30 real customer questions, from your inbox or chat history, and ask them in the Playground. For each answer, check:

  • Is it correct and complete?
  • Which source did it come from?
  • Does it use the right tone?
  • Does it hand over when it should?

Fix the sources before the instructions. If the right page exists but is not used, rewrite its heading and first sentence to match how customers ask. When you see the same wrong answer twice, that topic needs a Q&A pair. For fixing the patterns behind wrong answers, read how to improve AI chatbot accuracy.

Keep training after launch

Training is a habit, not a task. After you go live, look each week at the questions the chatbot could not answer and at conversations customers rated badly. Write or fix content for the top few. Over a quarter, the chatbot improves because your content improves.

If you want to follow this plan on your own content, you can start with a free Askocto account and look at the data sources documentation for the details of each source type. The same method works on any tool that answers from your own content, and the walkthrough on training an agent on your help center covers a common starting point.

Frequently asked questions

Do I need to train an AI chatbot on thousands of examples?

No. For support, you connect your content and let the chatbot search it. A short, accurate set of pages works better than a large, messy one.

How often should I retrain my chatbot?

After every meaningful content change, and on a schedule for sources that change often. A weekly review of unanswered questions tells you what to add.

Can I train a chatbot on PDFs and spreadsheets?

Yes, most platforms accept files such as PDF, DOCX, TXT and CSV. Check how a table or a scanned page looks after training, because layout can get lost.

Why does my chatbot ignore a page I added?

The page may not match how customers phrase the question, or another source may contradict it. Check the status, rewrite the heading in the customer's words and test again.

Train an agent on your own help center

Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.

Keep reading

All articles
Guidesai chatbot tone of voice
Oct 12, 20266 min read

AI chatbot tone of voice: how to define and test it

A practical way to set your AI chatbot's tone of voice: pick a few traits, write example replies, set rules for angry customers and humor, and review real transcripts every week.

Read article
Guidesai chatbot hallucinations
Jun 9, 20266 min read

AI chatbot hallucinations: how to stop made-up answers

AI chatbot hallucinations usually trace back to gaps, conflicts and missing rules. Ground answers in your content, teach the bot to say it does not know and review failures weekly.

Read article
Guideschatbot gdpr compliance
Jun 4, 20266 min read

GDPR and AI support chatbots: a pre-launch checklist

Map the data, pick a lawful basis, write the widget notice, set retention, choose a region, restrict access and plan for deletion requests. A checklist to run before launch.

Read article