# LLMs Unplugged — How AI writes stories (60 min)

> A 60-minute school workshop (ages 10-16) using paper ledger sheets and a cup of coloured counters to discover how AI writes stories

# LLMs Unplugged

## How AI writes stories

> **notes:** Open warm: today we'll find out how AI writes stories, and write some ourselves with paper and a cup of counters, without computers.

---

## Acknowledgement of Country

> **notes:** Acknowledge the Traditional Custodians of the land you're meeting on, and pay respects to Elders past and present. Keep it brief and sincere; say it in your own words.

---

> **notes:** Quick intros: who's in the room and why you're here. A sentence each; don't let it run.

---

## Today, you're the class

we'll run this exactly as we would with your students

then we'll step out and talk about running it yourselves

> **notes:** The rest of the deck is pitched at their students; the best preparation for running the workshop is doing the activities the way a class will. Ask them to take the student role for the session and save questions about classroom delivery for the time set aside at the end.

---

# What is AI?

---

## Think → share

when you hear the words **artificial intelligence**, what comes to mind?

think on your own, then share with the person next to you

> **notes:** Form their workshop groups as they turn to each other; they'll stay in those groups for the rest of the session (2 min). Then take a few answers from the room: does anyone know what AI stands for? What have you talked about in class? Has anyone tried using it, and what for?

---

## Let's ask one to write us a story

we need **three words or ideas** --- hands up!

> **notes:** Collect three words from the class (hands up, choose a few) and write them on the board so everyone can see.
>
> Type your name, the year level and the three words into the boxes on this slide, hit "Copy prompt", then alt-tab to ChatGPT and paste.
>
> Read the result back dramatically.

---

# That was a **language model**

---

## What just happened?

no person on the other side wrote that story for us

the **language model** learned patterns from huge amounts of text, then copied
those patterns to make something new

today we'll build our own language models --- **without a computer**

> **notes:** Reinforce: whether or not you use AI, understanding how it works helps you make better choices about when to use it.

---

## Some words we'll use

artificial intelligence (AI) — technology that mimics some human abilities, like writing stories or answering questions
language model — a system that predicts what word comes next, using patterns it learned from text
training — building a language model by finding patterns in text (its training data)
generation — using a language model to write new text, one word at a time

> **notes:** Four words we'll use throughout the workshop. Reveal them one at a time and tie each back to what they've already seen: AI wrote our story; a language model predicted the next word; we'll train ours by spotting patterns in the kids' book (our training data), then use it to generate a story of our own.

---

# Generation

> **notes:** Groups of 4-5, if the room isn't in them already; they stay in those groups all session. Hand out the sheets now, one per person. Keep the counters back until the activity slide: nobody has been told what the colours mean yet, and a cup on the table ends up on the floor.

---

## This is (another) language model

> **notes:** Take your time here. This is one sheet of the model. Left column: words from the book. Along each row: the words that followed, with a tally mark for each time that pair appeared in the book. Let them look at it before you point to a row.

---

## One row at a time

> **notes:** Read the row aloud as a sentence: after the word "the", this book said "magpie" six times, and "fence", "postie" and "dog" four times each. The magpie groups can find this exact row; every other group finds the row for a word they like in their own book and reads it the same way. Two or three groups read theirs out.
>
> The colours go here too: every word sits in a coloured box, and the counters come in those four colours, so a red counter means the word in the red box. Red means "fence" on this row and "the" on the row for "swoops": the colour marks the box position rather than a fixed word, so one set of counters works for every row and every book.

---

## Your group holds the whole model

> **notes:** Every sheet holds an alphabetical range of words shown in the header. To find a word, check the headers rather than scanning every row. These are the magpie headers; every book splits differently, so each group practises on its own sheets. Run two lookups ("who has it?", "who has fence?").

---

# Worked example

---

> **notes:** Walk through the next slides slowly; the mechanics are simple, but the hand-over ("who has the next row?") is where groups stall. Give every group four jobs: a reader (finds the row), a filler, a drawer, and a writer. If you have a real cup and a visualiser, do the draws for real and use the slides as the backup.
>
> The sheet on screen gathers the nine rows of the magpie's ledger that this story visits; in the room they are spread across the five sheets. A story can start with any word you like. We'll start with "it": write it down, and whoever has the row for "it" finds it. Three words ever came after "it" in this book, and the cup is empty.

---

> **notes:** First word in the row: "is", one tally mark, red box. One red counter into the cup.

---

> **notes:** Next word: "sits", four marks, blue box. Four blue counters.

---

> **notes:** Last word: "watches", two marks, green box. Two green counters, and the row is in the cup.

---

> **notes:** Seven counters for seven marks. The cup now holds the row's counts: the more marks, the more counters, the more likely. Ask before you draw: which colour do you think will come out?

---

> **notes:** Blue: the likeliest one, four chances in seven. Write "sits" down, tip the cup back into the tub, and pass to whoever has the row for "sits".

---

> **notes:** No cup needed: after "sits" this book only ever said "on". A one-word row needs no draw at all. Groups will hit a few of these, and they speed things up.

---

> **notes:** And after "on", only ever "the". Another one-word row, straight onto the page.

---

> **notes:** The biggest row yet: all four boxes have marks. One counter for every mark, each in its box's colour.

---

> **notes:** Eighteen counters across all four colours: four red for "fence", four blue for "postie", six green for "magpie", four yellow for "dog".

---

> **notes:** Red comes out: "fence". We'll come back to this row in a minute.

---

> **notes:** After "fence" this book only ever said ".", and a full stop is a word like any other. The full stop goes on the page, and whoever has the row for "." takes over.

---

> **notes:** The row for "." says how this book starts its sentences: four words ever started one.

---

> **notes:** Fifteen counters: six red for "it", and three each of blue for "here", green for "down" and yellow for "back". Mostly red.

---

> **notes:** Blue has only three of the fifteen counters and comes out anyway.

---

> **notes:** After "here" this book only ever said "comes".

---

> **notes:** And after "comes", only ever "the". Two more one-word rows, straight onto the page.

---

> **notes:** Back on the row for "the". Same row, so the same counters go in.

---

> **notes:** The same eighteen counters as before.

---

> **notes:** This time green comes out ("magpie" instead of "fence"). Same row, same cup, different word. This answers why two groups with the same book don't write the same story.

---

> **notes:** Two words ever came after "magpie".

---

> **notes:** Six counters: three red for "!", three blue for the full stop.

---

> **notes:** Blue, and the sentence ends. Eleven words in, we have a sentence this book never said: the book has "Here comes the postie." and "Back goes the magpie.", and the model has spliced them together because each step only looks at the current word. Stop at a full stop or a question mark you like, or keep going.

---

_"It sits on the fence. Here comes the magpie."_

the book said _"Here comes the postie."_ and _"Back goes the magpie."_

> **notes:** Read it aloud with feeling, then read the book's two lines underneath it. Ask which bits come from the book and which combination is new.

---

## Your turn

write down a starting word, then repeat:

1. **find the row** for the current word
2. **fill the cup**: one counter for every tally mark, each in its word's colour
3. **draw one** without looking --- its colour tells you the next word
4. **write it down** (it's the new current word), tip the cup back into the tub,
   and pass the job to whoever has its row

> **notes:** Leave this slide up while they work. Hand out the cups and tubs now. Four jobs per group: a reader who finds the row, a filler, a drawer, and a writer. Any word will do to start, and when they hit a "." or "?" they like, they can keep going or start again from any word.
>
> Circulate. Common stalls: forgetting to tip the cup back into the tub between draws (the counters from the last row are still in there); a row with no marks at all (the word only ever ended the text; start again from any word); arguing about which box a colour is (read the name printed in the box's corner).

---

# Shareback

---

## No two stories the same

two groups with the **same book**: why aren't your stories the same?

could any group's model write a story about a **crocodile**?

> **notes:** Hear from four or five groups. Three things to draw out:
>
> - the stories sound like their books because the model only has the words and pairs from its book
> - two groups with the same sheets get different stories because the cup draw is random, so asking the model twice gives two answers (the wrap-up comes back to this)
> - "crocodile" isn't on any sheet, so no model in the room can produce it
>
> Finish by asking where the tally marks came from: someone had to count the book, and in the next section they'll do the counting.

---

# But where do the tally marks come from?

> **notes:** Ask the room and take a few guesses. Their sheets arrived already filled in, and someone had to make every one of those marks.

---

# Training

> **notes:** Every tally mark came from reading the book, and making them is called training. We'll build the start of one sheet together, pair by pair, then fill one row all at once.

---

> **notes:** This is the start of The magpie, as the book writes it. No sheet yet: training starts with nothing but the text.

---

> **notes:** Before anything gets counted, the text is split into words: every word made lowercase (except "I"), and every full stop split off as a word of its own. That's how the computer read the books too, and why the sheets are all in lowercase.

---

> **notes:** Now the sheet comes out, empty, and we read the text two words at a time: "it", then "is". It's the first time we've seen "it", so it gets a new row; "is" goes in the row's first box, with one mark beside it.

---

> **notes:** Move along by one: "is", then "spring". The second word of the last pair is the first word of this one, so the text is read once and every pair in it gets counted. A new row for "is", "spring" in its first box, one mark.

---

> **notes:** "spring", then ".". A full stop is a word like any other, so it goes in the box like any other.

---

> **notes:** ".", then "it". Now the full stop gets a row of its own, which records how this book starts its sentences.

---

> **notes:** "it", then "sits". The row for "it" already has "is" in its red box. "sits" is new after "it", so it takes the next empty box (blue). Each new follower takes the next box in the order it first appears in the text.

---

> **notes:** From here, let the room call each pair before you click. "sits", then "on": a new row.

---

> **notes:** "on", then "the".

---

> **notes:** "the", then "fence".

---

> **notes:** "fence", then ".". The row for "fence" gets the full stop.

---

> **notes:** ".", then "it", which we've seen before. Add a second mark beside "it" in the row for "." instead of opening a new box.

---

> **notes:** "it", then "watches": the third word ever to follow "it", so it takes the third box, green. Every row on every group's sheets was made exactly this way, pair by pair, through the whole book.

---

## Listen for the word “the”

> It is spring. It sits on **the** fence. It watches. Here comes **the** postie. Down swoops **the** magpie! Off runs **the** postie. Back goes **the** magpie. It sits on **the** fence. Here comes **the** dog. Down swoops **the** magpie! Off runs **the** dog. Back goes **the** magpie.

> **notes:** Tell the room: every time you hear "the", shout the word that comes next. Read the first half of The magpie aloud, slowly, leaning on every "the" (ten of them). The room shouts the next word; a helper tallies it on the whiteboard in four boxes (fence, postie, magpie, dog, in that order). About 45 seconds. Every "the" is in bold on the slide.

---

## Check the sheet

> It is spring. It sits on **the** fence. It watches. Here comes **the** postie. Down swoops **the** magpie! Off runs **the** postie. Back goes **the** magpie. It sits on **the** fence. Here comes **the** dog. Down swoops **the** magpie! Off runs **the** dog. Back goes **the** magpie.

> **notes:** Compare the whiteboard with the row on screen: fence 2, postie 2, magpie 4, dog 2. Every row on every group's sheets was made exactly this way; the only difference is that a computer read the books, and keeps the counts as numbers rather than tally marks. Real AI does the same thing with a huge amount of text.

---

## Running it in your class

everything to print is in the **pack on the lesson page**: no books to find

**60 minutes**: one of the pack's pre-tallied picture books per group, counters,
a cup and a tub per group, and a whiteboard for training "the" together

**90 minutes**: add blank sheets and one of the pack's training texts per group,
then the class story

> **notes:** Step out of the student role here, cover the logistics briefly, and open for questions. Recommend using the lesson pack rather than bringing their own picture books: the generation sheets come pre-tallied, and the training texts are written so no word needs more than four boxes. Teachers who want to use a book of their own can generate sheets from any text on the website's tools page.
>
> The snags you saw today are the ones their class will hit: counters left in the cup from the last draw, a word with no row (start again from any word), and in the 90-minute version two people starting a row for the same word. The whiteboard tally in the 60-minute version is a good job for a student. With more than five groups the books repeat; spread the repeats around the room.

---

## Where it fits

[`AC9TDI8P02`](https://www.australiancurriculum.edu.au/f-10-curriculum/learning-areas/digital-technologies/year-7/content-description?subject-identifier=TECTDIY78\&content-description-code=AC9TDI8P02) (DT, years 7--8) --- analyse data to find
patterns: the tallies

[`AC9TDI8P01_E5`](https://www.australiancurriculum.edu.au/f-10-curriculum/learning-areas/digital-technologies/year-7/content-description?subject-identifier=TECTDIY78\&content-description-code=AC9TDI8P01) (DT, years 7--8) --- training data shapes a
model's output: the book in every story

[`AC9TDI10P01_E6`](https://www.australiancurriculum.edu.au/f-10-curriculum/learning-areas/digital-technologies/year-9/content-description?subject-identifier=TECTDIY910\&content-description-code=AC9TDI10P01) (DT, years 9--10) --- the zero problem: no
crocodile on any sheet

[`AC9M5P02`](https://www.australiancurriculum.edu.au/f-10-curriculum/learning-areas/mathematics/year-5/content-description?subject-identifier=MATMATY5\&content-description-code=AC9M5P02) (maths, year 5) --- frequency and likelihood: the cup

> **notes:** Australian Curriculum v9.0, years 5--10; DT is Digital Technologies. Each code opens ACARA's panel for it. Only the first and last are content descriptions; the two in the middle are elaborations, whose links open the content description they belong to, with the elaboration listed under it. Elaborations are optional, but they are the clearest statement of what ACARA wants students to understand about AI, since the curriculum names AI only in elaborations. Victoria, NSW and WA have their own codes, so teachers there will need to find the local match. The full mapping, module by module, is on the website's curriculum page.

---

## “So is ChatGPT just counting?”

the **same loop**: look at the words so far, weigh the next ones, pick one at
random

it looks at the whole conversation instead of one word, and learned from
trillions of words across the web

and the model is **one part of a bigger system**: tools it can call, filters on
what goes in and comes out, instructions you never see

> **notes:** Students always ask this. Every reply is still sampled one word at a time, which is why "regenerate" gives a different answer, just as two groups with the same book wrote different stories. Beyond the jump in scale (a whole conversation of context and trillions of words of training data), a chatbot wraps the model in ordinary software: hidden system instructions prepended before the user's message, tools the model can call (web search, a calculator, code execution), and input/output filters. Their paper sheets represent the model at the centre of that system.

---

(qr: <https://www.llmsunplugged.org/lessons/how-ai-writes-stories/>)

---

## About your stories

who wrote your story: you, the model, or the book's author?

our models can't say crocodile — what might a chatbot be missing?

does a chatbot know what it's saying?

> **notes:** Let the class answer these; none of them has a single right answer:
>
> - the words came from the book, the choices came from the cup, and the group chose where to start and stop, so whose story is it?
> - each group's model only has the words from its book, and a chatbot only has what was in its training data: what might it have missed or read too much of, and how would you tell?
> - back to the story from the start: their paper model doesn't know what a magpie is, it only picks a likely next word. A chatbot does the same thing at a much larger scale, so does it know what it's saying? Leave that question open.

---

# Questions?

---

(qr: <https://anu.au1.qualtrics.com/jfe/form/SV_cA2ioVFWoQRj0KW>)

> **notes:** Feedback QR: give them a moment to scan before you wrap up.

Source: <https://www.llmsunplugged.org/decks/how-ai-writes-stories-60min/>\
Licence: [CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/)\
Cite as: Swift, B. (2026). _LLMs Unplugged: Understand how AI language models work by building one yourself._ https://doi.org/10.5281/zenodo.17403824
