Large Programs

Home / For Kids

For Kids

How Does a Chatbot Answer Your Question? A Kid's Guide

Follow a question from your keyboard to a chatbot's answer in four easy steps.

26 November 2026 · 1 min read

Illustration for the article How Does a Chatbot Answer Your Question? A Kid's Guide
Illustration made for this site.

Let's follow a question on its trip.

A four-step flow: you type a question, the words become tokens, the model guesses one word at a time, and the numbers turn back into words you read.
Diagram made for this site from the facts on this page.

Step 1: You type

You write, "Why is the sky blue?"

Step 2: Words become tokens

The computer cuts your question into small pieces called tokens and turns them into numbers.

Step 3: The model guesses

The model uses the patterns it learned to guess a good first word of the answer. Then it adds that word and guesses the next. It repeats until the answer is done.

Step 4: You read

The numbers turn back into words on your screen.

Remember

A plain language model is not looking in a book as it answers (some apps add a search tool), and it is not thinking like you. It is making a careful guess. So if the answer matters for homework, check it in a book or with a teacher.

Sources