Chatbot
A program you exchange text or speech with, back and forth
- A chatbot is a program that takes what a person says and hands back an answer — a seat at the counter, standing in for a person.
- Older chatbots ran on fixed rules and scripts. In front of a question outside the list, they just stopped.
- Today's chatbots have a language model compose the sentence on the spot. Even a first-time question gets an answer.
- That same power to invent is also a weakness — it can state invented facts just as convincingly, which is why company documents get pulled in alongside the answer.
- Conversation feels continuous because the whole prior exchange gets resent, in full, every single time.
Contents
1The analogy
Call a customer service line and a recorded voice greets you first. Press 1 for billing, 2 for shipping. Punch in a number and a prepared script plays; ask about something off the list, and the menu just loops back to the start. This seat, standing in for a person at the counter, asking and answering, is a chatbot.
The old counter worked from a script. Hear the word "refund," read the refund script; hear "shipping," read the shipping script. Say something the script doesn't cover, and it asks you to start over. It never gives a wrong answer, but ask the same thing a little differently and it stops understanding.
Today's counter doesn't read from a script anymore — it composes the sentence right there. Questions that were never on the prepared list still get an answer that makes sense. The new worry is that it can just as convincingly invent something that was never in any handbook.
2In detail
The scripted era
Early chatbots were lists of rules. Find a word that was set in advance somewhere in the incoming sentence, and send back whatever answer got attached to that word. A slightly more advanced version first sorted the sentence into one of a handful of categories, then pulled a prepared answer for that category.
The upside was clear: since every answer was a pre-reviewed sentence, nothing the company never approved could go out, and you could always explain why a given answer came out. This approach still handles the counters that quote policy or amounts today.
The problem was that people always phrase things differently. Catching "can I get a refund," "I want my money back," and "can I return this" as the same request meant filling in thousands of sample phrasings by hand, and doing that whole job over again every time a new product launched.
A counter that composes sentences
Today's chatbot doesn't pick a script. It builds the answer piece by piece, choosing the word most likely to come next after everything said so far, then looking again. That's why questions nobody prepared for still get an answer, and the same question can come back worded slightly differently each time.
Tone can shift the same way. Slip an instruction like "be friendly," "keep it short," or "use formal language" in ahead of the question, and the whole feel of the answer changes. In the old approach, changing tone meant rewriting the entire script.
Reading company documents alongside it
A language model learned from the world's writing, not your company's refund policy. Asked without that knowledge, it mixes in some rule from somewhere else on the internet and produces a sentence that sounds plausible anyway.
So a support chatbot today usually looks up the passage related to a question in internal documents first, hands that passage to the model along with the question, and tells it to answer based on that material. This method is called RAG (Retrieval-Augmented Generation).
Do it this way, and updating a policy just means swapping the document, no retraining required. Being able to cite which document and page an answer came from is a major upside too.
Why it seems to remember
A chatbot is, by default, meeting you for the first time with every message. Conversation appears to continue only because the entire exchange so far gets attached and resent along with each new question.
That causes two things once a conversation runs long: each message sent gets bigger, so answers slow down, and once the total crosses a limit, the earliest parts get cut off. Seeming to forget a name you gave at the very start, after a long chat, comes from exactly this, which is why long support conversations often get summarized and only the summary gets resent.
It doesn't just answer, it acts
Today's support counters don't stop at giving information. They take an order number and call up shipping status, change a reservation, or hand things off to a human agent when it gets too complicated. The model itself doesn't run these — it decides which function to call with which values, and a program actually carries it out.
That's why a well-built chatbot has clear boundaries for where it stops answering: hand off to a person when it's unsure, and always confirm once more before anything involving money.
3More precisely
A chatbot isn't the name of one specific technology — it's an umbrella term for any program that operates in conversational form. Inside, there might be a list of rules, a model that classifies intent, or a language model, and you usually can't tell which just by looking at the screen. Real services often mix more than one approach, using a different one for different parts of the job.
The analogy breaks down in a place worth noting. A human agent at a counter can say "I don't know" when they don't know. A chatbot that composes sentences works by stringing together words that fit, which makes it bad at noticing when it doesn't actually know something — a confident answer and an uncertain one come out looking equally smooth. An agent remembers yesterday's call; a chatbot starts from a blank page unless the past conversation gets fed back in. That's why real services add a separate filter before an answer goes out: blocking topics it shouldn't touch, stripping anything that looks like personal information, and routing to a human when confidence is low.
4Try it yourself
- ChatGPT (OpenAI) ailearn.space Ask the same question twice, changing only the tone — you'll see it isn't reading from a script, it's composing the sentence on the spot
- WebLLM Chat (a chatbot that runs in your browser) ailearn.space This chatbot never sends anything to a server — it runs entirely on your own computer, slowdown and all as the conversation gets longer
5Common misconceptions
It's easy to think a chatbot understands meaning the way a person does, but actually it's closer to picking the word that best fits after what came before.
It's easy to think a chatbot already knows a company's policies, but actually without documents fed in separately, it invents sentences that merely sound like policy.
It's easy to think a chatbot remembers the conversation, but actually the past exchange gets resent every time, and without that, it behaves as if it's meeting you for the first time.
7One-line summary
In shortA chatbot is a program sitting at the counter to ask and answer, and it's moved from reading a fixed script to composing the sentence itself, right there in the moment.
Spotted an error or have a better analogy? Suggest an edit · Last updated2026-09-02