Building with AI

What is a chatbot?

In short

A chatbot is a program that holds a written or spoken conversation with people, for example to answer customer questions on a website.

Older chatbots followed fixed scripts and only understood set phrases. Chatbots built on language models understand free text and answer naturally, and with RAG they answer from the company's own information. Good chatbots know their limits and hand over to a person when needed.

Mini course

3 short lessons, about 2 minutes in total

  1. From buttons to conversation
  2. What makes a good one
  3. Launching one

Lesson 1

From buttons to conversation

Older chatbots followed decision trees: click a button, get a fixed answer. They broke as soon as a customer wrote something unexpected. Chatbots built on language models understand free text, follow up on what was said and answer in natural language.

Modern chatbots understand free text instead of forcing customers through buttons

Old rule-based chatbotChatbot built on a language model
Click a button, get a fixed answerWrite freely, get an answer in your words
Breaks on unexpected questionsHandles new wording of known questions
Every answer written by handAnswers drawn from your own content

The chatbot on this website is one: it answers from the site's own content.

Lesson 2

What makes a good one

A clear role and tone in the system prompt. Answers grounded in the company's real content, usually through RAG, so it does not make things up. Honest 'I don't know' when the answer is not there. A smooth way to reach a person. And guardrails against misuse and data leaks.

Visitor
Chatbot
A modern chatbot combines a language model, instructions, company knowledge and a hand-off to people when needed

Tap a box to open that concept

The model matters less than the content and setup around it.

Lesson 3

Launching one

Start with the 20 most common questions customers ask. Make sure your website or help center answers each one clearly, since the chatbot can only be as good as its source. Test with real questions, including tricky ones, before launch. Tell visitors they are talking to AI. Read conversation logs weekly in the beginning and improve the content where answers fall short.

  1. Customers find youHow customers and AI tools find the companySEOGEOGoogle AI Overviews
  2. AI in daily workTools staff and customers useChatbotAI copilotVoice AI
  3. Building blocksHow AI connects to data and systemsRAG (retrieval-augmented generation)AI agentMCP (Model Context Protocol)
  4. AI modelsThe models that understand and createLarge language model (LLM)Generative AIMachine learning
  5. DataCompany data, gathered and cleanedData warehouseETLData quality
  6. InfrastructureCloud, networks and systems underneathCloud computingDatabaseAPI key
Trust and rulesSecurity, law and control in every layerGDPR and AIEU AI ActAI guardrails
Where Chatbot sits in a company's AI setup

Measure resolved questions, not number of chats.

An everyday example

A visitor asks a web shop's chatbot at 11 pm whether a jacket comes in large; the bot checks stock and answers right away.

How companies use it

Companies use chatbots for customer service, booking, lead capture on the website and internal help desks.

Frequently asked questions

Will customers accept talking to a chatbot?

Most accept it for quick answers, as long as it is clear it is a bot and a person is easy to reach.

Can a chatbot give wrong answers?

A chatbot can give wrong answers. Limit it to your own information, test it and let it say when it does not know.

Must we say it is a bot?

Under the EU AI Act, people must be told when they interact with an AI system, unless it is obvious.

In depth: Chatbot

The full picture, about 4 minutes of reading

A program you can talk to

A chatbot is a program that holds a conversation with people, in writing or by voice. The most familiar kind sits in the corner of a website and answers questions such as "do you deliver on Saturdays?" or "how do I return this?". Others live in messaging apps, in a company's internal help desk or behind a phone number.

The word covers a wide range. A simple chatbot follows a script. A modern one is built on a large language model, the kind of AI that can read and write text in a natural way, and can understand questions it has never seen before. The difference in usefulness between the two is large.

From fixed scripts to free conversation

Older chatbots worked like a decision tree. The bot showed a few buttons, each click led to a new set of buttons, and in the end it showed a fixed answer. If a customer typed something the designers had not planned for, the bot got lost and offered the same menu again. Many people still remember those bots as frustrating.

Chatbots built on language models understand free text, follow up on what was said earlier in the conversation and answer in normal sentences. They can handle spelling mistakes, mixed languages and questions phrased in unexpected ways. That makes them useful for real customer conversations, not just for a short menu of common topics.

How a modern chatbot answers

Several parts work together each time a visitor writes a message. First, there is a system prompt, a hidden instruction that tells the model its role, tone and rules, such as "you answer questions for a plumbing company, in a friendly and short way, and never promise prices".

Second, the chatbot looks up information. Using a method called RAG, short for retrieval-augmented generation, it searches the company's own content, such as web pages, product sheets and terms, and picks the passages that match the question.

Third, the model writes an answer from those passages and the conversation so far. Fourth, guardrails, automatic checks on what goes in and out, stop unwanted topics, personal data leaks or attempts to misuse the bot. Finally, if the question needs a person, the chatbot hands over, ideally with the conversation attached so the customer does not have to repeat everything.

Where chatbots go wrong

A chatbot can give a confident wrong answer. This usually happens when it does not find the right information and fills the gap from general knowledge, or when the company's own content is outdated or unclear. Limiting the bot to the company's information and telling it to say "I don't know" when the answer is missing reduces this a lot.

Other problems are about design. A bot that hides the way to a human makes people angry. A bot that pretends to be a person breaks trust, and the EU AI Act requires that people are told when they are talking to an AI system, unless it is obvious. A bot without limits can be talked into giving advice it should not give or making promises the company cannot keep. And a bot nobody reviews after launch slowly drifts away from what customers actually ask.

What makes a chatbot good

The model matters less than the content and setup around it. A good chatbot has a clear role and a clear limit on what it covers. It answers from the company's real, current content. It is honest when it does not know. It makes it easy to reach a person. And it is tested before launch with real questions, including awkward ones.

After launch, the conversation logs are the most useful tool. Reading them shows which questions come up, where answers fall short and which pages on the website are missing or unclear. Fixing the content usually fixes the chatbot. The right measure of success is how many questions were actually resolved, not how many chats took place.

What it means for a small business

For a small business, a chatbot can answer simple questions at any hour, take booking requests and collect contact details from interested visitors, so staff spend less time on the same questions. It works best when the answers already exist in writing.

Start by listing the questions customers ask most often, and make sure the website answers each one clearly, because the chatbot can only be as good as its source. Choose a tool that answers from your own content and shows where the answer came from. Say clearly that visitors are talking to AI, and make a person easy to reach. Read the conversations every week in the first months and improve the content where answers fall short. The chatbot on this website is a small example of the same setup.

Sources: EU AI Act (Regulation (EU) 2024/1689)

Curious what this could mean for your company? Book a call.

Book a call