What is an AI Agent?
An AI agent is software that uses an LLM to plan and take actions autonomously, not just answer questions. Plain-English explanation with real examples.

Chatbot vs agent: the key difference
A chatbot has one turn: you ask, it answers. The conversation may continue, but each response is independent of anything outside the conversation window.
An agent has a loop:
- You give a goal: “Research the top five competitors to our product and write a brief report”
- The agent plans: “I need to search for competitors, then analyse each one, then write the report”
- The agent acts: searches the web, reads pages, extracts data
- The agent evaluates: “Did I find enough? Are there gaps?”
- The agent acts again: searches for missing data, fills in gaps
- The agent delivers: produces the report
The agent decides what steps to take, executes them using real tools, evaluates the results, and iterates. You can be away from the keyboard while it works.
The structure of an AI agent
A concrete example: the research agent
Task given to the agent: “Find the last five press releases from our top three competitors and summarise what they are announcing.”
The agent’s execution:
- Calls web search tool: “press releases Competitor A 2026”
- Reads the top results, extracts press release text
- Calls web search tool: “press releases Competitor B 2026”
- Reads results
- Calls web search tool: “press releases Competitor C 2026”
- Reads results
- Calls code execution tool: Python script to sort by date and filter last five per company
- Generates structured summary from all gathered data
The LLM decides each step. It interprets search results, realises when it needs more data, and knows when it has enough to write the final summary.
The agentic loop
Real-world agent applications in 2026
| Use case | What the agent does | Tools used |
|---|---|---|
| Customer support | Reads ticket, queries CRM, drafts reply, escalates if needed | CRM API, email API, knowledge base |
| Code review | Reads PR, runs tests, checks style, posts review comments | GitHub API, code execution |
| Research assistant | Searches web, reads papers, extracts data, writes report | Web search, file reader, summarisation |
| Data pipeline | Reads new files, transforms data, writes to database, sends alert | File system, SQL, Slack API |
| Sales outreach | Finds prospects, personalises emails, sends at optimal time | CRM, email, web search |
Frameworks for building agents
| Framework | Language | Best for |
|---|---|---|
| Claude Code / Claude Agent SDK | Any (SDK: Python, TypeScript) | Coding tasks, file operations |
| LangGraph | Python | Complex stateful agent workflows |
| CrewAI | Python | Multi-agent collaboration |
| Microsoft Agent Framework | Python, .NET | Multi-agent workflows (successor to AutoGen, which is now in maintenance mode) |
| Strands Agents | Python, TypeScript | AWS-native agent workflows |
| Amazon Bedrock AgentCore | Any | Managed runtime, memory, identity and tool gateway for agents at enterprise scale |
The older Amazon Bedrock Agents service was renamed Bedrock Agents Classic and closed to new customers on 30 July 2026 (maintenance mode); AWS recommends AgentCore for new builds.
Risks and design principles
Irreversibility: Agents can take actions you cannot undo (sending emails, deleting files, making purchases). Design agents to ask for confirmation before irreversible actions.
Error propagation: Mistakes in step 3 can cascade through steps 4, 5, and 6. Use checkpointing: save intermediate state and allow resumption from a checkpoint on failure.
Scope creep: Agents given broad goals may take unintended actions. Constrain the action space: define exactly which tools are available and what they can do.
Cost: Each tool call and LLM inference costs money. A 50-step agent run on a mid-tier model (at the time of writing, September 2026, for example GPT-6 Sol or Claude Sonnet 5) might cost €0.50-5. Profile before deploying at scale.
What’s next
- Multi-Agent Systems 101 : How to design systems with multiple collaborating agents
- Building RAG Systems : Giving agents access to private knowledge bases
- What is an LLM? : The AI brain at the centre of every agent
Further reading
- Anthropic: Agents Overview : Technical documentation with code examples
- LangGraph documentation : Python framework for building stateful agent workflows
- CrewAI documentation : Multi-agent framework with role-based agent design
- AWS: Amazon Bedrock Agents Classic maintenance mode : Why AWS points new agent builds to AgentCore (checked 25 September 2026)
- Agentic Loops (Glossary) : Technical definition of the core agent execution pattern
Frequently asked questions