Skip to main content

How AI writes stories

  • Audience ages 10-16 (years 5-10)
  • Duration 60 or 90 minutes
  • Flavour ledger

The model in this lesson lives on Ledger A sheet with one row per word, tally marks for each word that followed it, and a coloured box around each tally column. Generation uses a cup of coloured counters, one per tally mark: draw a counter, read the word beside its colour. The cup does the weighted sampling. View in glossary : a table with one row per word, tally marks beside each word that followed it, and a coloured box around every tally. Generation Using a trained model to produce new text by repeatedly predicting and choosing the next token. Look up the current word, pick a next word in proportion to the counts, write it down, repeat. View in glossary uses a cup of coloured counters: put in one counter per tally mark in the box’s colour, draw one, and read the word beside that colour. The cup handles the probability of “more common means more likely”. Training Building a model by counting patterns in text. When you read through a passage and tally which word follows which, you are training a model. The cutouts, booklets and search sheets are models that the generator has already trained for you from a text. View in glossary is tallying by hand from a printed text.

Groups start with a finished model and generate from it first, so when they see one being made they already know what every mark is for. Each group’s finished model is a different picture book, and you can hear the book in each group’s story during the shareback.

The 90-minute deck is the 60-minute one with two parts added: each group training its own model from a new text, and the class pooling its models into one story.

Lesson plan

Allow five minutes for arrival and settling first. In the 90-minute version, drop the class story if you’re running over.

Part60 min90 min
What is AI?: discussion, plus an AI writes the class a story1212
Four key words: AI, language model, training, generation44
Read the sheet: one row read aloud as a sentence55
Generation: stories from the pre-tallied sheets, then shareback2220
Where did the marks come from?: the class trains one row together88
Training: each group tallies a new text onto blank sheets12
One story, all together: the class pools its models (optional)10
Wrap-up: what did we learn? Q&A65

Reading the sheet comes before anyone touches a counter: a whole sheet goes up on the screen, then one row of it is read aloud as a sentence (“after the, this book said magpie six times”). Every group then finds a row of their own and does the same. The colours come with that row: a box’s colour names its place in the row, and the counters come in those four colours.

Generation runs the Generation module with the cup. The slides walk through one book (The magpie) draw by draw, then every group generates from its own. The shareback asks the room to guess each group’s book from its first sentence, and asks two groups holding the same book why their stories differ.

Where did the marks come from? is answered by the whole class. The slides start from the bare text of The magpie, split it into words, then build the start of its sheet pair by pair. Then the presenter reads the first half of the book aloud, the class shouts the word after every “the”, and a helper tallies them on the whiteboard, then checks the tallies against the row on screen. Every row on every sheet was made this way.

Training (90 minutes) has each group make a model of its own. Every group gets a different short text (one of the six training texts in the printouts) and blank sheets; one person reads the text two words at a time from the printout, and the group writes each new word into a spare row and tallies beside it. Nothing is printed on the sheets, so agree first that a new word is claimed out loud; if two people keep separate counts of the same word, the group’s model breaks.

One story, all together pools those models, on butchers paper up the front. Call out the current word (the last word of the class story); every group whose sheets have a row for it puts a hand up; pick one, and that group reads out the colours and tallies on its row. Do the draw up the front with a single cup while the room watches, and have the group whose row it is read out the word beside the colour drawn. The class story can contain words only one group’s text had, so it says things no single group’s model could.

You will need

  • one pre-tallied picture-book set per group, five sheets and four colours, a different book per group: the-magpie (a short story written for this lesson, and the book the slides walk through), the-wombat (another written for it), the-very-hungry-caterpillar, were-going-on-a-bear-hunt and the-cat-in-the-hat
  • counters in four colours (red, blue, green, yellow), at least six of each per group (the largest tally in any set), a paper cup per group, and a tub per group to tip the cup back into between draws
  • a whiteboard and a helper to tally on it, a projector, and access to a Chatbot (ChatGPT, Claude, Gemini) A product that wraps an LLM in a conversation. ChatGPT is OpenAI's, Claude is Anthropic's, Gemini is Google's, and there are many others. On this site we often name ChatGPT or Claude as shorthand for any of them: the concepts apply equally to every modern LLM chatbot, whichever one you use. View in glossary for the opening
  • for the 90-minute version: blank sheets, one per person, a different training text per group, butchers paper for the class story, and pen and paper per group

Printing it

The printouts download holds the five picture-book models one after another, one blank sheet, the six training texts (one to a page, and two to a page to cut in half), the counters page and a one-page instruction sheet. Its README says what to print and which pages go to which group; the 60-minute version needs only the picture books, the counters and the instructions. To make sheets from a book of your own, use the generator on the Materials page.

Before you deliver

  • with more than five groups the books repeat, and past six the training texts do too; spread the repeats so that groups sharing a book or a text aren’t side by side
  • the story slide in the opening has fill-in boxes for the teacher’s name, the year level, and the three class words

Running it for teachers

To train teachers to run it themselves, add ?teachers to the deck’s URL. The workshop stays pitched at their students, so the teachers do it the way their class will. It adds one slide after the introductions saying so, and a short block before the wrap-up for stepping out of the student role: what running it in class takes, where it fits in the Australian Curriculum, and how to answer “so is ChatGPT just counting?”. Allow an extra 10–15 minutes.

Using the slides

The presenter guides are PDFs with every slide followed by a page of its speaker notes—handy if you'd rather prepare away from the browser.

The slides run in your browser, and every slide carries full presenter notes—what to say, what to watch for, and how long each part should take. A few keys worth knowing:

  • f toggles fullscreen—do this before you start presenting
  • s opens the speaker view in a separate window, with the presenter notes, a timer, and a preview of the next slide (drag it to your laptop screen and put the slides on the projector)
  • o shows an overview of all slides, handy for skipping ahead if you're running short on time