rAs Kids All courses
How Machines Think Β· Module 5 of 8
πŸ“± Shared phone

The Bot That Talks Back

A talking machine is just a big pile of 'if they say this, answer that'.

🐱 πŸ’¬ β€œHabari?” β†’ β€œNzuri sana!”
A cartoon character on a phone screen with a speech bubble answering a greeting.

πŸŽ’ What you need

βœ‹ Do this

  1. On paper first: write five questions people ask you, and the answer for each. This paper IS your program.
  2. In the block editor, drag an 'ask and wait' block so your character asks 'What is your name?'.
  3. Add a 'say' block that greets them back using the answer. Run it. Your name appears in the bubble β€” point at it.
  4. Now add an 'if' block: if the answer is 'good', say something happy; otherwise say something kind.
  5. Add three more if-blocks from your paper list. Run the whole thing with a friend typing.
  6. Ask it something you never wrote a block for. Watch it say nothing, or say the wrong thing.

πŸ’‘ Why it works

Your bot feels alive for about four questions, then falls apart β€” because it has no idea what words mean. It only matches text. Big chat machines feel alive far longer because they have seen an enormous amount of writing, but they are still matching patterns, not understanding you. Knowing that is the difference between being impressed and being fooled.

πŸ”₯ Challenge

Make a bot that helps someone at your local market β€” it asks what they want to buy and tells them the price. Get one real person to use it without you touching the phone.

πŸ“– New words

ifa block that only runs when something is true
inputwhatever the person types or says to the machine
πŸ’¬
Bot Builder

Tap when you have finished this module.