Query. what is an ai agent

Guides16 min read

What is an AI agent?

Updated

Three panels joined in a loop by arrows, holding a checklist with a magnifier, a plan, and tools.

An AI agent is software that works toward a goal on your behalf. It chooses each next step and uses tools such as search or a browser to act. It checks what happened and keeps going until the task is done or it needs a person.

Ask a chatbot to find a cabin air filter that fits your car, and it will explain how to find one. An agent given the same request can search, compare the options, check stock, and hand you a recommendation.

An assistant and an agent on one task

AI assistant

Which cabin air filter fits a 2019 Model X?

  1. Question
  2. Generate answer
  3. User takes over

The system gave you information.

AI agent

Find a compatible filter, check stock, compare options, and show me the best one.

  1. Goal
  2. Search
  3. Open
  4. Verify
  5. Compare
  6. Report

The system worked through the task.

Agents matter to anyone who runs a website because an agent may need to use the pages as well as read them. Search engine optimization (SEO) is the work of getting a site found in search. Answer Engine Optimization (AEO) is the work of getting content retrieved and cited in AI-generated answers.

A parts store that shows fitment only in an image can be easy to find and leave an agent unable to finish the task. A clinic whose booking button is an unlabeled icon can block an agent too.

An AI agent is software that works toward a goal on your behalf

An AI agent takes the outcome you want and works out the steps to reach it. Traditional automation needs every step written out in advance.

  1. Open this page.
  2. Click this button.
  3. Enter this value.
  4. Submit the form.

An agent can work from the outcome alone.

Find a cabin air filter that fits my 2019 Model X and confirm it is in stock. Compare the best options and show me which one to buy.

The person who sets up the agent gives it instructions, permissions, and limits, and the agent works within them.

What makes software an AI agent?

Software is an AI agent when it works toward a goal, chooses its own next step, and can take action. It needs all three, and a lot of software that uses AI has fewer. Spam filtering and autocomplete both use AI, and an AI model can generate text without taking any action outside the conversation.

  1. It works toward a goal. The outcome takes several steps to reach.
  2. It chooses its next step. What it does next depends on what it finds.
  3. It uses tools or takes actions. It may search, open a webpage, call an , run code, read a file, enter information, or work with another system.

Products show each of these to different degrees. The practical test is whether a system can move from reasoning about a task to doing something that advances it.

Is it acting like an agent?

Three systems are checked against the three behaviors of an agent.

  1. A model rewrites a product description.

    AI outputThe model generated one output. It did not need to pursue a goal across multiple actions.

    • Working toward a goalPartial
    • Chooses a next stepNo
    • Takes actionNo
  2. A scheduled script exports the same report every Monday.

    AutomationThe path was already defined, and the system makes no choice about how to reach the outcome.

    • Working toward a goalPredefined
    • Chooses a next stepNo
    • Takes actionYes
  3. A system is asked to find a part that fits a car and checks a few retailers. It notices the first one is out of stock and keeps looking.

    Agent-like workflowIt is pursuing a goal and choosing each next action based on what the last one found.

    • Working toward a goalYes
    • Chooses a next stepYes
    • Takes actionYes

What does an AI agent do?

An AI agent turns a goal into a series of actions. With the air filter request, it works out what the goal needs, searches, and opens a promising page. It checks fitment and stock and decides whether that satisfies the goal.

If the part is out of stock or does not fit, the agent changes course and checks another result. Then it compares what it found, reports a recommendation, and stops before anything that needs a person to confirm.

An AI agent differs from a chatbot because it can act

An AI agent differs from a chatbot because it chooses its own next step and can act on it. A chatbot is built to help through conversation, and the person using it mostly decides what happens next. Four neighboring terms get mixed up with both.

Term Simple definition What decides the next step? Can it take action?
Large language model (LLM) A model that interprets and generates language The prompt, meaning the text sent to the model, plus the model itself Not by itself
Chatbot or AI assistant An interface designed to help through conversation Mostly the user, unless tools are enabled Sometimes
Crawler Software that retrieves pages for a predefined purpose Crawler rules Retrieval only
Workflow automation Software that follows a process designed in advance The workflow designer Yes
AI agent A system that works toward a goal and can choose actions within its limits The agent, within instructions and permissions Yes, when tools are available
Agentic AI The broader approach of building AI systems around goal-directed decision-making and action Depends on the system Often

The lines between these blur because one product often combines several of them. A language model can be the reasoning part of an agent, and What is AI? explains how one works. A chatbot can offer an agent mode, and a workflow can contain an agentic step.

One assistant window can carry all of these behaviors. It may answer one request in conversation, fetch a page for the next, and run a multi-step task for a third. The window looks the same each time.

Four requests in one assistant window

Each request runs something different underneath the window.

Chatbot

You

Explain what a canonical tag is.

What happens underneath

  1. Prompt
  2. Answer

This is one exchange. Nothing is retrieved, and nothing outside the conversation changes.

Automation

You

Export the same report every Monday.

What happens underneath

  1. Trigger
  2. Predefined steps
  3. Output

The path was written in advance. The system is not deciding how to reach the outcome.

Retrieval

You

Fetch and summarize this URL.

What happens underneath

  1. Request
  2. Retrieve page
  3. Answer

A page is fetched, and the task is to produce one response.

Agent

You

Investigate why organic clicks declined last month and assemble the evidence.

What happens underneath

  1. Goal
  2. Collect data
  3. Choose pages
  4. Inspect
  5. Compare
  6. Produce review queue

The system has a goal and several tools, and each next step depends on what the last one found.

AI agents work in a four-step loop

AI agents work in a loop where they observe what is available, decide on an action, act, and check the result. If the check fails, the agent goes round again with what it learned. If the check passes, or the next step needs a person, the agent stops.

The agent loop

The air filter task goes round the loop twice before the agent stops.

  1. GoalFind a cabin air filter that fits a 2019 Model X.
  2. ObserveRead fitment specs, prices, stock, and ratings.
  3. DecideMatch the part to the vehicle, then compare price and stock.
  4. ActOpen a matching product and check the details.
  5. Check the resultDoes it fit, and is it in stock?
  6. RepeatIf a check fails, the agent loops back with what it has learned and tries again.

Where “Check” leads

  • SuccessFinish and return the result.
  • More workLoop back to Observe with what it has learned.
  • Blocked or consequentialStop, or hand back to a person.

On the first pass the part is out of stock, and the agent goes round again. On the second pass the part fits and is in stock. The agent recommends it and stops, because buying it needs a confirmation.

What are the main parts of an AI agent?

Most AI agents have some version of five parts, and the details vary between systems.

Part What it does The question it answers
Goal and instructions Defines the outcome, rules, and limits What am I trying to do?
Model or reasoning system Interprets the situation and chooses a next step What should I do next?
Tools Provides capabilities such as search, browsing, APIs, databases, or code What am I able to use?
Memory or state Tracks what has happened during the task What have I already learned or done?
Feedback Shows what happened after an action Did that work?

A strong model with poor tools, missing context, or unreliable feedback can produce a weak agent. Without a tool the agent cannot act. Without state it forgets what it learned two steps ago, and with weak feedback it cannot tell whether the last action worked.

Inside an AI agent

The air filter task passes through all five parts. It took three steps and used two of the five tools.

Goal

Find a cabin air filter that fits a 2019 Model X and is in stock.

Model / reasoning

Chooses the next action.

Tools
  • Search (used in this task)
  • Browser (used in this task)
  • API
  • Code
  • Files
Feedback
  1. 1Search, page loaded
  2. 2Browser, out of stock
  3. 3Browser, fit confirmed
State
  • Vehicle: 2019 Model X
  • Result 1: incompatible
  • Result 2: out of stock
  • Result 3: candidate

The third result is a candidate, and the loop can stop here.

How much freedom does an AI agent have?

An AI agent has as much freedom as its designer gives it. Some systems can choose several steps on their own and must stop before anything consequential. Others are allowed to complete a narrow workflow without interruption.

An agent with approval gates fits most business uses. The system works out how to complete the task. A person stays in control of actions that spend money, publish content, change important data, or create meaningful risk.

Levels of agent autonomy

Each level shows what the system decides and where your approval comes in.

  1. Predefined automation

    A scheduled report that runs the same steps every Monday.

    Decides
    Nothing outside the written workflow.
    Your approval
    You approve the workflow once, when you set it up.
  2. Agent with approval gatesCommon practical pattern

    A shopping agent that researches a product and prepares the cart, then stops.

    Decides
    How to search, compare, and reach the goal.
    Your approval
    Required before anything consequential.
  3. More autonomous agent

    A research agent left to explore sources and produce a report.

    Decides
    Repeated next steps within its permissions.
    Your approval
    Review the result, or intervene when needed.

AI agent examples are already in everyday tools

AI agents already show up in research tools, browsers, coding tools, online shopping, and business software. As of October 2026, ChatGPT’s agent mode navigates and clicks through websites, and Claude Code reads a codebase, writes code, and runs it. In November 2026, OpenAI added Business Agents, chats inside ChatGPT that a store builds to answer questions about its products, covered in Businesses in ChatGPT and how to add your business.

Five kinds of agents

Each card names the job, an example, and what tends to go wrong.

  • Research & retrieval

    Gathers and compares information across sources

    e.g. Compare five business insurance providers and explain the differences.

    How it works

    1. Search
    2. Read
    3. Compare
    4. Summarize

    What can go wrongIt trusts a weak source and builds the comparison on it.

  • Browser & task

    Operates a website or browser interface

    e.g. Find an available appointment and select the right time.

    How it works

    1. Open
    2. Filter
    3. Inspect
    4. Act

    What can go wrongIt meets an ambiguous control, and when it cannot tell what a button does, it guesses.

  • Shopping & commerce

    Researches products and moves toward a transaction

    e.g. Find a compatible part, compare retailers, and prepare the best option.

    How it works

    1. Search
    2. Verify
    3. Compare
    4. Prepare purchase

    What can go wrongIt reads stale inventory. The page says in stock when the warehouse has none.

  • Coding

    Reads documentation, writes code, and responds to errors

    e.g. Find the correct API documentation and implement an integration.

    How it works

    1. Read docs
    2. Write
    3. Run
    4. Fix

    What can go wrongIt hits a failed test, and recovering depends on the error being readable.

  • Business workflow

    Works across tools and systems

    e.g. Read a spreadsheet, transform the data, and create customer records.

    How it works

    1. Read data
    2. Transform
    3. Update
    4. Confirm

    What can go wrongIt lacks a permission. It knows the step and is not allowed to take it.

A shopping agent may also be a browser agent, and a coding agent may use research tools.

What are AI agents bad at?

AI agents are unreliable with ambiguous or changing interfaces, logins, untrusted page text, and long or consequential workflows.

  • An ambiguous interface, such as an unlabeled icon or a confusing control, can be misread.
  • A changing interface, with popups, layout shifts, and moving controls, can interrupt a plan.
  • Weak or contradictory information lets an agent make a confident decision from bad inputs.
  • A login or verification step may require a person.
  • An agent can mistake text on a webpage for instructions. This risk is called prompt injection.
  • A long workflow has more steps, and each one adds cost, delay, and a chance of failure.
  • Financial, legal, publishing, or destructive actions need stronger safeguards and review.

When one of these trips an agent up, it may recover by trying another route. It may also repeat the failed action, or stop and hand the task to a person.

Conditions can also change while an agent works. A product can sell out while it compares options, and a form can reject an entry it thought was valid. This is why agents need permissions, stopping conditions, and human review for consequential actions. They work best where the task is structured enough to verify and the cost of a mistake is manageable.

On a website, the error message often decides which of those outcomes you get. "Something went wrong" gives software little to work with. "ZIP code must contain five digits" states the problem and how to fix it.

An AI agent uses a website through its controls

An AI agent uses a website by reading the page and working out what each control does. It then acts through those controls or through a tool the site exposes. While it completes a task, it has to enter information, follow a workflow, and tell whether each action succeeded.

How does an AI agent read a webpage?

An AI agent reads a webpage through some combination of the visual rendering, the DOM, and the accessibility tree. A person can look at a page and infer that a large rectangle labeled “Search” is probably a button. Software needs a representation it can interpret, and which view it gets depends on the agent and the browser environment.

  1. The visual rendering shows what the page looks like on screen.
  2. The carries the page’s HTML structure.
  3. The is the view screen readers use.

The visual view carries appearance and context. The structured views reduce guesswork when the page is built with . A <button> for a button, an <a> for a link, and a <label> connected to a form field each tell software what the thing is. Heading elements do the same for headings.

A page built from unlabeled <div> elements and an icon with a click handler can look identical to a person and give software almost nothing.

See this page like an agent

A product page is shown as a person sees it and as an agent reads it. Remove the labels to see what the agent loses.

The page as a person sees it

With labels

Cabin Air Filter for Model X (2018–2022)

OEM-compatible replacement with an activated-carbon layer. 12-month warranty.

$24.99

In stock

Labels removed

Cabin Air Filter for Model X (2018–2022)
OEM-compatible replacement with an activated-carbon layer. 12-month warranty.
$24.99
In stock
🛒

The same page as structured text

With labels

  • HeadingCabin Air Filter for Model X (2018–2022)
  • TextOEM-compatible replacement with an activated-carbon layer. 12-month warranty.
  • TextPrice: $24.99
  • TextAvailability: In stock
  • FieldQuantity (number)
  • ButtonAdd to cart

The heading is marked as a heading, the field has a name, and the button is a button element. Software can read each one directly.

Labels removed

  • TextCabin Air Filter for Model X (2018–2022)
  • TextOEM-compatible replacement with an activated-carbon layer. 12-month warranty.
  • Text$24.99 an amount with no label
  • TextIn stock
  • UnknownAn empty box that may be a field
  • UnknownA cart icon that may be clickable

With the labels removed, the page is text and shapes. The agent can read “$24.99”. Nothing tells it which control adds the item or that the empty box takes a quantity.

What became ambiguous

  • The product name is styled text with no heading role.
  • The quantity box has no name to say what it takes.
  • The label and the field are no longer connected to each other.
  • The add-to-cart control is an icon with no role and no text.

How does an agent take action on a page?

A browser agent acts on a page in steps of rising consequence. It reads, moves between pages, filters, enters information, uses an account, and finally submits or transacts.

Permissions and confirmation matter more as the task moves toward an irreversible action. Reading a public product page is low risk. Changing account data, publishing content, sending a message, or completing a purchase carries more. A good agent experience keeps those safeguards in place and gives the system a clear path, with stopping and handoff points it can recognize.

Does an agent have to click through the site?

No, an agent doesn’t have to click through the site. It can operate the interface the way a person does, or it can call a structured tool the site exposes.

Operate the interface. The agent opens the catalog, chooses a vehicle, applies filters, reads the results, and selects a matching product. It has to infer what the controls mean and how the interface works.

Use a structured tool. The system exposes a named capability with explicit inputs.

search_parts(
  part = "cabin air filter",
  model = "Model X",
  year = 2019,
  in_stock = true
)

A browser interface asks software to infer how the page works. A structured tool declares what action is available and what information it expects. Neither one is the better choice in every case.

Two ways to reach the same filter

Both sides have one goal, a cabin air filter for a 2019 Model X. In the first, the agent works out what the controls do. In the second, the site declares one tool with named inputs.

Operate the interface

  1. Open the parts catalog
  2. Find the vehicle control
  3. Select the year
  4. Apply the in-stock filter
  5. Open the matching product
  6. When one filter loses its labelRe-inspect the control to work out what it does

6Interface steps, counting the missing label

Call a structured tool

search_parts(
  part="cabin air filter",
  model="Model X",
  year=2019,
  in_stock=true
)

1Declared capabilities used

Read as a sentence, the call says search parts for a cabin air filter that fits a 2019 Model X and is in stock. Every input is named, and the agent has nothing to work out from the layout.

A site can offer structured tools to agents through the , an open-source standard. A web page can offer tools inside the browser through . Neither one is an SEO ranking factor or an AEO requirement, and not every marketing site needs to implement them.

As of October 2026, WebMCP is a Draft Community Group Report from the W3C Web Machine Learning Community Group. It has not become a W3C standard, and browser support is early. The contact form on this site has one WebMCP tool that fills in a draft, and a person has to press Send.

AI agents add one requirement to SEO and AEO work

AI agents add one requirement to SEO and AEO work, because software may need to use a page as well as find and understand it. SEO and AEO already cover finding and understanding, and an agent needs both before it can act.

An agent’s path through a page has three stages.

  • Find. Can the relevant information be discovered?
  • Understand. Can the system interpret what the information means?
  • Act. If the task requires it, can an authorized agent use the experience?

Search work covers the first two, and agents add the third.

Find, understand, act

Each stage is shown with one way it can fail.

  1. Find
    Where it breaks

    The product page is not internally linked.

  2. Understand
    Where it breaks

    The page never states which vehicle the part fits.

  3. Act
    Where it breaks

    The page has an unlabeled quantity control.

Test these stages on your own site →

Is AI search visibility the same as agent operability?

No, AI search visibility and agent operability overlap and answer different questions. Visibility asks whether the information can earn attention or a citation (being used as a source in an AI answer). Operability asks whether software can use the experience.

A page can be easy for a search or answer engine to find, understand, and cite and be difficult for an agent to operate. A product page can carry strong copy, clear headings, and good internal links while its checkout controls stay ambiguous.

A site can also expose clean controls or structured actions and earn little search or AI visibility. Its content may not be useful or relevant enough to show up.

What should you do first about AI agents on your site?

To prepare a site for AI agents, start with one task that matters to the business and walk it through the three stages yourself. For a clinic that task might be booking an appointment, and for a parts store it is finding a part that fits. For a software company it might be finding the right setup page in the docs.

  1. Find. Confirm the pages in that task are linked from the rest of the site and load without a login.
  2. Understand. Confirm the facts the task depends on are written as text on the page. Price, availability, fitment, and opening hours get missed when they sit in an image or load only after a click.
  3. Act. Confirm every control in the task is a button element, a link, or a labeled field. Confirm each error message says what went wrong and how to fix it.

This first check needs only a browser. It overlaps with accessibility work, because screen readers depend on the same labels.

The AI agent readiness guide covers the next steps, starting with robots.txt, the plain text file that tells crawlers which pages they may fetch. It also covers firewalls, content delivery networks, agent identity checks, measurement, and testing with an agent.

What is an SEO AI agent?

An SEO AI agent is an AI agent given a search goal and access to the tools and data it needs to work through it. One example goal reads like this.

Identify pages that lost meaningful non-branded organic traffic this month and prepare a review queue with the evidence behind each decline.

Non-branded traffic comes from searches that do not include the brand name. An agent given this goal gathers the evidence in seven observable actions and then hands off to the person who decides what to do. The first action pulls data from Search Console, Google’s free tool for seeing how a site performs in search. The fourth checks each page’s canonical, the tag that tells search engines which URL is the preferred version of a page.

An SEO agent at work

GoalFind the pages responsible for a meaningful decline in non-branded organic clicks.

Agent gathers evidence

  1. Search ConsolePull current and previous-period clicks.
  2. URL decline listFilter to meaningful losses.
  3. Page inspectionOpen the affected URLs.
  4. Technical evidenceCheck that each page can be indexed and which URL it names as canonical.
  5. Page changesReview what changed on each page.
  6. Search resultsCompare changes in the search results and on competitor pages.
  7. Issue groupingGroup findings by strength of evidence.

OutputA prioritized review queue, prepared for human review.

Human decides

  • Update the content?
  • Change internal linking?
  • Fix the canonical?
  • Do nothing, because the evidence is weak?

SEO agents are strongest when the work is repeatable and the output can be checked. Data collection, technical checks with explicit criteria, first-pass competitive research, monitoring, and building review queues from large datasets all fit. A person handles strategy, high-impact technical changes, publishing decisions, and any case where the evidence does not support one conclusion.

One way to divide the work is to let the agent gather, organize, and test, and let the practitioner make the consequential decision. I built a visibility tool on MCP that my department now uses. I also built orchestrator and sub-agent workflows on Vercel, GitHub, and n8n that automate search analysis this way.

The AI search practice case study has the detail. The automotive case study covers AI-assisted production on a live program, and the AI workflows section of my expertise page lists the rest.

Frequently asked questions

Is ChatGPT an AI agent?

ChatGPT is acting as an AI agent when it works through a multi-step task with tools. It searches, opens pages, checks results, and decides what to do next. When it answers a question in conversation, it is acting as a chatbot, and the product does both depending on the request.

What is an example of an AI agent?

A research agent that gathers and compares sources is a common example of an AI agent. A browser agent that finds and selects an appointment on a website is another. Shopping agents check fitment and stock across retailers, and coding agents read documentation, write code, run it, and respond to the errors.

What is the difference between an AI agent and a chatbot?

A chatbot is an interface designed primarily to help through conversation. An AI agent is designed to work toward an outcome and can take actions through tools, APIs, or a browser. Many products now expose both, and the behavior can change from one request to the next.

What is the difference between an AI agent and a crawler?

A crawler retrieves pages for a predefined purpose such as search discovery or model training. An AI agent works toward a goal and chooses actions based on what it finds. An agent may use web retrieval as one of its tools.

What is the difference between an AI agent and agentic AI?

An AI agent is an individual system that works toward a goal within its tools and permissions. Agentic AI is the broader design approach of building AI systems around planning, action, and adaptation.

Can AI agents browse websites?

Some AI agents can browse websites, depending on the system. A browser agent can load a page, read its structure, follow links, enter information, and use controls. Capabilities differ substantially between systems.

Can AI agents fill out forms or make purchases?

Some AI agents can fill out forms or make purchases, depending on the agent’s tools, permissions, the website, and the safeguards around the action. Consequential steps such as purchases should sit behind authorization and confirmation.

Will AI agents replace SEO?

No, AI agents won’t replace SEO. A site needs useful information, clear structure, technical accessibility, and a reason to be trusted or cited, with or without agents. Agents add one more requirement, because software may also need to use the experience.

AI agents rely on the fundamentals of search because an agent has to find and understand a page before it can use one. The work agents add sits in the controls and error messages of the tasks a site supports.