Chatbots, agents and the agent loop
10 questions on chatbots versus agents, the perceive-decide-act-evaluate loop, and when an agent should stop. With explanations.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
Which is the simplest definition of an agent?
- A chatbot with a large memory
- A model that never stops
- A model using tools in a loop
How it works
- One question per screen. An answer is final once sent.
- You see right away whether you were right, with a short explanation.
- The stopwatch runs: on equal scores, the faster player ranks first.
- Only your best attempt counts, so replaying is never risky.
About this quiz
A chatbot answers and stops. You ask a question, it replies, and the next move is yours. An agent keeps going. It reads files, runs commands, looks at what happened and decides on the next step, over and over, until the job is done or it gets stuck. The shortest way to describe it is models using tools in a loop, and that idea sits behind most modern coding assistants and many automation products. Understanding the loop is the key to using these tools well and to spotting when one has gone wrong.
The tools are what let an agent act. A model on its own can only produce text. With tools it can read a file, search a project, run a test, call a service or send a message. The model does not run these actions itself. It asks for an action, and the surrounding software, often called the host, decides whether that action is allowed, runs it and hands the result back. That separation matters, because the host is where permissions and limits are enforced.
The loop gives the agent its persistence. Each turn has the same shape: observe the current state, choose the next tool, run it and read the result, check whether the goal has been met, and repeat if it has not. That simple cycle is what turns a one-shot answer into a piece of real work. It also changes the risks. A command that finishes without an error does not prove that the feature works, because tool success is not the same as task success. Each check supports one specific claim, and an agent should only stop when the acceptance criteria have evidence behind them.
Loops can also go wrong in recognisable ways. An agent that repeats the same failing action adds no new information, and a retry only helps when something has changed, such as the input, the context, the tool or the hypothesis. Actions differ in how safe they are to repeat. Reading a file twice is harmless, but sending an email or charging a card twice is not, so actions that change the world need safeguards such as confirmation or unique keys, a property known as idempotency.
It helps to picture the difference in a daily task. Ask a chatbot how to fix a failing test and it explains. Ask an agent and it opens the project, reads the error, edits a file, runs the test again and tells you what happened. That is far more convenient, and it is also why you need to know what the agent is allowed to touch, how it decides it has finished, and what it does when something unexpected comes back.
Good agents also know when to stop. Boundaries keep a loop from running forever, spending without limit or touching things it should not, and a useful stop message says plainly what is done and what is still missing, instead of claiming success without evidence. This quiz has 10 questions on chatbots versus agents, who runs a tool call, the steps of the loop, useful retries, idempotency, boundaries and honest stop messages. Every answer is explained. It suits developers, analysts and managers who use or plan to adopt AI agents and want a clear mental model of how they behave.
Questions and answers
›How long does the quiz take?
About 3 to 4 minutes for 10 questions at roughly 20 seconds each. After each answer you will see a short explanation.
›Do I need to know how to code?
Not really. Some examples use software tasks because that is where agents are common, but the ideas apply to any agent. The questions are about reasoning, not programming.
›What is the difference between a chatbot and an agent?
A chatbot answers once and waits for you. An agent chooses and runs a sequence of actions without you naming each step, using tools and checking results as it goes. The difference is that the agent works towards a goal over several steps rather than producing a single reply.
›What is the agent loop?
It is the repeating cycle in which an agent observes the current state, picks the next tool, runs it and reads the result, checks whether the goal is met and repeats if not. The loop lets the agent keep working through a task and adjust to what it finds along the way.
›Who actually runs the tools?
The model only asks for an action. The software around it, the host, decides whether the request is allowed, runs it and returns the result to the model. This is why permissions, approvals and limits are placed in the host and not left to the model's judgement.
›Why does a successful command not prove the task is done?
A tool succeeding only shows that the command ran. It does not show that the goal was reached. A build can pass while the page is still wrong. Each check supports a specific claim, so the agent should match every claim in its report to evidence that covers it.
›What does idempotency mean for an agent?
An action is idempotent when running it twice has the same effect as running it once. Reading a file is. Sending an email or charging a card is not. For actions that are not idempotent, agents need safeguards such as confirmation steps or unique keys so that a retry does not cause real harm.
›Why should an agent loop have boundaries?
Without limits, a loop can run forever, spend too much or touch things it should not. Boundaries such as a maximum number of steps, a budget, a set of allowed tools and clear places to stop keep the agent safe and predictable, and they give a human a chance to step in.