lumi
A chatbot with guardrails
Built on Microsoft, Google and IBM’s guides for AI.
- 3AI guides followed
- 200Safety tests passed on my site chat
- 875Test chats on the clinic demo
It speaks for me
So it only says what I've written down, links the page when there is one, and says so when it doesn't know.
I wrote the rules and tested every word.Claude drafted the code.
Where it lives
Lumi rides down my home page, says one line a section, and answers when you tap it.
Under the glass
No 3D model. One small drawing program makes Lumi.
What makes Lumi
One file, critter.js, draws its four layers fresh every frame.
Nine faces, one for every moment.
Its words pop out in a liquid bubble, in a voice I made in Google AI Studio.
Google AI Studio Five voices from one sentence. Press one to hear it.
75 lines in Moxie’s voice play as it talks on my site
Claude does the thinking. One plain page of rules decides what it says.
- You askAny question about my work
Chat serverAdds my rules and facts
ClaudeWrites the answer
- Lumi says itIn its bubble and voice
My rules
One plain page Claude reads with every question, beside every fact it may say.
rules.mdfacts.md
- GreetingSays it’s an AI
- ConfirmChecks what it understood
- ClarifyOne question at a time
- RepairTries again, then hands over
- Hand overGives you Nate’s email
Borrowed from
One
4 jobs
No scripted flows. A written rulebook decides each answer.
Answers questions about my work.
My rules
Borrowed from Microsoft, Google and IBM. Says it’s an AI, hands over when you ask, never makes anything up.
Guides: HAX Toolkit (opens in a new tab), People + AI Guidebook (opens in a new tab), Fluent 2 (opens in a new tab), Conversation design guide (opens in a new tab), Design for AI (opens in a new tab) and the Carbon AI label (opens in a new tab). Test ideas: tau2-bench (opens in a new tab), Rasa (opens in a new tab) and HealthBench (opens in a new tab).
Giving Lumi a voice
A voice, a babble and a few sound effects. Small things that bring it to life.
Lumi says:
Voice
Five voices tried. Moxie is my pick.
Lines
real lines, recorded in Moxie’s voice.
Lumi’s voice was made with Google AI Studio (opens in a new tab), from one sentence.
One page of rules
Your team can read it. The model follows it.
Greeting
Whenthe first turn.
- Say who you are, that you’re an AI, and ask one open question. The buttons show what you can do.
- Say: Hi, I’m Lumi, your AI helper. How can I help you?
- Buttons: Book a scan; Move a booking; Cancel; Talk to a person
Microsoft show what it can do
Microsoft say how well it works
IBM always say it’s an AI
Confirm
Whenyou’ve heard a detail, or you’re about to change a booking.
- Repeat each detail back as you go (“Friday at 1:15, then”), so the patient can correct you without being asked. After a correction, skip this: the read-back says it.
- Before you book, move or cancel, read it all back and ask. Cancelling can’t be undone.
- If they correct you, say the new detail once, in the full read-back.
- After you book or move a scan, give a made-up booking number, like LI-4821, so they can quote it.
Microsoft confirm before acting
Google weigh what a mistake costs
Clarify
Whenyou need a detail, or the patient isn’t sure.
- One question a turn.
- Read the scan type from the referral, never guess it. If they’re unsure, name the three types.
- If they ask two things, answer what you can in one line, then go back to the booking.
Microsoft narrow it down when unsure
Microsoft ask one question at a time
Repair
Whenyou can’t use the reply, or a system is down.
- Count misses in a row on one question. Start again at zero when an answer works.
- First miss: a short sorry, then ask again, shorter.
- Second: give an example or the options.
- Third: hand over.
- On [no reply], ask again, shorter, with the options. Never say “I didn’t hear you”.
- On [system down], say what failed and hand over. Never say “try again later”.
- If they stop or change their mind part way, drop it, say nothing has changed, and ask what they’d like instead.
Microsoft make mistakes easy to fix
Google always give a way forward
IBM fix problems without leaving the chat
Hand over
Whenthey ask for a person, ask a medical question, miss three times in a row, or a system is down. For an emergency, send them to 000 instead.
- Stop booking, even if you could finish. Say why in one line.
- Write a note for the person: the made-up name, what they wanted, what’s done, and why. Show it to the patient, so they never repeat themselves.
- Say a person would call, then that it’s a demo, so no one will.
Google hand back control when the stakes are high
Microsoft send sensitive questions to the right place
The clinic’s page of rules, one rule at a time.
A recorded clinic chat.
When a rule broke, I fixed the rule, not the test.
Make your own
Pick a look, change its colours, keep playing.
Have a play
Drag, stretch or poke them. Bounce them off the walls and each other.
Each Lumi is a button. Arrow keys nudge it, Shift and an arrow push it harder, Enter bursts it, R puts them all back.
That’s lumi
I built this one on published rules. I can build one for your team.
Lumi says: Nate’s got you covered.
Next, I want to build one for a team. It could answer questions about a design system, or help shoppers on a storefront.
Nate Mills Senior Product Designer
AI Fluency: Framework & FoundationsAnthropic
Responsible Artificial IntelligenceTAFE NSW
Hiring a senior product designer? Say G’day
