How to train an AI chatbot
What training an AI chatbot actually means
When chatbot tools say “train your chatbot”, they usually mean giving it your own knowledge to answer from. The language model itself stays the same: when a visitor asks something, the chatbot looks up the relevant parts of your content and writes an answer grounded in them. This is called retrieval-augmented generation (RAG). Think of it as an open-book exam — the bot doesn’t memorize your business, it reads your material every time.
Knowledge base (RAG)
What changes
Best for
Instructions
What changes
Best for
Fine-tuning
What changes
Best for
For a business website, a knowledge base plus clear instructions covers almost every case. Fine-tuning is worth it only when you need the model to behave in a very specific way and your content rarely changes.
How to train an AI chatbot step by step
Decide what the chatbot is for
Support, sales questions, bookings, after-hours answers — pick one job first. A narrow goal tells you which content matters and how to measure success.
Gather the knowledge
Your website, FAQs, policies, price lists, product guides and the questions customers really send you.
Clean it up
Remove outdated pages, resolve contradictions and use the same name for the same thing everywhere.
Add it to the chatbot
Point the chatbot at your website, then upload files and write Q&A pairs for what the site doesn’t say.
Write the instructions
Give it a role, a tone and rules: what to say about prices, which topics to avoid, when to offer a person.
Test it with real questions
Ask your top questions, rephrase them, ask follow-ups and ask things it shouldn’t know.
Launch and learn from conversations
Read the chats, find unanswered questions, add the missing answers and test again.
Set a goal and a way to measure it
A chatbot trained to “answer everything” is hard to judge. Name the problem it solves — slow replies to support emails, the same pre-sale questions every day, nobody answering after hours — and choose two or three numbers to watch:
First response time — how fast a visitor gets a useful answer.
Resolved without help — chats that ended without a person stepping in.
Escalations — how often visitors ask for a human, and on which topics.
Unanswered questions — what the bot couldn’t find in its knowledge.
Set realistic expectations. In Elfsight’s own study of 2,498 support tickets answered first by an AI assistant over three weeks, 89% of the AI’s answers contained useful information, 17% of tickets were fully resolved by the AI alone, and 5% of answers were wrong or unhelpful. The biggest change was speed: the first useful reply came in 2–5 minutes instead of 1–2 business days.
What data to train an AI chatbot on
The quality of the answers depends on the content far more than on the model. Start with the questions people actually ask, not with everything you have:
Your website — product and service pages, pricing, shipping, returns, contacts.
Support history — emails, tickets and chat logs show the real questions and the words customers use.
Policies and documents — terms, manuals, price lists, menus, onboarding guides.
Exact answers — Q&A pairs for questions where the wording matters, like refunds or legal terms.
Elfsight’s ticket study found the difference sharply: knowledge files that were rephrased product pages and marketing copy produced bland, generic answers, while files written by people who had read hundreds of support tickets produced answers customers could use. Troubleshooting notes that ended with “if this doesn’t help, send us…” also taught the bot to ask for the right details before handing a ticket to a person.
How to choose, clean and structure this content is a guide of its own: how to create a chatbot knowledge base.
How to train an AI chatbot on your website content
Your website is the fastest starting point, because it already answers most customer questions. Most no-code chatbot builders let you enter your site’s address: the tool reads the pages and turns them into the bot’s knowledge. Then:
Review the pages it read
Remove pages that would confuse it — old promotions, archived news, duplicate landing pages.
Add what the site doesn’t say
Upload documents, and write short notes for hours, delivery rules or exceptions you explain by phone.
Pin the critical answers
Use Q&A pairs for the questions where you want the exact same answer every time.
Teach it how to behave: instructions vs knowledge
Knowledge tells the chatbot what is true; instructions tell it how to act. Keep them apart: “Our return window is 30 days” belongs in the knowledge base, “Be friendly and brief, and offer a person for refund requests” belongs in the instructions.
Role — who it is for your visitors: support, a sales assistant, a front desk.
Tone and length — friendly or formal, short or detailed answers.
Rules — topics to avoid, what to say about prices, when to collect a contact.
Limits — tell it to say so when it doesn’t know, rather than guess.
Handoff — when and how to offer a person from your team.
A useful rule of thumb from Elfsight’s ticket study: if the answer is information, the chatbot can give it; if the answer is an action — a refund, an account change, a look at a customer’s own setup — a person still needs to step in. Train the bot to explain the situation and collect what your team will need.
Test the chatbot before launch
Ask it the questions yourself before visitors do:
Your 10–15 most common questions.
The same questions phrased three different ways — this checks understanding, not keyword matching.
Recent changes: new prices, new policies, new products.
Follow-up questions, to see whether it keeps the context.
Questions it shouldn’t answer — a competitor’s product, a service you don’t offer. It should say it doesn’t know, not invent an answer.
Every wrong answer points to a fix: missing content, two documents that disagree, or an instruction that needs to be clearer.
Keep improving it after launch
Training doesn’t end at launch — real visitors ask what you didn’t expect. Make a short review a habit:
Read the conversations
Look for wrong answers, vague answers and questions that came up more than once.
Fill the gaps
Add the missing answer to the knowledge base once, and every later visitor gets it.
Update on every change
A new product, new prices, holiday hours or a redesigned website should reach the bot the same day.
Don’t rely on ratings alone
In Elfsight’s study only 12% of customers clicked a feedback button, and unhappy customers were the most likely to click. Pair ratings with your own review of the chats.
Elfsight AI Chatbot helps with this loop: questions it couldn’t answer show up as knowledge gaps, you answer them once and the agent learns from your reply, and every chat is in your chat history.
Training ChatGPT on your own data
If you want ChatGPT itself to know your business, there are three common routes:
A custom GPT — in ChatGPT’s GPT builder you describe the assistant, upload documents as its knowledge and write instructions. No code, but it lives inside ChatGPT, not on your website.
The API with retrieval — developers store your documents in a searchable index and pass the relevant parts to the model with each question. This is the same RAG approach website chatbots use.
Fine-tuning through the API — you prepare example conversations (questions and the answers you want) and train a custom version of a model. It needs clean examples and a new run whenever your information changes.
Whichever route you take, the same rules apply: focused, well-organized documents beat a large pile of files; never put passwords, keys or private data in instructions or knowledge that the public can reach; and check the provider’s data controls to see how your uploads are used. For a chatbot on your own website, a no-code builder that does retrieval for you is usually the shorter path.
On this page
The AI agent playbook
Choose your business
What visitors ask about most, whatever you sell. Your agent finds most of it on your site — add the rest yourself.
Any business knowledge checklist
Tick what your agent already knows; add the rest to its knowledge.
What you offer
Prices
Practical details
Policies
The first thing people see. Short, in your voice, with one clear next step.
Buttons under the greeting, so people start with one tap. Pick up to four and drag them into order — lead with the question that brings them in.
On your widget 4 / 4
- How much does it cost?
- How do I get started?
- Which option is right for me?
- Can I talk to a person?
More ideas
Rules for the moments that need care. Add them in a sentence each — here's how they play out.
Questions it can't answer
If the answer isn't in your knowledge, say so and offer to pass the question to the team. Never guess.Do you ship to Iceland?
I don't have that information yet. Leave your email and the team will get back to you.
Prices for custom work
Give prices from the knowledge only. For custom work, give the starting price and take the person's contacts for a quote.How much for a custom order?
Custom orders start at $200 and depend on the details. Leave your phone and we'll send you a quote.
Complaints
If someone is upset or something went wrong, apologise once and offer a person straight away — don't argue or explain.This is the second time my order is late!
I'm really sorry. Here's how to reach our team directly — they'll sort it out with you.
Advice outside your field
Never give medical, legal or financial advice. Suggest a professional and bring the conversation back to what you offer.Is this safe to take with my medication?
That's one for your doctor or pharmacist. I'm happy to tell you exactly what's in it.
Card details and passwords
Never ask for card numbers, passwords or ID documents in the chat. Send people to your checkout or account page.Can I give you my card number to pay?
Please don't share card details here — you can pay safely on our checkout page.
Other businesses
Never talk about competitors. Bring the conversation back to what you offer.Another company does this cheaper.
I can only speak for us — here's everything that's included in our price.
Switch these on so questions turn into customers.
- Contact formTakes names, emails and phones for quotes and callbacks — they land in your dashboard.
- Action buttonsCall, WhatsApp, email or any page of your site, one tap away.
- Human handoffOffers your contacts when the agent can't help or a topic needs a person.
- Follow-upWrites again if someone goes quiet mid-conversation.
- Calendly or Cal.comBooks calls and appointments.
- Google SheetsKeeps every lead in one list.
What owners most often miss before going live.
- Key facts only in picturesPrices or hours in an image aren't text the agent can read. Put them on a page or in the agent's knowledge.
- No way to reach a personAdd your phone, email or WhatsApp to the handoff, so urgent questions reach you, not a dead end.
- No prices at all“From $35” is better than nothing — people leave when they can't get a rough idea.
- Outdated knowledgeOld prices and policies go straight to customers. Update the knowledge whenever something changes.
- Never reading the chatsThe first weeks of chats show what people really ask. Read them and fill the gaps.