How does a chatbot talk?
A chatbot learned by reading a huge amount of writing. It answers by adding one fitting word after another to the words that came before.
Story
The teacher wrote on the board, “Snow is falling from the ___.” The whole class shouted together, “Sky!” Nobody told them the answer, but everybody knew it. Filling in the blank like this is exactly what a does.
Let’s learn
A chatbot is an that talks with you in writing. The brain of a chatbot is a ‘.’ A language model learned by reading a huge amount of writing, like books, news articles and stories.
It learned just one thing: ‘What word comes after these words?’ This is how a chatbot answers.
- It reads your question.
- It picks one fitting word to come next.
- It adds that word, and then it picks the next word.
- It repeats this until the sentence ends.
It does this very fast, so it looks like it is speaking smoothly all at once. But a chatbot does not speak because it knows the meaning. It picks words that sound right together. That is why it can be wrong even when it sounds natural.
At a glance
-
Read the question
-
Pick the next word
-
Add it on
Repeat until the sentence ends
In simple words
It is like a friend who is very good at a word-chain game, where each new word must start with the last letter of the word before. But a chatbot does not look only at the last letter. It looks at everything said so far and then adds the next word.
Try it
Play ‘Add the Next Word.’
- One person starts with “Once upon a time.”
- Take turns and add exactly one word each.
- When the sentence ends, read it aloud from the start.
- Nobody planned the story, but did it turn into one? This is how a chatbot makes sentences, too.
Quiz
If the sentence is right, choose [True]. If it is wrong, choose [False].
-
1A chatbot picks a fitting word to come next and adds it on.
That’s right!
Not quite. Read the reason.
It picks words one at a time to build a sentence.
-
2A chatbot knows what everything means and thinks before it speaks, just like a person.
That’s right!
Not quite. Read the reason.
A chatbot picks words that sound right together. It does not feel or know the meaning.
-
3If a chatbot sounds natural, what it says is always correct.
That’s right!
Not quite. Read the reason.
Sounding natural and being correct are two different things. It can sound natural and still be wrong.
Correct answers / 3
Remember
- A chatbot is an AI that talks in writing.
- It picks the next word, one at a time, and adds it on.
- It can be wrong even when it sounds natural.
Today’s words
Tap a word to see what it means.
Go deeper
These pages are for older students and grown-ups. Read them together with a grown-up.