Posts Tagged ‘artificial intelligence’

Explaining role prompting in Scratch

Sunday, January 11th, 2026

In this post, I want to share a recent worksheet I wrote for Machine Learning for Kids. It is a hands-on project to give students an insight into an aspect of prompt engineering with language models.

Students create a Scratch project that lets them have a conversation with a small language model. They try to have the same conversation multiple times, and they set up the Scratch project so that adds a short role instruction to the context at the start (e.g. “Answer like a pirate”).

The instruction changes how the model answers, and students have to try and work out from the responses they get from the model which persona has been selected.


screen recording of the Scratch project on YouTube

By repeating the activity several times, they should notice something important: the same language model gives very different answers to the same questions, just because of a small change in the instructions. This observation is the key lesson here.

(more…)

Introducing Generative AI into Code Clubs

Friday, November 14th, 2025

I recently spoke at Clubs Conference about how Generative AI can be introduced into Code Clubs.

The recording is a little fuzzy, but still watchable, I think.


youtu.be/yzdSJ6p0BP8

(The video includes all of the sessions from the first day of the Conference – my bit starts at 5:10:50).

My slides are here:

(I didn’t have a lot in my slides, as most of the talk was based around live demos.)

What children can learn about artificial intelligence

Sunday, May 21st, 2023

One of the conference presentations I gave last year was a talk at Heapcon, sharing some stories of AI/ML lessons I’ve run in schools. The focus of the talk was how I’ve seen children understand and react to machine learning technologies.

I’ve since expanded the ideas in this talk into a mini-book at MachineLearningForKids.co.uk/stories but here is a recording of where some of these stories started.

Noughts and Crosses AI demo for Science Fair events

Monday, May 28th, 2018

A hands-on demo for use at a small STEM event – letting kids train a simple AI system by playing a few games of noughts and crosses.

I prepared an activity for a STEM event in London this week. The idea was to make something for a Science Fair sort of event – where children will be walking past a stand, and might stop for a minute or two to try out an activity.

The objective was to come up with a hands-on demo that would enable a volunteer to talk to the children about machine learning.

As I’ve written it, I thought I’d share it here in case anyone else might find it useful for another event.

Noughts and Crosses

It’s based on the noughts-and-crosses activity that I’ve used before. Kids play noughts-and-crosses against a simple artificial intelligence system. The computer uses a machine learning model to decide where to make it’s moves. And that machine learning model will be trained throughout the event using the moves from every game so far.

Download the instructions here

(more…)