π± π¬ βHabari?β β βNzuri sana!β
π What you need
- the shared phone with a block-coding site open (Scratch or similar)
- a quiet corner so you can hear it
- paper to plan your answers first
β Do this
- On paper first: write five questions people ask you, and the answer for each. This paper IS your program.
- In the block editor, drag an 'ask and wait' block so your character asks 'What is your name?'.
- Add a 'say' block that greets them back using the answer. Run it. Your name appears in the bubble β point at it.
- Now add an 'if' block: if the answer is 'good', say something happy; otherwise say something kind.
- Add three more if-blocks from your paper list. Run the whole thing with a friend typing.
- 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.