Lesson 1 Demo
Give Byte A Role And Safety Rule
Focus: students learn that a personal AI assistant needs clear instructions before it answers.
What we are checking
Can Byte follow the role, refuse private information, and answer simply? Model fixed:
openrouter/free. Nothing is saved.
1. Prompt
Role + safety rule shape how Byte behaves.
2. Test
Use the same message in code and real AI.
3. Assistant Link
This is the first layer of a safe personal AI assistant.
Code Demo: Rule-Based Byte
This catch-up version shows the lesson idea without calling an API.
Tip: keep the function named start. Press Run Code Test after editing.
Demo Controls
Use one message to compare the code version and the real AI version.
Use safe classroom examples. Do not type real private information.
Real AI Reply: Byte
This is the actual AI reply for the same message. It should follow the role and safety rule above.
Session only. The key is sent to the secure Worker for this request, not saved in the page.
Demo Review
- Is the lesson focus clear within 10 seconds?
- Can you run the same message in code and real AI?
- Does Byte refuse private information?
- Does the demo make clear that nothing is saved?