“Training” a chatbot: what people usually mean

When a business owner says “train it on our data”, they usually want the bot to answer questions about *their* company accurately. There are two main techniques, and they solve different problems.

Side by sideRAG vs. fine-tuning

Retrieval-augmented generation (RAG)

  • Looks up relevant passages from your documents for every question
  • Answers are grounded in your current content
  • Update a document and the bot knows immediately
  • Can cite which source an answer came from

Fine-tuning

  • Adjusts the model’s style, tone or task behaviour
  • Needs many carefully prepared examples
  • Facts are baked in and go stale when your business changes
  • Harder to explain or correct a specific wrong answer

For facts that change — prices, hours, policies, product details — RAG is almost always the better fit.

How a RAG chatbot answers a question

ProcessFrom question to grounded answer
  1. 1

    Question

    A visitor asks, “Do you offer same-day delivery?”

  2. 2

    Search

    The system finds the most relevant passages in your content.

  3. 3

    Assemble

    It gives the model the question plus those passages and clear instructions.

  4. 4

    Answer

    The model replies using only the supplied material.

  5. 5

    Fallback

    If nothing relevant is found, it says so and offers a person.

The quality of step two — finding the right passage — decides how good the bot is. That is why preparing your content matters more than choosing the newest model.

Step 1: Gather and clean your knowledge

Start with what customers actually ask, then collect the documents that answer those questions.

  • FAQs, policies and terms: returns, delivery, cancellations, warranties.
  • Product or service details: descriptions, specifications, what is and is not included.
  • Pricing structure: published prices or how pricing works (see the warning below).
  • Process explanations: how ordering, onboarding or booking works.
  • Past support conversations: the real wording customers use, to spot gaps.
Source content: good vs. problematic
Good sourceWhy it worksProblematic sourceWhy it fails
Short, single-topic pagesEasy to retrieve preciselyHuge PDFs with mixed topicsRelevant passage is hard to isolate
Current, dated documentsAnswers stay accurateOutdated policies still lying aroundBot repeats old rules
Plain-language answersClear for customersInternal jargon and acronymsConfusing replies
One source of truthNo contradictionsConflicting versionsInconsistent answers

Step 2: Set the rules (guardrails)

A grounded bot also needs written instructions about behaviour. Good ones cover:

ChecklistChatbot guardrails to define
  • Answer only from the supplied material; otherwise say you are not sure
  • Never quote prices, discounts or deadlines that are not in the content
  • Tone of voice and how to introduce itself as an automated assistant
  • When and how to hand over to a person, and what to pass along
  • Topics to decline (legal, medical or financial advice, for example)
  • How to handle personal data and when to ask for contact details

Step 3: Connect it to your systems

A bot that only answers questions is useful; one that can check an order, book a slot or create a lead in your CRM is valuable. That requires secure connections to your tools — the topic of our guide to API integration. Start read-only (checking status) before allowing actions (changing records), and keep a person in the loop for anything consequential, as we discuss in AI agents for business.

Step 4: Test before you launch

Build a test set from real questions

Collect 50–100 questions customers genuinely ask, including awkward ones: misspellings, vague wording, questions the bot should refuse, and questions your content does not cover. Run them all, mark each answer correct, wrong or unsafe, then fix the content or the rules and re-run. Repeat after every significant change.

What to check in each answer
CheckPass looks like
AccuracyMatches your current content exactly
HonestyAdmits when it does not know
SafetyDeclines out-of-scope requests politely
ToneSounds like your brand; clear and concise
HandoverEscalates sensitive cases with context

Step 5: Keep it accurate over time

  • Name an owner for the bot’s knowledge — someone who updates it when prices, policies or offers change.
  • Read a sample of real conversations every week at first; fix wrong answers at the source.
  • Track unanswered questions: they are a to-do list for new content.
  • Review privacy: what is stored, for how long, and who can see it (see our guide on chatbots vs. live chat).