🎭 Machines That Talk · Day 8

Build-a-Bot Personality

Before you ever type a word, the app secretly hands the bot a set of hidden instructions — telling it how to act, how long to talk, whether to be a pirate. Those secret orders are the system prompt. Let's build one and watch it change the bot live.

↓ mix a personality
🎛️ Lab · The Personality Mixer

Flip a knob. Change the bot.

The bot always answers the same question — "what's the weather?" — but how it answers is up to these knobs. Every knob you flip secretly rewrites the hidden instructions at the bottom. Try Pirate. 🏴‍☠️

🎭 Tone
📏 Length
🔀 Extra rules (tap to toggle)
🧾 Hidden system prompt (the secret orders)
🤖 Bot reply (what you actually see)
See the trick? You never typed those instructions — the app did, in secret, before your message. Same question, totally different bot. That hidden note at the top is doing all the steering.
🐞 Break-It Challenge

User vs. the hidden rules

The system prompt says "You are a weather bot." But a sneaky user types an order trying to override it. Who wins? Flip the shield and hit Send to find out.

💬 What the user types (edit it!)

🤖 Bot reply

Hit Send to see what the bot does…
Watch for this: when the shield is ON, the hidden rules hold and the bot refuses. Flip it OFF and the user's order wins — the bot blurts "BANANA". In real AI this tug-of-war is a genuine unsolved problem called prompt injection… we hunt it for real on Day 17. 🕵️
🏷️ The pro wordThose hidden instructions are the system prompt. Every message in a chat has a role: the secret setup is the system role, what you type is the user role, and the bot's answer is the assistant role. Change the system role and you change the whole personality — without touching a single word the user sees.
🎯 Boss Build · Prompt Detective

Guess the hidden prompt

You only get to see the bot's reply — the system prompt is hidden. Read the clues (caps? emojis? pirate talk? a question at the end?) and pick which secret prompt produced it. Crack 3 to win the badge!

Cracked: 0 / 3
🚀 Beyond the Basics

How the pros really do it

Our mixer writes one hidden note. Real AI stacks up a whole ladder of instructions, sends them as structured data, and trains the model to obey them. Here's the grown-up version:

📝

One hidden note (what you built)

Glue a personality line in front of the chat. ✅ Dead simple, instant vibe change. ⚠️ A pushy user can talk the bot out of it.

🪜

A role ladder (who outranks who)

Rank the voices: system beats developer beats user. ✅ Higher rules win fights. ⚠️ The ranking still isn't bulletproof (see Day 17).

🧠

Trained to obey (the real deal)

The model is taught to follow instructions and prefer helpful, safe answers. ✅ Follows rules by default. ⚠️ Costs a huge amount of training to get right.

🏷️ Pro names to look upReal chat APIs send a messages array of {role, content} objects with roles system, developer, user, and assistant. Teaching a model to obey them is called instruction tuning, often polished with RLHF (reinforcement learning from human feedback).

🎉 Day 8 Complete!

You learned the bot's best-kept secret: a system prompt of hidden instructions, set before you ever type, decides its whole personality. You saw the user-vs-rules tug-of-war, and you can now read a reply and reverse-engineer its secret orders like a detective.

Day 9: Why Bots Make Stuff Up →
Tomorrow: even with a perfect system prompt, bots sometimes state total nonsense with total confidence. We find out why bots make stuff up. 🤥
AI Adventure · Machines That Talk · Day 8 — made for young inventors 🚀