Find a course

Module 2: How AI LearnsLesson 5 of 79 min

Chatbots and AI Art

Some AI can write stories and make pictures. Find out how chatbots guess one word at a time, and why they sometimes make things up.

Step 1 of 13Learn

How a chatbot writes

A chatbot is an AI you can type or talk to, and it answers in sentences. Some can write poems, explain homework and tell jokes.

How? A chatbot was trained on a huge amount of text. It learned which words usually follow which. When it writes, it predicts the next word, then the next, then the next, very fast.

Try it: "Peanut butter and..." You probably thought "jelly." A chatbot does the same kind of guessing, millions of times.

Step 2 of 13Practice · Chart

Peanut butter and ... ?

Which word would a chatbot most likely pick next?

Tap the bar that answers the question, then press Check.

Peanut butter and ... ?Bar chart with 5 categories: jelly: 80%; bread: 9%; banana: 6%; honey: 4%; socks: 1%.0%20%40%60%80%jelly80%bread9%banana6%honey4%socks1%
Made-up numbers to show the idea.
Peanut butter and ... ?
ItemHow likely
jelly80%
bread9%
banana6%
honey4%
socks1%

Step 3 of 13Practice · Fill in the blanks

Fill in the blanks

A chatbot writes by predicting the next , again and again.

Word bank

Step 4 of 13Learn

When chatbots make things up

Because a chatbot predicts words that sound right, it can write things that are not true. It might invent a fact, a book that does not exist, or a wrong answer to a math problem, and say it very confidently.

Scientists sometimes call this hallucinating. The chatbot is not lying on purpose. It just does not know the difference between sounding right and being right.

Step 5 of 13Practice · True or false

If a chatbot sounds very sure, its answer must be true.

Step 6 of 13Practice · What would you do?

What would you do?

You ask a chatbot for facts for your report on sea turtles. It gives you an interesting fact you have never heard. What should you do?

Step 7 of 13Diagram

Check a chatbot fact

Check a chatbot factProcess diagram: Chatbot says a fact → Look it up → Ask a grown-up → Use it if it checks out.Chatbot says afactLook it upAsk a grown-upUse it if itchecks out

Tap a shape with to see more.

Chatbot says a fact
Look it up

In a library book or a trusted website.

Ask a grown-up
Use it if it checks out

Step 8 of 13Learn

AI that makes pictures

Some AI tools make pictures from words. Type "a cat riding a skateboard on the Moon," and the AI creates a new image.

These tools learned from millions of pictures and their descriptions. They can be fun for imagining things, but they often get details wrong, like hands with six fingers or signs with jumbled letters.

AI can also make fake voices and videos that look real. These are called deepfakes.

Step 9 of 13Practice · Select all that apply

Which clues might show that a picture was made by AI? Pick all that are right.

Select all that apply.

Step 10 of 13Practice · Fill in the blanks

Fill in the blanks

Fake videos or voices made with AI to seem real are called .

Word bank

Step 11 of 13Flashcards

Chatbot words

Tap a card to flip it.

Step 12 of 13Note

Step 13 of 13Practice · Choose one

Why do chatbots sometimes make up facts?