Lesson 2
AI Models, Chatbots, and Agents
Understand the difference between models, chat interfaces, tool-using assistants, and AI agents.
An AI model is the engine, a chatbot is an interface, a tool-using assistant can call external capabilities, and an agent can plan and act across multiple steps. Separating these layers helps you judge what the system can actually do.
Model
The model is the system that turns input into output. For language tasks, it reads your prompt and context, then generates text, code, JSON, SQL, or another requested format.
Models do not automatically know your project. They only work with what is in their training, their connected retrieval sources, their tools, and the context you provide.
Chatbot
A chatbot is a conversational interface around one or more models. It is good for asking questions, drafting content, exploring ideas, and iterating quickly.
The chat interface can make AI feel more capable than it is. Remember that a fluent answer is not the same as a verified answer.
Tool-using assistant
Some AI systems can use tools: search the web, read a file, run code, inspect a page, or call an API. Tool use can make answers more grounded because the system can gather fresh or local evidence.
The tool result still needs interpretation. A tool can reveal facts, but the assistant may still draw the wrong conclusion.
Agent
An agent is an AI system that can break a goal into steps, use tools, observe results, and continue. Coding agents are useful when a task requires reading files, editing code, running checks, and iterating.
Agents need boundaries. Give them a clear goal, relevant context, constraints, and a verification command.
Choosing the right layer
Use the smallest capable layer:
- Use a model or chatbot when you need explanation, drafting, or comparison.
- Use a tool-using assistant when the answer depends on files, docs, current information, or runnable checks.
- Use an agent when the work has multiple steps and you can define success clearly.
Smaller scopes are easier to review. A chatbot answer may be enough for understanding a concept; an agent is a better fit when code changes and verification are part of the same workflow.
Developer workflow example
If you need to update a React component, a chatbot can explain the pattern. A tool-using assistant can inspect files. A coding agent can make edits and run tests. These are different levels of responsibility.
Responsibility checklist
Before asking an agent to act, write down:
- Goal: what should be true when it finishes?
- Boundaries: which files, APIs, or behavior should stay unchanged?
- Evidence: which command, screenshot, test, or review proves the result?
- Stop condition: when should the agent ask for help instead of guessing?
Key takeaways
- Model, chatbot, assistant, and agent are not the same thing.
- Tool use improves grounding but does not remove the need for review.
- Agents are strongest when goals and verification steps are explicit.
- Match the AI system to the risk and scope of the task.
Next lesson
Next, learn the prompting basics that make technical AI work more reliable.