01

From answers to actions

A chatbot responds to a message with text. An AI agent is built to pursue a goal. Ask an agent to compare flights for a family trip, sort an inbox or fix a bug in some software, and it does not just describe how; it carries out the steps itself. The term covers a range of systems, from assistants that can search the web and run small calculations to programs that operate a computer’s mouse and keyboard, write and test code for hours or coordinate several other agents. What they share is a language model at the centre, connected to tools and allowed to decide, step by step, what to do next.

02

How the loop works

Most agents run a simple loop. The model receives the goal and a description of the tools available, such as a web search, a calculator, a code interpreter, an email account or a company database. It decides on an action and writes a structured request, which software outside the model actually carries out. The result, perhaps a search page or an error message, is fed back to the model, which decides on the next action. This continues until the model judges the task complete or asks a person for help. Some agents write themselves plans and notes along the way, so they can keep track of long tasks that exceed what fits in their working memory.

03

Why reliability is hard

Small error rates compound over many steps. If an agent completes each step of a task correctly 95% of the time, and the steps are independent, the chance of getting all 20 right is only about 36%. At 99% per step it rises to about 82%. Real tasks are messier, because agents can notice and fix some mistakes, but they can also misread a web page, click the wrong button or confidently report success when they have failed. This is why developers test agents on long, realistic tasks rather than single questions, design them to verify their own work, and often keep a person in the loop for important or irreversible decisions such as payments.

04

Permissions and security

Giving software the ability to act raises the question of what it is allowed to do. Good practice follows the principle of least privilege: an agent should have only the access a task needs, for only as long as needed, with clear records of what it did. Agents also face a distinctive attack called prompt injection. Because they read web pages, documents and emails, an attacker can hide instructions in that content, such as a line telling the agent to send files to an outside address. Defences include separating trusted instructions from untrusted data, requiring confirmation before sensitive actions and limiting which websites and accounts an agent can reach.

05

Where agents are used

Software development was one of the first areas where agents became genuinely useful, because code can be run and tested automatically, giving the agent clear feedback. Customer service systems use agents to look up orders and process simple refunds. Researchers use them to gather and summarise sources. Businesses connect agents to spreadsheets, calendars and internal databases to handle routine paperwork. In the Gulf, where governments have invested heavily in digital services, agents are being explored for tasks such as processing applications and answering citizens’ queries. In each case, the most successful uses so far are well defined, easy to check and supervised by people who understand the work.

06

Questions still open

Agents raise questions that ordinary chatbots did not. If an agent makes a costly mistake, who is responsible: the user, the company that deployed it or the developer of the model? How should websites distinguish a helpful agent acting for a customer from a malicious bot? How much autonomy is appropriate in finance, healthcare or law? Frameworks such as the US National Institute of Standards and Technology’s AI Risk Management Framework offer general guidance, and laws are evolving. For individual users, sensible habits apply: start with low-risk tasks, review what an agent proposes before it acts and never give it more access than you would give a new assistant on their first day.

FOLLOW THE EVIDENCE

Sources & further reading

Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.