Skip to content
Truth Academy.
Truth Academy
← Explore AI

Natural Interaction

How Chatbots Work

A chatbot predicts the next word, over and over. Try it yourself.

The dog chased the

The model holds a ranked guess for “The dog chased the ___”. Pick the next word, watch how sure it is.

1

It finishes your sentence

Give a chatbot a few words and it predicts what comes next, one piece at a time, over and over. That single trick, done at enormous scale, becomes conversation.

2

It's all about probability

For every spot, the model holds a ranked list of likely next words. 'The dog chased the ___' lights up cat, ball, squirrel, not refrigerator. You're about to feel that list yourself.

3

Confident, never certain

The model is never sure. It picks among good options, which is why it can be creative, and why it can confidently be wrong.

Take it further

Full lessons on this topic

Each classroom module below is a full lesson: script, activity, slides, and an AI tutor.

AI tutor is turned off for this class

Use the CS124 lectures, notes, and assignments below to keep learning.