AI basics
What is an AI agent? A plain guide to AI that acts for you
An AI agent does not just answer: it plans, uses your apps and finishes tasks. How agents work, where they slip up, and how to give one safe access.

An AI agent is a piece of software built on a language model that can take a goal, break it into steps and carry those steps out with tools such as your email, calendar, files or a web browser. Where a chat assistant gives you an answer and stops, an agent keeps going until the job is done or it needs you.
Agents are turning up inside chat apps, office suites and phones, often under friendly names. This guide explains what they are underneath, how they work step by step, what they are good and bad at, and the settings worth checking before you hand one the keys to your accounts.
What does “AI agent” actually mean?
The word is used loosely, but the core idea is simple: an agent is a language model that is allowed to decide what to do next and then do it. It has a goal from you, a set of tools it may use, and some freedom to choose the order of its own steps.
Engineers often separate agents from workflows. A workflow follows a fixed path that a developer wrote in advance, such as “read each new invoice, pull out the total, add it to a sheet”. An agent gets a goal like “sort out my travel receipts for last month” and works out the path itself. That freedom is what makes agents useful for messy tasks, and also what makes them harder to predict.
How is an agent different from a chat assistant?
A chat assistant works in turns. You ask, it replies, and nothing happens until you type again. It is good for questions, drafts, explanations and quick edits, and you stay in the loop at every step because you read every reply.
An agent works on your behalf, often in the background. Many run on a computer in the provider’s cloud, so they can keep working after you close the window. Some watch for events, such as a reply to an email or a change on a web page, and act when it happens. Some make suggestions you never asked for. The two are complements rather than rivals: a chat window is quicker for a one-off question, an agent is meant for jobs with many steps or that stretch over days.
- Chat assistant: answers, waits for you, touches nothing outside the conversation.
- Agent: plans, uses connected apps and websites, can act without you watching.
- Workflow automation: follows fixed rules someone set up, with little or no judgement.
An agent can only act through the access you give it, so its mistakes land directly in your accounts.
How does an AI agent get a task done?
Under the hood most agents run the same loop. The model reads the goal and what it knows so far, picks one action, such as searching a mailbox or opening a page, and gets back a result. It looks at that result, decides whether it is closer to the goal, and picks the next action. The loop repeats until the task is finished, a limit is reached or the agent hits something it should ask you about.
The tools are what turn a talking model into a doing one. A tool can be a connector to a calendar or a file store, a web browser the agent drives itself, a code runner, or a payment step. Good agents also keep notes about you, such as your time zone or the airline seat you prefer, so they do not ask the same thing every time.
- Goal: you describe the outcome you want.
- Plan: the model breaks it into steps.
- Act: it uses one tool at a time.
- Check: it reads the result and adjusts the plan.
- Stop or ask: it finishes, hits a limit, or hands back to you.
What are agents good at, and where do they slip up?
Agents shine at tasks that are tedious for people but easy to check afterwards: collecting information from several places, keeping an eye on a page for a change, drafting replies for you to approve, turning a pile of notes into a tidy document, or preparing a shortlist before you decide.
They are weaker where one wrong step spoils the rest. Because each step builds on the one before, a small misreading early on can grow into a confident but wrong result at the end. Summaries and task lists made by an agent can also leave things out, so check anything important, such as a deadline or a request from a client, against the original yourself. Agents use more computing power than a single chat reply, so providers often cap how much they can do.
Why do permissions matter so much?
An agent can only act through the access you give it. Connect your inbox and it can read your mail; allow sending and it can write to your boss. That is the whole point, but it also means the agent’s mistakes, or someone tricking it, land directly in your accounts.
Well-designed agent products let you choose which actions need your approval. Common patterns are read-only access for background research, a draft-and-confirm step before any email goes out, and a hand-back to you for sensitive steps such as changing a password or moving money. Most also keep an activity log that shows what the agent did, what it is doing and what it plans next, with a button to stop a task.
What is prompt injection, and why should agent users care?
Prompt injection is an attack where text written by someone else changes what the model does. For an agent, the dangerous version is indirect: the instructions hide in content the agent reads while working, such as an email, a shared document or a web page, sometimes in text a human would never see. The security group OWASP lists prompt injection as the top risk for applications built on language models.
The UK’s National Cyber Security Centre has argued that this may never be fully fixed, because a language model has no firm line between data it reads and instructions it follows. Its advice is to limit the damage instead: give an agent only the access it needs, and do not let an agent that reads untrusted content also take powerful actions without a person checking.
How do you set up an AI agent safely?
You do not need to be a security expert. A few habits at setup time cut most of the risk, and they are easy to adjust later as you learn what the agent does well.
- Start with one small, low-stakes task and widen access only when it has earned your trust.
- Connect only the apps the task needs; disconnect the rest.
- Require your approval before sending messages, buying anything, deleting files or sharing documents.
- Never let it handle money transfers, password changes or legal sign-offs on its own.
- Write short standing instructions: what it may do, what it must always ask about.
- Check the activity log now and then, and stop any task you do not recognise.
- Read the data settings to see whether your connected content is used to train models.
- At work, use only agents your employer has approved, and follow its AI policy.
Frequently asked questions
Is an AI agent the same as a chatbot?
+
No. A chatbot answers in turns and waits for you. An agent is given a goal, plans its own steps and uses tools such as your email, calendar or a browser to carry them out, often while you do something else.
Can an AI agent spend my money?
+
Only if you connect a payment method and allow it. Many agent products ask for confirmation before a purchase or hand control back to you for payments. Keep purchases behind an approval step, and check your statements as you would with any new service.
Are AI agents safe to connect to my email?
+
They can be used safely with care. Email is a common route for prompt injection, because anyone can send you text the agent will read. Start with read-only access, approve every message before it is sent, and avoid giving the same agent power over payments or passwords.
Do AI agents make mistakes?
+
Yes. They can misread a page, pick the wrong file or miss an indirect request, and an early slip can carry through every later step. Treat their output like work from a new assistant: useful, but worth checking before it matters.
What is the difference between an AI agent and automation?
+
Classic automation follows fixed rules written in advance and does the same thing every time. An agent decides its own steps based on the goal and what it finds along the way, which makes it more flexible and less predictable.
Can I rely on an AI agent’s summary of my inbox?
+
Use it as a starting point, not the final word. Summaries can drop details or misread what a message is asking for. For anything that matters, such as deadlines, payments or requests from your manager, open the original message and check it yourself.
AI agents are best thought of as capable new helpers with keys to some of your rooms. Decide which rooms, keep the important doors behind your own approval, and look at what they did. Used that way, they can take real chores off your plate.
How we research: Guides are written from established sources and checked for accuracy. They are general information, not professional advice.
Written by
Cortexpost Editorial Team
Artificial intelligence
Our writers work with AI tools every day and explain them plainly, without hype or doom.


