AI Agents and Legal Liability: Who Is Bound When Software Acts on Your Behalf?

An AI agent, in the current product sense, is a system that does not just answer questions but takes actions for a user: it books travel, places orders, fills in forms, sends emails, negotiates with other systems and calls external tools and APIs, often without a human approving each step. That raises legal questions that a chatbot giving advice does not. If the agent accepts terms, buys the wrong thing, overspends or discloses data it should not, is the user bound? Can the business on the other side rely on what the agent did? And who answers when the agent's actions harm a third party?
This article focuses on those agency and contract questions. The general framework for harm caused by algorithmic systems — negligence, product liability, the revised EU Product Liability Directive and discrimination claims — is covered in our companion piece, AI liability: who is responsible when algorithms cause harm.
Is an AI Agent an "Agent" in Law?
Not in the traditional sense. Common-law agency is a relationship between persons: a principal authorises an agent, and the agent's acts within its actual or apparent authority bind the principal. Software has no legal personality, cannot consent to act for anyone and cannot itself be liable. The Restatement (Third) of Agency accordingly treats a computer program as an instrumentality of the person who uses it rather than as an agent. The practical result is that the law usually does not ask whether the AI agent had "authority" in the agency-law sense, but whether its actions are attributable to the person who deployed it.
Contracts Formed by Electronic Agents
US statute law anticipated automated contracting decades before current AI systems. The Uniform Electronic Transactions Act (UETA), adopted in most US states, defines an "electronic agent" as a computer program or other automated means used independently to initiate an action or respond to electronic records or performances without review or action by an individual. Section 14 provides that in an automated transaction a contract may be formed by the interaction of electronic agents of the parties, even if no individual was aware of or reviewed the electronic agents' actions or the resulting terms and agreements. A contract may also be formed between an electronic agent and an individual.
The federal E-SIGN Act takes the same approach. Under 15 U.S.C. § 7001(h), a contract or other record relating to a transaction in or affecting interstate or foreign commerce may not be denied legal effect, validity or enforceability solely because its formation, creation or delivery involved the action of one or more electronic agents, so long as the action of any such electronic agent is legally attributable to the person to be bound.
Two consequences follow for AI agents. First, a transaction is not invalid merely because an AI system, rather than a person, clicked "accept". Second, the decisive question is attribution: UETA § 9 attributes an electronic record to a person if it was the act of that person, which may be shown in any manner, including by the efficacy of a security procedure. A user who sets up an agent with access to their accounts and payment methods will generally find it hard to disown what the agent does with them.
Who Is Bound — and What About Mistakes?
Because the agent is treated as the user's tool, the starting point is that the user (or the business that deployed the agent) is bound by the transactions it concludes. Whether a particular action is attributable can still be disputed — for example, where the agent acted far outside the instructions it was given, or where it was manipulated by a third party.
UETA § 10 contains a limited error rule for automated transactions: an individual who makes an error when dealing with another person's electronic agent may avoid the effect of the erroneous record if that electronic agent gave no opportunity to prevent or correct the error, provided the individual promptly notifies the other party, takes reasonable steps to return any consideration and has not used or received a benefit from it. The rule is framed around an individual's error in dealing with someone else's automated system; it does not straightforwardly cover a user's own AI agent going wrong. Outside these provisions, ordinary contract doctrines such as mistake, and the terms of service of the platforms involved, decide what can be unwound.
Delegated Authority in Practice
Because the law attributes an agent's actions to the person who deploys it, the real limits on "authority" are technical and contractual. Users and businesses deploying agents can narrow exposure by setting spending caps, restricting which accounts, tools and data the agent can reach, requiring human confirmation for payments, signatures and irreversible actions, and keeping logs that show what the agent was instructed to do and what it did. Those logs matter: if a dispute arises over whether an action was authorised or attributable, they are often the only evidence of what happened.
Businesses Speaking Through AI
The same logic applies in the other direction. A business that lets an AI system deal with its customers is answerable for what the system says and does. In Moffatt v. Air Canada, 2024 BCCRT 149, British Columbia's Civil Resolution Tribunal held the airline liable for negligent misrepresentation after its website chatbot wrongly told a customer he could claim a bereavement fare retroactively. The tribunal rejected the argument that the chatbot was responsible for its own actions: it was part of Air Canada's website, and the airline had not taken reasonable care to ensure it was accurate. The decision is from a small-claims tribunal and does not bind other courts, but it illustrates how readily statements made by an automated system are attributed to its operator.
Tool-Use Risks
Agents that can browse, read email and call APIs face risks that a closed chatbot does not. Content the agent reads — a web page, a document, an incoming message — may contain instructions designed to hijack it ("prompt injection"), leading it to send data or make transactions the user never intended. An agent with broad permissions can also act on personal data in ways that engage data protection law; in the EU, decisions based solely on automated processing that produce legal or similarly significant effects are restricted by Article 22 GDPR. When such an incident causes loss, the questions are the familiar ones — attribution to the user, the security measures each party took, and how the platform's terms allocate the risk — rather than a special rule for AI.
The EU Picture
The EU AI Act regulates how AI systems are built and used but does not itself create a right to compensation, and the EU has no specific contract rules for AI agents. The proposed AI Liability Directive was withdrawn by the Commission in 2025. Claims arising from an agent's conduct are therefore governed by national contract and tort law, and — where the software itself is defective — by the revised Product Liability Directive, discussed in our article on liability for algorithmic harm. For the compliance obligations that apply to providers and deployers, see our overview of what the EU AI Act requires from businesses.
Frequently Asked Questions
Am I bound by a contract my AI agent accepted?
Often, yes. Under UETA § 14 and 15 U.S.C. § 7001(h), a contract is not invalid merely because electronic agents formed it, as long as the agent's action is legally attributable to the person to be bound. If you authorised the agent to transact with your accounts, its actions will usually be attributed to you, although attribution can be disputed in particular circumstances.
Can an AI agent be held liable itself?
No. Software has no legal personality. Liability falls on people and companies — typically the user or business that deployed the agent, and in some cases the provider of the system or the operator of the platform it interacted with.
Is a company responsible for what its customer-service chatbot says?
In Moffatt v. Air Canada (2024), a Canadian tribunal held that it was, rejecting the argument that the chatbot was a separate entity responsible for its own actions. Outcomes elsewhere depend on local law, but businesses should assume statements made by their AI systems will be treated as their own.
How can businesses limit the risk of deploying AI agents?
Limit the agent's permissions and spending, require human confirmation for payments and irreversible actions, guard against prompt injection when the agent reads untrusted content, keep auditable logs of instructions and actions, and review the terms of the platforms and tools the agent uses.