Skip to content

Program 03 · Module 01 of 10

Module 01: AI Agent Foundations

Establish a precise definition of an AI agent and the vocabulary used for the rest of the program. You compare chatbots, workflows and agents, take an agent apart into its components, and learn to judge when an agent is the wrong tool.

Suggested study time
5-6 hours
Prerequisites
Python 3.10 or later and comfort reading small scripts.; Basic familiarity with JSON and HTTP APIs.

Sign in to track your progress. Every lesson stays free to read without an account.

Learning outcomes

By the end of this module you will be able to:

  • Define an AI agent in terms of a goal, tools, a control loop and stop conditions.
  • Classify a system as a chatbot, an LLM workflow or a tool-using agent.
  • Describe the model, instructions, tools, state and runtime and the job of each.
  • Decide when a deterministic workflow is safer than an agent.
  • Map a business task into an agent workflow with approvals and stop conditions.

Lessons

  1. 1.1

    What Is an AI Agent? Concepts, terminology and examples

    Learn what makes software an AI agent: a goal, a model that chooses actions, tools it can request, a loop your code controls and a clear point at which it stops.

    35 min
  2. 1.2

    Chatbots vs. LLM Workflows vs. Tool-Using Agents

    Tell chatbots, LLM workflows and tool-using agents apart by asking who decides the next step, and see what each design costs in predictability, testing effort and risk.

    35 min
  3. 1.3

    Agent Components: Model, Instructions, Tools, State and Runtime

    Split an agent into five parts you can design, test and secure separately: the model, the instructions, the tools, the state and the runtime that controls them.

    40 min
  4. 1.4

    Choosing the Right Use Case: Agent or Conventional Automation?

    Decide whether a task needs an agent, an LLM workflow or plain automation, and learn when a deterministic workflow is the safer and cheaper choice.

    40 min
  5. 1.5

    Exercise: Map a business task into an agent workflow

    Turn a business task into a written agent map covering goal, tools, state, stop conditions and approvals, and check it with a small validator before any agent is built.

    1 h

About 3 h 30 min of lessons in total.

Practical assignment

Map a business task into an agent workflow

Choose a task from your own work or from the fictional examples, triage it with the use-case questions and write an agent map covering goal, success criteria, tools, state, stop conditions, handoffs and scope.

Deliverables

  • A JSON agent map that passes the lesson's validator.
  • A one-paragraph autonomy justification citing at least two use-case questions.
  • A short list of what the agent must not do.

Validation checklist

Use this to check your assignment before you move on.

Knowledge check

  1. 1.Which part of an agent should enforce a hard limit on the number of steps?
    Show the answer and explanation

    Answer: C. The runtime owns the loop, so a counter there cannot be talked out of stopping. Instructions are guidance and tempt teams because they are easy to write, but a model can miscount or be steered past them.

  2. 2.A fixed sequence of steps contains one step that classifies free-text feedback. What is the best-fitting design?
    Show the answer and explanation

    Answer: B. The path is known and only the classification needs a model, which is an LLM workflow. An agent would make a path you already know variable for no benefit.

  3. 3.Why should a refund decision usually stay in deterministic code?
    Show the answer and explanation

    Answer: B. Repeatability and an auditable reason matter when money moves. Models can read policies, which is why the first option is tempting, but reading is not the same as being the accountable decision-maker.

PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.