Skip to content

AI lessons your class
can start this week.

More than 200 hands-on labs, plus readings, quizzes, and projects. Assign one piece or a whole unit.

Preview a lesson
  • 200+ labs
  • No coding needed
  • Runs in the browser

Pick the pieces, then press Assign.

Unit 7: How chat apps work

Language models and agents, grades 8 to 10

Period 3, 26 students

4 of 4 selected

What your class will learn

Units mix readings, labs and quizzes, and chapters add projects. You can assign any of them on its own.

Data and prediction

How computers sort things, make predictions, and find groups, and how to measure when they get it wrong.

How models learn

How a network learns from examples one step at a time, and how a reward can teach it the wrong lesson.

Inside a language model

How a chatbot reads text, picks each next word, and why it sometimes makes things up.

Prompting and agents

Writing clear instructions, then giving an AI tools and following every step it takes, including the wrong ones.

Fairness and privacy

Where bias comes from, how 'anonymous' data can point back to a person, and how to check a system for both.

Applying AI

Use AI on a real problem, then check whether its answer holds up.

Try this one yourself

Every lab has one thing to change.

Students guess what will happen, change the value, and check their guess. This one is from the grades 11 and 12 course. Lock in a prediction, then change the temperature.

Written for the grade you teach.

Each chapter is written separately for each grade band. The same idea comes at a depth that fits the class.
  • Grades 3 to 7

    Being written

    Short readings, one hands-on activity at a time, and no open chatbot use.

  • Grades 8 to 10

    Two courses

    Python examples and simple probability. Students follow a whole path from input to output and find where it breaks.

  • Grades 11 and 12

    Every course

    Real cost and speed numbers, and the tradeoffs between approaches. Students compare systems and back up their claims.

Print it as a worksheet.

Pick questions from the bank, add directions, and export a PDF with an answer key. The questions match the quiz students see on screen.
Question bank
  • What does a model turn your sentence into first?
  • Why does a higher temperature change the answer?
  • Name one reason a model states something false.

Drag a prompt onto the sheet, or add a heading, directions, or a page break.

Worksheet
Answer keyExport PDF

How a language model picks the next word

Use what you noticed in the sampling lab. Answer in your own words.

  1. 1.

    A model turns your sentence into ___ before it reads it.

  2. 2.

    Raising the temperature makes the next word more ___.

  3. 3.

    Give one reason a model can state something false with confidence.

See what each student did.

There's no mastery score built from clicks or time. You see the choices a student made, so you can talk with them about one.
  • Recycling helper

    Unit 7 project, due Friday

    Can pizza boxes go in recycling?

    The clean top can. Tear off the greasy bottom and put it in the trash.

    What the student sees. Their agent, a chat to test it, and a button to turn it in.

  • Maya R.

    Unit 7 project

    Turned in Thursday
    Quiz: Anatomy of a turn
    4 of 5
    Agent
    Recycling helper
    Runs
    12

    Run 7: the reply stopped early at the length limit.

    Ask Maya what changed after run 7…

    What you see. Their answers, the agent they built, and every run behind it, including the ones that broke.

Example work. The student is made up.

Your plan pays for the AI.

Your class shares a pool of credits, and you hand them out. No student needs an AI account. Nothing is billed per run.

Class balance

AP Computer Science · 26 students

Refills monthly

Credits left this month

34,180of 40,000

Recent runs

  • Build a research agent

    24 students, 61 runs

    −512
  • Temperature and sampling lab

    26 students

    −143
  • Tokenization warm-up

    26 students

    −64
  • Students pay nothing
  • You are not billed per run
  • Unused credits do not roll over
Example figures on an Educator Pro plan, which includes 40,000 credits a month.

For parents and teachers

What happens to a student's work

Real AI models, with the personal details taken out first.

  • A student typesI'm Maya Ortiz. Send my quiz to [email protected]

    The model getsI'm name removed. Send my quiz to email removed

    A made up example.

    Personal details come out first.

    Names, emails, phone numbers, and addresses are removed before a message reaches an AI model.

  • Safety checks

    A check reads what a student sends and what the AI says back.

  • Student work

    Never sold or used to train AI. Every request asks the AI company not to keep it.

  • Under 13

    Children under 13 join only with a class invitation from their school.

  • Payment

    Students never pay or sign up with an AI company. Credits come with their Trace account.

  • Who sees what

    Nothing is public unless a student shares it. A teacher sees what a student turns in, down to each step their agent took.

What teachers and parents ask first

Assign your first unit this week.

Teachers sign in with email or Google. Students join with a class code.