AI Agents
AI Agents: Tools, Approvals, and Failure Recovery
AI agents can plan and use tools to pursue a goal, but their abilities depend on permissions and safeguards. Learn how to evaluate, control, and adopt them.

AI agents are systems that use tools to take actions toward a goal, rather than only generating a response to a prompt. They can plan, gather information, act, check results, and adjust. But there is no universally agreed definition, and an agent’s real capabilities depend on its tools, permissions, and safeguards.
What are AI agents, and how are they different from chatbots?
An AI agent is a system that uses tools to take actions toward a user’s goal. This is a useful working definition, not a universally settled category. The U.S. Government Accountability Office (GAO) says there is no universally agreed definition of an AI agent. GAO contrasts a customer-service chatbot that answers an order-status question with an agent that could use software systems to process a return. [1]
Agentic AI describes behavior directed toward a goal: a system can make or adjust plans and interact with its environment. A chatbot may provide a useful answer without taking action in another system; an agent may initiate tool use, observe what happens, and continue the task. The distinction is about capabilities, not a strict product label. Some chatbots can use tools, and an agent’s ability to act depends on what its deployment allows.
Anthropic describes an agent as an AI model that directs its own processes and tool use while completing a task. Its account of the loop is: plan, act, observe the result, adjust, and repeat. That describes one kind of agent behavior, not a formal industry standard. [2]
To understand what a system can do, ask: What goal can it pursue? Which tools can it use? Can it change external records or only read them? When must it stop for approval? Those details tell you more than a marketing label.
How do AI agents work from goal to verified result?
An AI agent workflow turns a goal into tool-assisted steps, with controls for approval, verification, and recovery. The sequence below is a practical model, not a standardized technical protocol. OpenAI describes agents selecting tools as workflow state changes, correcting actions, and stopping or handing control back when they cannot proceed. [3]
- Define the goal and trigger. Specify what the user wants, what starts the task, and what counts as completion. “Submit this expense report” is more actionable than “handle my expenses.” The application or operator—not the model alone—should set the task’s scope.
- Plan the steps. Identify a sequence that could meet the goal. An expense report might require reading a receipt, extracting details, checking the policy, and preparing a submission. The plan can change as new information arrives.
- Gather context with read-only tools. Retrieve permitted information, such as a receipt or expense policy. Make clear which tools only read information and which can change external records.
- Propose or perform an action. Depending on its permissions, the agent may prepare a claim or submit it. Anthropic’s expense example describes extracting receipt details, categorizing expenses, and submitting the expense. [2]
- Pause at a risk boundary. If the agent needs a policy to resolve an unusual charge, it should ask for the missing information. It should also stop for approval when the next action crosses a boundary set by the application or operator.
- Check the external result. Verify that the intended change occurred—for example, that the claim was recorded—not merely that a tool returned a success-like message.
- Retry safely, stop, or escalate. A temporary tool failure may allow a controlled retry. An unclear goal, missing permission, or unresolved error should lead to a stop or transfer to a person, not an improvised action. OpenAI’s guide describes correcting actions and returning control when a workflow fails. [3]
Worked example: submitting an expense report
Suppose an employee asks an agent to prepare and submit a report for a work trip. The success condition is not “the agent says it is done.” It is that the correct report appears in the expense system with the right receipt, category, and status.
- Plan and read. The agent reads the receipt image and retrieves the applicable expense policy using read-only tools. It extracts the date, merchant, amount, and likely category, then compares the charge with the policy.
- Handle missing information. If the receipt image does not show the amount clearly, the agent asks the employee to provide a clearer image rather than guessing. If it cannot retrieve the policy, it stops before deciding whether the expense is allowed.
- Prepare, then request approval. The agent uses a write tool to create a draft report. It may attach the receipt and enter the extracted details, but submitting the report is the approval boundary: the employee reviews the draft and approves submission.
- Recover from tool failure. If the expense system times out, the agent checks whether the draft was created before retrying. If it cannot determine whether the first attempt succeeded, it stops and asks a person to check, avoiding a duplicate report.
- Verify completion. After approval, the agent checks the expense system for the submitted report and its status. It reports the result only after confirming the record exists; otherwise, it explains what remains unresolved.
This example separates what the model proposes from what the application permits. The model can select among available steps, but the operator configures tools, access, and approval rules.
What components give an AI agent its capabilities?
An AI agent’s capabilities come from the combination of a model, tools, and instructions, together with the permissions and software environment that govern their use. OpenAI identifies “Model,” “Tools,” and “Instructions” as the basic components of an agent. [3]
The model interprets context and helps select among available steps. Tools connect it to information or actions: examples include querying databases, updating records, and sending messages. A read-only query retrieves information; an update or message can change external state. Instructions describe the task scope and operating rules, such as which records to examine or when to request review. [3]
Permissions, available tools, the surrounding application, and the operating environment also shape what the deployed system can do. Anthropic emphasizes that autonomy depends on these deployment components, rather than being a fixed property of the model alone. [2]
Two products using similar models can therefore have very different capabilities. One might retrieve information and draft a response; another might update records or send messages. Compare the access and controls each product actually has, not only its model name.
When should you use an AI agent instead of simpler automation?
An AI agent may suit a workflow that needs context-sensitive decisions, rules that are hard to maintain, or substantial interpretation of unstructured information. OpenAI names these three conditions and cautions that a deterministic solution may suffice otherwise. [3]
OpenAI’s examples include nuanced refund decisions, vendor security reviews, and processing home-insurance claims—work where evidence or decisions may vary by case. [3] A process that interprets different documents and then uses approved tools may be a better candidate than a one-off question, which a chatbot may answer directly. A predictable task with stable rules may be simpler and easier to test with conventional software.
Use this decision test before introducing an agent:
- Does the task require context-sensitive judgment? If the same fixed rule reliably covers every case, deterministic automation may be more appropriate.
- Does the task need tools? Identify whether the system must retrieve information, change records, or communicate with another service. If the user only needs an explanation, a chatbot may be enough.
- Can you verify success? Define an observable outcome, such as a record being updated, rather than relying on a fluent completion message.
- Can you control risky actions? If high-impact actions cannot be limited, reviewed, or safely reversed, choose human handling or a more constrained process.
Choose the least complex approach that meets the task’s needs and can be evaluated reliably.
What do autonomy measurements show—and what do they not show?
A product-specific autonomy measurement does not establish how independently AI agents can work across products, tasks, or users. A result may describe how long a system runs before stopping, how often users allow actions without approval, or how successfully it completes a particular task. These measures are not interchangeable.
Hypothetical comparison: Agent A completes the tested task successfully but pauses for human intervention several times. Agent B runs longer without asking for help, but its task-success rate is lower. Agent A’s result says more about success on that task, not about uninterrupted operation. Agent B’s result says more about time before intervention, not whether its work is correct. Approval frequency adds another signal: frequent requests may reflect cautious settings, but they do not prove either good judgment or poor performance.
Before relying on a measurement, check what counts as a session, which users and tasks are represented, what permissions and approval settings were active, and how success was determined. A longer session does not by itself show that a task was completed correctly, safely, or without human intervention. A high approval rate does not prove that the system performed well; it may simply show that users enabled a setting.
For buyers and builders, evaluate the particular deployment: the task, model, tools, permissions, users, and approval settings. Do not infer a system’s autonomy from a headline or model name.
How should people control an agent’s permissions and risky actions?
Give an agent only the access needed for its task, and require approval before consequential actions. OpenAI recommends enforcing validation at the tool boundary that creates a side effect, rather than relying only on general instructions. [4]
- Separate reading from changing. Permit in-scope retrieval or drafting where appropriate, but identify tools that can send, delete, pay, or change access. Those actions have consequences beyond producing text.
- Put approval beside the action. OpenAI documents an approval flow in which execution pauses, returns a resumable state, and continues only after the application approves or rejects the pending action. This places the check where the side effect would occur. [4]
- Limit permissions. Multi-agency cybersecurity guidance advises against broad or unrestricted access, particularly to sensitive data or critical systems, and recommends minimum necessary privileges. [5]
- Set high-impact checkpoints in advance. The same guidance recommends human approval for high-impact actions and says designers or operators—not the agent—should determine when approval is required. [5]
Protect against malicious instructions and data exposure
Retrieved documents, web pages, emails, and other tool output can contain malicious or misleading instructions. If an agent treats that content as trusted directions, it may be redirected away from the user’s task, disclose information, or make an unsafe tool call. Treat retrieved content as data to assess, not as authority to change the agent’s instructions or permissions.
- Restrict data access. Give each tool access only to the records and fields the task requires. Keep sensitive data out of the agent’s context when it does not need that data to complete the task.
- Validate every tool call at the action boundary. Check arguments against an expected schema and allowed values, confirm the user and task are authorized, and reject requests outside the permitted scope. Do not rely on the model’s own judgment or prompt instructions as the only control.
- Review sensitive outputs. Before a tool sends or shares information, check that the recipient and the data are appropriate for the task. Apply the same approval boundary used for other consequential actions.
Make approval meaningful: give the reviewer enough context to understand the proposed action and its consequences. A blanket “approve everything” setting removes the safeguard. Too many prompts can also encourage approval without careful review. Set the boundary according to the action’s impact, reversibility, and scope.
How can you tell whether an agent succeeded or failed?
Judge success by the task’s verifiable outcome, not by the agent’s final message. Anthropic’s flight-booking example defines the meaningful result as a reservation existing in the database, not the agent saying that it booked a flight. [6]
Anthropic recommends assessing multi-step behavior, tool calls, and resulting state because an early mistake can affect later steps. Multiple trials help account for variation in model outputs. [6] Use this evaluation checklist:
- Define success criteria. State what must be true in the relevant system when the task is complete.
- Run repeated trials. Check performance across multiple attempts and representative cases, not just one polished demonstration. [6]
- Record and inspect traces. Review intermediate steps and tool calls to see how the agent reached its answer and where an error occurred. [6]
- Verify external state. Confirm the change in the authoritative system—for example, the actual reservation or submitted record—not just the tool response or final message. [6]
- Test recovery and escalation. Simulate missing information, failed tools, unclear instructions, and denied approvals. Confirm that the agent stops, retries safely, or transfers control as designed.
A system that produces convincing answers but cannot reliably verify or recover from actions is not ready for consequential workflows. Evaluate both the path to the outcome and the outcome itself.
What should teams consider before adopting an AI agent?
Before deployment, make a go/no-go decision and prepare a bounded launch:
- Choose a suitable workflow. Confirm that the task needs an agent’s judgment or ability to handle unstructured information, rather than stable rules that simpler software can follow.
- Name an owner and define the boundary. Specify who is responsible for the workflow, what systems it may access, and what actions require a person.
- Set a measurable launch condition. Define the external result the system must achieve and the failure behavior that would pause deployment.
- Run a limited test before expanding access. Include normal cases and failures, review the traces, and verify actual outcomes.
- Plan ongoing review. Decide who will monitor results, handle escalations, and reassess permissions when the workflow or connected systems change.
If the team cannot define success, constrain access, or verify outcomes, it should not deploy the agent for consequential work. Standards and protocols are developing, so teams should test the system they actually plan to use rather than assume interoperability or safety by default.
Frequently asked questions
Is there one official definition of an AI agent?
No. GAO says there is no universally agreed definition. A useful working definition is a system that uses tools to take actions toward a goal, but capabilities vary by deployment. [1]
Does an AI agent need permission to take an action?
The application or operator controls which tools and permissions are available. For consequential actions, establish an approval boundary and enforce it where the action changes external state. [4]
What should I ask a vendor to demonstrate before adopting an AI agent?
Ask the vendor to demonstrate the complete workflow: tools used, permissions required, approval pauses, failure handling, and verification of the external result.
Can an agent’s completion message prove that a task was completed?
No. Verify the outcome in the authoritative external system. An agent saying it booked a flight is not proof that a reservation exists. [6]
Source notes
- [1] U.S. Government Accountability Office, Artificial Intelligence: An Overview of AI and Its Applications, covering the absence of a universal AI-agent definition and the chatbot-versus-return-processing example.
- [3] OpenAI, A Practical Guide to Building Agents, covering agent components, tool selection, workflow correction, and when to use deterministic solutions.
- [6] Anthropic, Demystifying Evals for AI Agents, covering multi-step behavior, tool calls, repeated trials, and verifying external state.