Using a Chatbot
The Big Idea
You will use a chatbot throughout every sprint in Foundations. It is not a shortcut — it is a tool, like a search engine or a dictionary. Developers who use AI tools well move faster and learn more deeply. This lesson gives you a working practice from day one.
Your Roadmap
| Section | Time | Required? |
|---|---|---|
| Understand | 10 min | ⚑ Required |
| Give it a try | 20 min | ⚑ Required |
| Go further | Open | ◎ Optional |
Understand
What is a chatbot?
A chatbot is a tool you talk to in plain English. You describe what you need — it responds. We recommend Gemini or Claude — both are free to use. You set one up in your course prep.
What you will be able to do by the end:
- Write a prompt that gets a useful response
- Use a chatbot to explain a concept or debug an error
- Know when a chatbot response needs to be questioned
The difference between a good prompt and a weak prompt:
| Weak | Strong |
|---|---|
| "what is the command line?" | "I'm learning to code for the first time. Can you explain what the command line is and why developers use it? Use plain language." |
| "explain coding" | "I'm learning about problem-solving in programming. Can you explain what pseudocode is and show me one short example?" |
| "I don't get it" | "I just read about the divide step in problem-solving. I'm not sure how to break a big problem into smaller ones. Can you give me a simple example?" |
The pattern for a strong prompt:
I'm learning [topic].I'm trying to [what you want to do].I got [error or problem].I already tried [what you've done].Can you explain what's going on and suggest one thing to try?
What a chatbot is good for:
- Explaining concepts in plain language
- Breaking down error messages
- Giving examples
- Asking you questions to check your understanding
What it is not good for:
- Always being correct — it makes mistakes, sometimes confidently
- Knowing your setup unless you describe it in detail
- Doing the learning for you
If you run out of free messages: Switch to the other tool — if you've been using Claude, switch to Gemini, and vice versa. See What to do when you run out of chatbot messages for more detail.
The one rule: If you can't explain what the chatbot gave you, slow down. Understanding is the goal, not an answer.
Give it a try
Open your chatbot now. Work through these three exercises.
Exercise 1 — Ask for an explanation:
Type this prompt:
"I'm about to start learning to code for the first time. Can you explain what the command line is in one paragraph using plain language and no jargon?"
Read the response. Does it make sense? If not, type:
"Can you explain that more simply?"
Exercise 2 — Ask it to break something down:
Type this prompt:
"I just learned about a problem-solving process for coding. It has these steps: understand, plan, divide, attempt, get unstuck, refactor, reflect. Can you explain why the 'divide' step is important in plain English?"
Read the response. Notice how you can use the chatbot to go deeper on something you've just read.
Exercise 3 — Use it to check your understanding:
Type this prompt:
"I think I understand what the problem-solving process is — it's a repeatable set of steps to help me work through any coding challenge. Can you ask me three questions to test whether my understanding is correct?"
Answer its questions. This is called retrieval practice — one of the most effective ways to move learning into long-term memory.
How to know you've nailed it
| Level | You can... | ||
|---|---|---|---|
| 🪨 | Intro Climb | Write a prompt that includes what you're learning, what you tried, and what went wrong | ⚑ Required |
| 🧗 | Core Ascent | Get a useful explanation from the chatbot and describe it back in your own words | ⚑ Required |
| 🏔️ | Summit | Use the chatbot to quiz yourself on a concept and identify one gap in your understanding | ◎ Optional |
The Big Idea (revisited)
A chatbot is a learning tool, not an answer machine. The skill is knowing how to describe your problem clearly and how to evaluate what comes back. You will use this skill in every sprint.
Go further
◎ Optional — explore these if you want to go deeper.
- Try asking the chatbot to explain the same concept three different ways (simple, technical, with an analogy) — notice which clicks for you
- Ask it: "What are the limits of what you can reliably help me with when learning to code?"
- Search: "prompt engineering for beginners" to learn more about writing effective prompts