An AI agent is an assistant that is given a goal and a set of tools, and then works toward the goal through a series of steps, deciding some of those steps itself. A chatbot waits for each message and answers it. An agent keeps going: it makes a plan, uses a tool, looks at what happened, and decides what to do next until it reaches an outcome or hits a limit you set. The extra freedom is what makes agents useful, and also what makes permissions and checking important.
Chatbot, workflow and agent: how they differ
- A chatbot answers one message at a time. You drive every step.
- A fixed workflow runs the same steps in the same order whenever something triggers it, for example when an email arrives, summarise it and file it. It may contain an AI step, but the path is decided in advance.
- An agent is given an outcome and chooses its own path, which can vary each time. It can look at results and change course.
More freedom means more that can go wrong, so the simplest option that does the job is usually best. Many tasks that people call agent tasks are better handled by a fixed workflow with one AI step.
The parts of an agent
Different products name these parts differently and the details vary by tool, plan and version, but the pattern is consistent.
- Goal: the outcome you want, stated clearly, with what finished looks like.
- Plan: the steps the agent proposes to reach the goal. A good setup lets you see this before it acts.
- Tools: the things it can use to act, such as searching, reading files, reading email or writing a draft. Each tool is a permission you grant.
- Steps and observation: it takes an action, then reads the result, which is called observation, and uses that to choose the next action.
- Checks: tests the agent or a person applies to the work, such as comparing totals or confirming a source.
- Stop rules: conditions that end the run, such as finishing, hitting a step or time limit, meeting something unexpected, or needing approval.
Underneath, a language model does the deciding. At each step it is given the goal, what has happened so far and the tools available, and it produces the next action. This is why agents inherit the weaknesses of language models: they can misread a situation or act on a wrong assumption, which is why checks and limits matter.
A worked example: tidying a shared inbox into a weekly summary
Say a team has a shared inbox for supplier queries and wants a short weekly summary of what came in, what is waiting and what needs a decision. Here is how an agent could do it, with the person in control.
- Goal. You write: "Each Friday, read this week's messages in the supplier inbox and produce a one-page summary grouped into: waiting on us, waiting on supplier, resolved. Do not send anything or change any message."
- Permissions. You grant read-only access to that one inbox. You do not grant sending, deleting or access to other mail. This is the most important decision in the whole setup.
- Plan. The agent proposes: list this week's messages, group them by thread, work out who replied last, classify each thread, and draft the summary. You read the plan and approve it.
- Steps and observation. It lists the messages, opens each thread, notes the last reply and the date. Where a thread is unclear, it marks it as unclear instead of guessing.
- Checks. It compares the number of threads in the summary with the number it found, and lists any thread it could not classify. You spot-check a few threads yourself.
- Person approves. The agent produces a draft summary. You read it, correct anything, and decide whether to share it. If a follow-up email is needed, the agent drafts it, but you review and send it. Anything that sends, deletes or commits money stays with a person.
- Stop. The run ends when the summary is produced, or earlier if it hits a step limit, finds messages it is not permitted to read, or cannot make sense of a thread.
- Log. You can see which messages it opened and what it produced, so you can audit the work and fix the instructions if it misjudged something.
Notice what this setup does not allow. The agent cannot reply to suppliers, move messages or see anything outside one inbox. If it misreads a thread, the worst outcome is an inaccurate draft that you catch before anyone else sees it.
Permissions and logs are the safety system
- Least access: give only the tools and data the task needs. Start read-only and add write access later if you have a reason.
- Approval gates: require a person to approve anything that sends a message, deletes, publishes, buys or changes records.
- Limits: cap the number of steps and the time it can run, so a mistake cannot loop for long.
- Logs: keep a record of what the agent read, what tools it used and what it produced. Without a log you cannot tell what happened or learn from errors.
- Review: look at the log and output regularly, especially in the first few runs.
Before you try one
- Ask whether a fixed workflow would do the job. If the steps do not vary, it probably would.
- Check your organisation's policy on AI tools and on connecting them to email, files and other systems. Some tools and features need an administrator to approve them.
- Test with harmless or made-up data first.
- Remember that features, names and settings differ between tools and change often, so follow the vendor's current instructions.
Good to know
Do not connect an agent to confidential or personal data unless your organisation has approved that tool and use. Write down what it may touch before you switch it on.
Our automation lessons walk through building a small, safe agent step by step.
Common questions
What is the difference between an AI agent and a chatbot?
A chatbot replies to each message you send. An agent is given a goal and can take several steps toward it, often using tools such as search, files or email, with less prompting from you in between.
Are AI agents safe to let run on their own?
Only within limits you set. Give an agent the least access it needs, keep a person approving anything that sends, deletes, pays or publishes, and review its log.
Do I need an agent, or is a simple automation enough?
If the steps are the same every time, a fixed workflow is simpler and more predictable. Consider an agent only when the steps genuinely vary from case to case.
Official pages to check
AI tools change quickly. Check the vendor's current help page before you act, and review anything an AI tool produces before you rely on it.