Learn AI by playing

Agents and automation

What sets an AI agent apart from a simple chat, how it acts, and why supervision still matters.

~10 min 8 steps Intermediate

What you'll be able to do

Program — 8 steps
  1. 1An AI agent doesn't just answer: it decides, acts, and loops back.
  2. 2Observe the situation or the previous result.
  3. 3True or false?
  4. 4Sort each task: needs an agent, or a single question is enough?
  5. 5What's a reasonable guardrail before letting an agent act on its own?
  6. 6Tap the passage that describes a bad practice for an autonomous agent
  7. 7Go watch a real AI agent in action and spot its observe → reason → act loop.
  8. 8Agent or simple question?

Recommended prerequisite : Creating with generative AI

Your progress stays on this device — no account, no email.

On this page

1. Agents and automation

  1. A small blue robot next to a gear

    An AI agent doesn't just answer: it decides, acts, and loops back.

  2. A path splitting into two branches

    Observe the situation or the previous result.

    Reason about the next action to take.

    Act: use a tool, write text, run code.

  3. An AI agent is always limited to answering a single question, like a classic chatbot.

    The more autonomous an agent becomes, the less human supervision is needed.

    When an agent uses an external tool, it's the language model itself that decides which tool to use.

    An agent with full access to a bank account that can spend money with no human confirmation at all poses no particular risk.

    An agent's observe → reason → act cycle was formalized in 2022 under the name ReAct.

    True or false?

  4. Sort each task: needs an agent, or a single question is enough?

    Find a cheap flight, compare 3 airlines, and book it

    What is the capital of Spain?

    Search for a bug in the code, fix it, and propose a commit

    Translate this sentence into French

    Browse several sites, compare prices, and buy the best product

    What's 12 times 7?

  5. What's a reasonable guardrail before letting an agent act on its own?

  6. Tap the passage that describes a bad practice for an autonomous agent

    A coding agent that proposes a fix and submits it to a human before applying it follows good practice. An agent with full access to a bank account that can spend money with no human confirmation at all poses no particular risk. An assistant that compares flight prices and proposes a booking for the user to confirm is a reasonable use.

  7. Go watch a real AI agent in action and spot its observe → reason → act loop.

  8. A path splitting into two branches

    Agent or simple question?

    Browse several sites, compare prices, and buy the best product

    What's 12 times 7?

    Plan a multi-step trip and book each part of it

    Summarize this sentence in 5 words

Train a mini-classifier

Train the classifier by sorting examples, then test it on new cases.