AI for Business
authorKRIATIZ

How a business chatbot works

25 minBeginner7 steps

An AI chatbot answers customers in your words and from your data, but only if it is set up properly. Let’s look at its parts, where mistakes come from and how to catch them before launch.

data and requestsproblem
Lesson stepsstep 1 of 7
  1. Question
  2. Knowledge base
  3. Model
  4. Action
  5. Made up
  6. Person
  7. Summary
step 1 / 7how it works

A customer writes in the chat

"How much is a cleaning and can I come on Saturday?" The message reaches the bot on the website, WhatsApp or Instagram.

Key point

The bot accepts questions in any wording.

← → steps · space pause · R restart · ⌘K search
You will learn 7
Lesson notes

Three parts of an AI bot

  1. Language model (GPT, Claude, Gemini). It understands the question and writes the answer. On its own it knows nothing about your prices.
  2. Knowledge base. Your price list, rules, address, shipping terms, answers to common questions. Before every reply the bot searches the base for relevant pieces and passes them to the model.
  3. Instructions and actions. Behaviour rules (tone, what it may promise, when to call a human) and tools: show free slots, create a booking, send a lead to the CRM.

If one part is weak, the bot works badly. Most often the problem is the knowledge base: incomplete or outdated.

How the bot answers a question

  1. The customer writes: "How much is a teeth cleaning and can I come on Saturday?"
  2. The bot searches the knowledge base for cleaning prices and opening hours.
  3. The model gets the question, the found pieces and the instructions, and writes an answer.
  4. If an action is needed (showing free slots), the bot calls a tool such as the clinic calendar.
  5. The answer goes to the customer. If the question is complex or the customer is upset, the bot hands over to a person.

This approach is called RAG (retrieval-augmented generation). It lets the bot answer precisely from your data without retraining the model.

Why bots make things up

A language model always tries to give an answer. If the fact isn't in the knowledge base, it may produce a plausible but wrong reply: a price that isn't on your list, or delivery to a city you don't serve. Three rules remove most of this:

  • Instruction "answer only from the knowledge base". If there is no answer, the bot says it will check and calls a person.
  • A complete knowledge base. Collect the 30–50 most common questions from real chats and write the answers.
  • Testing before launch. Run the bot through 50–100 real questions, including awkward and ambiguous ones.
Health, money, law. For clinics, lawyers and financial services, the bot gives no advice on a specific case. It answers general questions and books a consultation.

What goes into the knowledge base

SectionContents
Services and pricesnames, "from" prices, what's included, duration
Hours and contactsopening hours, address, directions, parking
Rulesbooking and cancellation, payment, shipping, returns, warranty
FAQ30–50 questions from real chats and your answers
Toneformal or casual, emojis, reply length, 2–3 examples
Limitswhat the bot doesn't do and when it hands over

When the bot hands over to a person

  • The customer asks for a manager.
  • A complaint or negative emotion.
  • A question with no answer in the knowledge base.
  • A large or unusual request: wholesale, corporate order, custom terms.
  • An urgent situation: pain, accident, failed delivery.

The person gets a notification in the messenger or CRM with the whole conversation, so they don't have to ask again.

How to build a knowledge base in one day

  1. Morning: go through the last month of chats in Instagram, WhatsApp and on the website.
  2. Midday: list all customer questions and merge duplicates. Hundreds of messages usually become 30–60 unique questions.
  3. Afternoon: write an answer to each the way your best manager would, with current prices and terms.
  4. Evening: list separately what the bot doesn't do and when it calls a person.

Pre-launch checklist

  • The bot quotes correct prices for your 10 most popular services or products.
  • The bot honestly says "I'll check" when there is no answer.
  • The bot hands over complaints, urgent cases and requests for a manager.
  • The bot doesn't promise discounts, instalments or deadlines that aren't in the rules.
  • The bot replies in the customer's language and in your team's tone.
  • You know where to see all bot conversations and who reviews them weekly.

Today's task

Open your customer chats from the last month and list the 20 most common questions. Next to each, write the answer your best manager would give. This is the first version of your knowledge base.

Want a chatbot for your business?

I will build a bot on your knowledge base for your website, WhatsApp, Telegram or Instagram. From $500, launch in about a week.

See prices
Vladyslav Koshelyev
Vladyslav Koshelyev

Developer at KRIATIZ. I build chatbots, websites and automation for businesses. Author of the course.

About the author · Telegram