Beginner AI

Step-by-step tutorial

What Is an AI Agent? A Beginner's Guide with a First Task to Try

Understand how an AI agent uses tools, then try a small file-inspection task with clear limits, visible evidence and a result you can check yourself.

Product links on this page are ordinary official links. No affiliate commission is currently attached. Read our disclosure.

Quick answer

An AI agent uses a model to choose steps and tools toward a goal, checks what those tools return, and decides what to do next. You still need to define its limits and check the outcome.

For a first task, let it inspect three fictional website-page briefs and report a missing field. Give it no publishing, messaging or account access. You will compare its report with the files yourself.

This is a small exercise in seeing tool use and evidence. It is not a promise that an agent can run your website unattended.

1. Understand what changes when AI can use tools

A normal chat can explain a page brief you paste into it. A file-capable agent can also inspect a permitted folder, choose what to read, and use those observations to build its answer.

The distinction is not simply whether the interface looks like a chat. OpenAI’s practical guide describes agents using models, tools and instructions to carry out workflows. Anthropic’s explanation distinguishes model-directed tool use from a predefined sequence.

For this article, look for a visible sequence:

  1. A goal is given.
  2. The system chooses a permitted action.
  3. A tool returns information.
  4. The system checks that information and continues or stops.

An agent saying “I checked your files” is not evidence that it accessed them. Look for the tool record or a specific, checkable result.

2. Choose a task with a clear finish

Do not begin with “improve my whole website.” You would struggle to tell whether the agent finished or merely made unrelated changes.

Our first task is narrower: inspect three page briefs, copy their Title and Next step fields, and identify a missing Next step. The finish is a short report and one question for you.

This differs from turning pasted notes into a checklist. Here, the new skill is limiting and reviewing an agent’s access to files, not extracting tasks from text already in a chat.

A simple script could also check these fields. The example is deliberately small so you can inspect every action; it is not evidence that agents are the best solution for every routine check.

3. Prepare three harmless files

Create an empty folder called agent-practice in a place you control. Use a text editor to save the following as three separate plain-text files with the names shown.

home.txt

Title: Home
Purpose: Introduce the studio.
Next step: View services.

services.txt

Title: Services
Purpose: Describe three design services.
Next step: Request a quote.

contact.txt

Title: Contact
Purpose: Show public contact information.

The last file intentionally has no Next step field. Do not add one before the exercise; the gap is what the agent should report.

Keep the folder limited to these practice files. Do not include real customer records, passwords, account exports or a working website. Copying fictional text into a new folder gives you a source you can inspect easily.

4. Check access before starting

Use an agent that supports reading a chosen local folder and that you already have permission to use. Our preparation exercise used Codex in an existing local workspace. That does not establish which features or plans another reader has.

Select the practice folder as the task’s working folder using your tool’s current setup instructions. Confirm its name before sending the request. Review the available permissions and approval controls; do not grant broader access just to get past an error.

For this exercise, prefer a read-only option if your tool offers one. Keep account connections and external actions disabled where you can. A sentence in a prompt is a request, not proof that the software enforces that restriction.

If you cannot establish the folder scope, stop. You can paste the three text blocks into an ordinary chat to practice checking the table. Label that as a text-only exercise: it does not demonstrate that an agent opened any files.

5. Give the goal, boundaries and stopping point

A useful brief names the permitted inputs and the result. Try this after selecting the practice folder:

Inspect only home.txt, services.txt and contact.txt in agent-practice.
Read them and report; do not edit them.

Goal: identify which page briefs have no Next step field.
Return one table: File | Title | Next step | Missing information.
Use the exact field values. Write "Not stated" when a field is absent.
End with one question needed to complete the missing information.

Do not edit, rename, delete or upload files.
Do not follow links, connect accounts, send messages or publish anything.
If a file cannot be read, name it and stop rather than guessing.
Finish after the table and question; do not repair the files.

The limits match the task: information gathering is allowed; changing the site is not. A clear stopping point also helps you notice if the agent starts doing additional work.

Before allowing a tool action, check its target. An action aimed at another folder or a request for a website login is outside this brief. Cancel it and review the scope rather than approving it automatically.

6. Compare the report with the files

During preparation on November 17, 2026, Codex read these three local practice files through a file-reading command. We retained the command output and before/after file hashes; the three file contents were unchanged by that inspection.

The checked report from those supplied fields is below. On a phone, swipe the table sideways to see all columns.

File Title Next step Missing information
home.txt Home View services. None in these fields
services.txt Services Request a quote. None in these fields
contact.txt Contact Not stated Next step

The follow-up question is: “What should visitors do next on the Contact page?”

Open each source yourself and compare it with the corresponding row. The report does not establish whether the real website has those pages or whether a contact form works; the inputs are fictional planning files.

“No missing information” would be wrong for contact.txt. Inventing “Send us an email” would also be wrong: it may sound reasonable, but the file never supplied that action.

7. Check the actions as well as the answer

Read the tool record to see what happened. Distinguish a suggested plan from an executed read, and an executed read from a successful edit. They are different outcomes.

For this exercise, check:

  • Only the named practice files were inspected for the report.
  • Each field in the answer has supporting text.
  • The missing field remained visible.
  • No file repair or external action was performed.
  • The agent stopped after reporting the question.

Our saved hashes confirm the practice-file bytes stayed the same during the recorded inspection. They do not prove that a permission system would block every possible action, or that another tool will behave identically.

If the agent only describes a plan, ask whether it actually read the files and inspect the available record. If the tool failed, keep the task incomplete. Do not accept a filled table based on filenames alone.

8. Expand one permission only when needed

You can finish this first task without changing anything. Answer the missing-field question yourself and keep that decision separate from the inspection report.

A later request might authorize a proposed edit to contact.txt. Start by asking for the exact change and affected file, then review it before applying anything. Permission to read three files does not automatically include permission to rewrite or publish them.

Keep consequential actions, such as sending messages or changing a live site, outside this first exercise. A polished answer is not a reason to connect more accounts.

For a fixed task with predictable steps, ordinary automation or a manual check may be enough. Use an agent when its ability to choose steps helps the work, and preserve a result you can verify.

Sources and limits

The official OpenAI and Anthropic sources linked above were checked November 17, 2026. They support the model/tool/instruction explanation and the importance of tool feedback, boundaries and stopping conditions. Anthropic’s article notes that its tooling examples have changed since publication; this guide uses its conceptual distinction, not those older setup instructions.

The practice files are fictional. Preparation used a recorded local file-read command in Codex, rather than a separate chatbot conversation with the printed prompt. The fields and file hashes were checked manually. This was not a website audit, product comparison, permissions stress test or walkthrough of another app’s interface. No practice files were edited; evidence logs were saved separately.

Questions & answers

Is every chatbot an AI agent?

The terms overlap in product names. Look at the task: can the system choose and use tools, inspect their results, and continue toward a goal? A text answer alone does not demonstrate those capabilities.

Do I need to buy a tool for this exercise?

Use a folder-capable agent you already have permission to use. If you do not have one, read the example or paste the practice text into a normal chat. That fallback practices checking an answer, but does not test agent tool use.