Turn One Line of Text Into a Talking Tutor

A cartoon firefighter tutor shown in nine frames: idle, listening, thinking, talking, smile, brow raise, shake, point and celebrate
Joseph Cathey
My RoleProduct Designer & Developer
Core Disciplines
AIProduct Leadership

Give every lesson a host, without drawing one.

Microlearn is a microlearning platform: bite-sized lessons that learners take on their phones. A character who explains and answers back is easier to follow than a block of text, but drawing, rigging and voicing one by hand for every subject doesn’t scale. So I built a pipeline that turns a single line, like “police officer,” into a consistent cartoon tutor with moods, lip sync and a voice.

01 The pipeline

In“police officer”

OutA tutor you can call

  1. Understand the request

    Chat model · master style guide

    1. 01

      Brief

      Say what to create. The AI interprets it, casts six people that fit, and applies the master style guide so every image shares one art style

  2. Draw the character

    OpenAI image models · each step references the picks before it

    1. 02

      Concept

      Pick one of six draft portraits

      6 images
    2. 03

      Full body

      Pick one of six outfits

      6 images
    3. 04

      Moods & reactions

      Idle, listening, thinking, talking, a blink and six reactions

      11 images
    4. 05

      Mouths

      One sheet of nine mouth shapes for lip sync

      1 image
  3. Bring it to life

    In the browser · no AI calls

    1. 06

      Checks

      Every frame present, nothing out of date

    2. 07

      Animation preview

      Moods, blinks, reactions and spoken lines on the live character

  4. Give it a mind and a voice

    Chat model · ElevenLabs voice agent

    1. 08

      Instructions

      A drafted persona, knowledge and topics to avoid

    2. 09

      Voice

      An ElevenLabs agent with the chosen voice

    3. 10

      Chat & publish

      Text, voice and video calls, then publish

24 images per tutor. Drafts (steps 1–2) run at low quality so six options come back fast; the frames learners see run higher.

Every step saves. Change an earlier pick and the later steps are marked out of date.

The Tutors pipeline, from one line of text to a published tutorTen steps in the Microlearn admin

The Brief

Microlearn gives organisations an admin for building courses and gives learners a phone app with streaks, XP, a video feed and AI chat. I wanted its lessons to have hosts: a sea captain or a firefighter who explains, reacts and answers back.

The bar was a tutor that feels like one person: the same face and outfit in every frame, and a mouth that matches what it’s saying. Every tutor also needed the same art style, so a sea captain and a pilot look like they belong in the same app.

I designed and built it as a wizard in the Microlearn admin between Oct 30 and Nov 2, 2026, working with Claude Code. Images come from OpenAI’s image models, the casting and persona from a chat model, and the voice and calls from ElevenLabs.

  • Dalton, a pilot in a navy flight jacketDalton
  • Amy, an older artist with grey hair in a paint-splashed apronAmy
  • Gary, a red-bearded sea captain in a white capGary
  • Riley, a police officer in a navy capRiley
Four tutors from the wizard, one art styleEach drawn from a single line of text

Ten Steps, One Character

An admin types one line, and the wizard walks them through ten steps in four stages: understand the request, draw the character, bring it to life, then give it a mind and a voice. At the drawing steps they pick from six options instead of writing prompts, because choosing a face is easier than describing one. Any frame can be regenerated.

Draft steps run at low quality so six options come back fast; the frames learners see run higher. Every step saves as it goes, and changing an earlier pick marks the later steps out of date, so nothing downstream drifts from the character it was drawn from.

Finished tutors sit in a shared library that organisations import from, and each one opens back into the wizard it was made in.

Wizard step 3 for Gary: five mood frames and six reaction frames, each with a regenerate button
Step 3: moods and reactions, each frame regenerableGary the sea captain
Wizard step 4 for Gary: the generated mouth sheet beside its nine cut-out mouth shapes, labelled X to H
Step 4: the mouth sheet, cut into nine shapesRhubarb X, A–H
Wizard step 9 for Gary: the character with Voice call and Video call buttons beside a chat panel
Step 9: chat, voice and video calls, then publishElevenLabs agent

Keeping One Face

A full tutor is 24 generated images, and every one has to show the same person. Three things make that hold.

Casting before drawing. Before the first portraits, a chat model reads the request and writes who the six options are. It keeps what the words imply: “Gary the sea captain” gets six men, “grandmother” six older women, and a detailed description gets the same person six ways. A bare role like “police officer” gets six clearly different people, so the admin chooses who the tutor is.

References at every step. Each later step sends the earlier picks as reference images, along with one fixed house style: flat 2D vector shapes, no outlines, no gradients, a white background.

Idle first. The first portrait shows whatever the character wore before the outfit was chosen. So the idle frame is drawn first, from the portrait and the full body together, and the other ten frames are drawn from it. Every mood wears the chosen outfit.

A Face That Talks and Reacts

Step four asks for one 3×3 sheet of nine mouth shapes, from rest through M/B/P, AH, OO and L/TH. They match the standard set used by Rhubarb, the open-source lip-sync tool.

A three-by-three grid of nine cartoon mouth close-ups labelled rest, A M/B/P, B S/T/K, C EH, D AH, E O, F OO/W, G F/V and H L/TH
The generated mouth sheet, cut into its nine cellsRest plus mouth shapes A to H

Getting those mouths onto the face took more work than drawing them. The model rarely draws on exact thirds, so the browser finds the cells by the white gaps between them. It compares the cells to find the part that changes, which is the mouth, then searches the idle frame for where that mouth sits and how big it is. Matches below 0.45 are rejected; real sheets matched between 0.62 and 0.95. Each mouth is cut to a soft-edged oval and drawn over the face.

On a call, the mouth follows ElevenLabs’ timing for each spoken character as the audio plays. That timing is far more precise than the voice’s volume, which the SDK smooths, so the mouth lands on each word.

Around the mouth, the tutor acts. It shows listening while you talk and thinking right after, blinks every few seconds, and plays a reaction (a nod, a smile, a celebration) when the voice agent calls its react tool. A call opens on a ringing screen until the tutor first speaks, with mute and hang-up on the picture.

  • Gary the sea captain, idle frameidlemood
  • Gary the sea captain, listening framelisteningmood
  • Gary the sea captain, thinking framethinkingmood
  • Gary the sea captain, talking frametalkingmood
  • Gary the sea captain, nod framenodreaction
  • Gary the sea captain, smile framesmilereaction
  • Gary the sea captain, brow raise framebrow raisereaction
  • Gary the sea captain, lean in framelean inreaction
  • Gary the sea captain, shake frameshakereaction
  • Gary the sea captain, celebrate framecelebratereaction
Gary’s four moods and six reactions, all drawn from his idle frameStep 04 · Moods & reactions

Built With Claude Code

I built the pipeline with Claude Code, Anthropic’s coding agent, over about four days. Claude Code wrote the code; I directed and tested it. Across 12 sessions it made 33 of the 47 Tutors commits, and each piece of work came in as a pull request I reviewed and merged.

The repo’s CLAUDE.md gave every session the platform’s ground rules up front: how tenancy works, how routes are scoped and checked, where shared types live. From there it was a test-and-tell loop. I ran each step on real tutors and said exactly what came out wrong; Claude Code found the cause, fixed it and wrote the reason into the commit. Casting, idle-first drawing, the cut-out mouths and the switch to character timings all came out of that loop.

I also had it keep docs/TUTOR_PIPELINE.md: every request, prompt and parameter the wizard sends, word for word, in step with the code. When a frame comes out wrong, what the model was actually asked is one file away. Seventeen tests cover the Tutors API.

Where It Stands

Microlearn can now give any lesson a host. Gary the sea captain is one of the first tutors published to the shared library, made from one line of text and the same person in every frame. The models draw the pictures; the project was the scaffolding around them: casting, references, drawing order, and cutting and placing the mouths.

Tutors run in the admin today, and putting them in front of learners in the app is next. After that comes a layered SVG rig, so tutors move smoothly instead of swapping frames, and a check that measures “same character in every frame” automatically.

Key takeaways

  • Consistency is the hard part of generated characters, so anchor every step on a pick a person already approved.
  • Let people choose instead of prompt: six faces to pick from beat asking an admin to describe one in words.
  • With a coding agent, the job becomes judging the output: test on real cases, say exactly what’s wrong, review the fix.