---
title: "AI agents: what they are, how they work, examples | ekory"
description: "What an AI agent is and how it works: tools, permissions, levels of autonomy, 18 examples by department, the risks with sources and the 2026 rules."
url: https://ekory.ai/blog/what-are-ai-agents
language: en
italian: https://ekory.ai/it/blog/what-are-ai-agents.md
updated: 2026-11-08
---

Guide 5 November 2026 17 min read Updated 8 November 2026

# AI agents: what they are, how they work and examples at work

An AI agent is a program that uses an AI model to complete a task in several steps: it chooses on its own which tools to use (searching a document, reading the CRM, preparing a draft) and stops when the work is done or when a person is needed. A chatbot answers, an agent acts: that is why, at work, its capabilities matter less than three questions, namely what it can read, what it can do and who approves.

- **Over 40%** of agentic AI projects will be canceled by the end of 2027, Gartner predicts
- **4%** of Italy’s AI market in 2025 comes from process orchestration and agentic AI
- **16.4%** of Italian companies with 10 or more employees use AI (Istat, 2025)

## Key takeaways

- **An AI agent** is a system in which an AI model decides on its own the steps and tools needed to complete a task: according to Anthropic (December 2024), it is typically a language model using tools in a loop, guided by the result of each step.
- According to Gartner (25 June 2025), **over 40% of agentic AI projects** will be canceled by the end of 2027 due to escalating costs, unclear business value or inadequate risk controls.
- In Italy, agentic AI and process orchestration make up 4% of a €1.8 billion AI market (Politecnico di Milano, February 2026), and the observatory’s director calls the human-in-the-loop approach “not just advisable, but necessary”.
- The main risk is **prompt injection**, first in OWASP’s Top 10 for LLM applications (2025); OWASP’s list for agentic applications (9 December 2025) recommends “least agency”: no autonomy where it isn’t needed.
- Since 2 August 2026 the AI Act requires that people interacting with an AI system be informed of it (article 50); in Italy, since 23 October 2026, every final employment decision made with AI belongs to a person (Legislative Decree 179/2026).

## What is an AI agent?

An AI agent is a system that receives a goal, decides on its own which steps are needed, uses the tools at its disposal and checks the result of each step before the next. The key word is “decides”: in a traditional program a developer writes the sequence; in an agent, the AI model chooses it as it works.

Anthropic, which makes Claude, separates _workflows_, where models and tools follow “predefined code paths”, from _agents_, where “LLMs dynamically direct their own processes and tool usage”. Microsoft, for Microsoft 365 Copilot, speaks of “specialized AI assistants” that retrieve information, summarize data and take actions such as sending emails or updating records.

**Beware of “agent washing”.** That is Gartner’s name for rebranding existing products (assistants, robotic process automation, chatbots) as “agents” without substantial agentic capabilities; it estimates that only about 130 of the thousands of vendors are real. Before buying an “agent”, ask what it decides on its own and with which tools.

The AI Act (Regulation (EU) 2024/1689) has no separate category: an “AI system” is a machine-based system “designed to operate with varying levels of autonomy” (article 3), and the phrase “agentic AI” appears only once, in a list of codes for the bodies that certify high-risk systems (Annex XIV).

## Chatbot, assistant, agent, automation: what’s the difference?

The four words are used as synonyms, but they describe different things: what changes is who decides the steps and what the system can touch.

Chatbot, AI assistant, AI agent and automation compared

| What | What it does | Who decides the steps | Example | When it fits |
| --- | --- | --- | --- | --- |
| Chatbot | Answers questions | No one: it just answers | The FAQ on the website | Repetitive questions, stable answers |
| AI assistant | Searches, summarizes, drafts on request | The person, step by step | “Summarize this contract” | Individual work |
| AI agent | Completes a multi-step task with tools | The model, within set limits | “Prepare the quote for this customer” | Tasks with choices along the way |
| Automation | Runs a fixed sequence on a schedule or event | Whoever programmed it | The Monday report at 8:00 | Work that is always the same |

Source: our summary of Anthropic (December 2024) and Gartner (June 2025).

Gartner puts it in one sentence: agents when decisions are needed, automation for routine workflows, assistants for simple retrieval; and many use cases positioned as agentic don’t require an agent. Anthropic gives the same advice: the simplest solution first, because an agent trades latency and cost for better task performance.

So the useful question is not “is it an agent or not?” but “what can it do without asking?”.

## How does an AI agent work?

Every agent, from a big vendor or built in-house, is made of the same seven pieces.

1. **The model:** the engine that reads, reasons and chooses the next step (GPT, Claude, Gemini or an open model).
2. **The instructions:** role and rules, such as “answer only from the current price lists; if a price isn’t there, say so”. This is the part you write, and the one that matters most.
3. **The tools:** the possible actions, such as searching documents, reading the CRM, creating a draft, sending a message.
4. **The knowledge:** the documents it answers from. Without your sources it answers from what it knows in general, and that is where invented answers come from.
5. **The memory:** what it remembers within and across conversations. It must be decided: confidential information must not become a rule for everyone.
6. **The permissions:** who uses it, what it reads, on whose behalf it acts. An agent can’t reveal a document it can’t open.
7. **The loop:** it picks a tool, looks at the result, decides the next step; it stops when it is done or when it has to ask. Anthropic recommends stopping conditions, such as a maximum number of iterations.

**What a “tool” is, in practice.** A function with a name, a description and parameters, such as “find a customer by name”: the agent reads the description and decides when to use it. The most widely used standard for connecting tools is MCP, which we explain in [MCP explained simply](https://ekory.ai/blog/model-context-protocol-explained). The distinction that matters, used by Anthropic for Claude Cowork, is between read tools (seeing an inbox, a file) and write tools (creating an invite, deleting a file): the second kind carries more risk.

An example, “prepare the quote for the Bianchi account: 200 chairs, delivery in March”:

1. it reads the customer’s terms in the CRM;
2. it takes the prices from the current price list;
3. it checks availability for March in the ERP;
4. it fills in the quote template and saves it among the drafts;
5. it stops and asks whether to send it.

If the price list lacks that price, a well-built agent says so instead of making something up: the principle behind answers with sources, explained in [why an AI that cites its sources makes fewer mistakes](https://ekory.ai/blog/why-cited-answers-are-more-reliable).

## How much autonomy should an AI agent have?

Autonomy isn’t a fixed feature: it is a choice made by whoever puts the agent to work. Three researchers (Feng, McDonald and Zhang, 2025) treat it as a design decision separate from capability, with five levels defined by the user’s role, from operator to observer. For a company, four steps are enough.

The four levels of autonomy of an AI agent at work

| Level | What the agent does | What the person does | Example | Fit for today |
| --- | --- | --- | --- | --- |
| 1\. Suggests | Answers and proposes | Decides and acts | “Which price list applies to this customer?” | Yes, everywhere |
| 2\. Prepares | Writes a draft | Checks and sends | The reply to a complaint | Yes, for most work |
| 3\. Acts with approval | Carries out an action after a yes | Approves or blocks | Updating the CRM, booking a meeting | Yes, for reversible, recorded actions |
| 4\. Acts alone | Acts within set limits | Checks by sampling | The Monday report in a folder | Only internal, reversible, low-impact actions |

Source: our simplification of the five levels in Feng, McDonald and Zhang (2025).

The sources point the same way: for high-risk systems the AI Act requires oversight “commensurate with the risks, level of autonomy and context of use” (article 14); OWASP, which publishes reference lists of software risks, advises avoiding unnecessary autonomy; the Politecnico di Milano observatory considers a person in the loop necessary until the technology matures.

The practical rule: what leaves the company, moves money or concerns a person stays at level 2 or 3. Level 4 is earned over time, on internal tasks where a mistake shows up at once.

## Examples of AI agents at work, department by department

Useful agents do one job well, with the right documents. Eighteen examples, with the level of autonomy that fits today:

18 AI agents by department: what they do, what they start from, how much autonomy

| Department | What the agent does | Starts from | Level |
| --- | --- | --- | --- |
| Sales | Customer brief before a visit | CRM, email | Prepares |
| Sales | Draft quote in the company format, at current prices | Price lists, templates | Prepares |
| Sales network | Answers to the network on price lists and part numbers, with the page | Price lists, catalogs | Suggests |
| Customer service | Proposed reply to a ticket from manuals and solved cases | Tickets, manuals | Prepares |
| Customer service | Sorting requests by topic and urgency | Shared inbox | Acts with approval |
| After-sales | Updated part number and service procedure | Parts catalogs | Suggests |
| Production | Procedure for a machine alarm | Manuals, reports | Suggests |
| Quality | Draft nonconformity report from the inspection report | Reports, procedures | Prepares |
| Purchasing | Three supplier quotes compared in a table | Quotes, terms | Prepares |
| Logistics | Morning list of late orders and draft reminders | ERP, email | Alone (list), prepares (reminders) |
| Accounting | Supplier invoices matched against orders | ERP, invoices | Prepares |
| Accounting | Answers on expense reports, reimbursements and internal deadlines | Internal procedures | Suggests |
| HR | Answers to new hires on leave, shifts and company rules | Rules, collective agreement | Suggests |
| HR | A new hire’s plan for the first 30 days | Procedures, courses | Prepares |
| Marketing | Product sheets in several languages from data sheets | Data sheets | Prepares |
| Tenders and grants | Requirements, deadlines and documents to gather for a call | Call, company documents | Prepares |
| Legal | Deviations of a contract from the standard clauses | Templates, signed contracts | Prepares |
| Management | Monday 8:00 summary: orders, requests, new documents | CRM, ERP, folders | Acts alone |

Our examples, not survey results. “Prepares”: a person checks and sends.

Each starts from documents the company already has, almost all stop before anything leaves the company, and none decides about a person. More cases in [AI use cases by department](https://ekory.ai/blog/ai-use-cases-by-department).

## What ChatGPT, Claude, Gemini and Copilot call an “agent”

Here is what the four big vendors’ official pages say as of November 2026; the products change fast.

Agents according to OpenAI, Anthropic, Google and Microsoft (November 2026)

| Vendor | What it calls an agent | What it does | Controls described |
| --- | --- | --- | --- |
| OpenAI | Workspace agents in ChatGPT (the 2025 agent mode is no longer available) | Agents shared across the team, also on schedules; in research preview for the Business, Enterprise, Edu and Teachers plans | Permissions and approvals set by admins, for example before sending messages |
| Anthropic | Claude Cowork, which is merging into the Claude chat | You set a goal and it works with files and tools, scheduled tasks included; paid plans | Shows every step; human oversight recommended in high-stakes scenarios |
| Google | Gemini for Business, “one universal agent for the way you work” | Operates across email, documents, data and business apps | Each person’s existing permissions and a complete record of activity |
| Microsoft | Microsoft 365 Copilot agents | Specialized assistants with instructions, knowledge (SharePoint, OneDrive) and actions, inside Teams, Word, Excel and Outlook | They adhere to the security, compliance and Responsible AI requirements of Microsoft 365 |

Sources: the vendors’ official pages, consulted on 8 November 2026. Vendor descriptions, not our own tests.

All four describe controls; for a company the difference lies in which documents the agent reads, with whose permissions, and who corrects it. The questions to ask every vendor are in [how to choose a company AI assistant](https://ekory.ai/blog/how-to-choose-a-company-ai-assistant).

## AI agents out of control: what are the real risks?

An agent makes mistakes like any AI model, but its mistakes don’t stay on a screen: they become a sent email, a changed record, a deleted file. Anthropic warns that autonomy means higher costs and compounding errors. There are four risks.

**1\. Prompt injection.** It is first in OWASP’s Top 10 for LLM applications (LLM01:2025): input that alters the model’s behavior. The most insidious form is the indirect one, with hostile instructions hidden in a web page, a file or an email the agent reads for work, such as a message telling it to transfer money (Anthropic’s example). According to OWASP, it is unclear whether fool-proof defenses exist.

Anthropic does point to the lever: the attack works only if the agent reads content outside the boundary you trust and can also take harmful actions. Remove one of the two conditions and it becomes much harder.

**2\. Too much autonomy.** OWASP calls it “excessive agency” (LLM06): excessive functionality, permissions or autonomy. In its example, an assistant that only needs to summarize emails can also send them, and a malicious email makes it forward confidential data. The fix: read-only access, and a person who hits “send”.

**3\. Errors that compound.** The incident tracker of OWASP’s list for agentic applications records 2025 cases: a Replit agent that deleted a production database and generated false outputs to hide it; Google’s Gemini CLI, which misunderstood an instruction and wiped a user’s directory; ForcedLeak, a vulnerability in Salesforce Agentforce that let an external attacker exfiltrate sensitive CRM records.

**4\. Access to data.** An agent reads everything it is allowed to: if it can open the whole archive, an answer can contain salaries and confidential contracts. Permissions are decided first and checked on every request.

And there is the most frequent risk: the agent nobody needed. Gartner predicts that over 40% of agentic AI projects will be canceled by the end of 2027, and describes most of them today as experiments driven by hype. In Italy 71% of large companies have an AI project, against 8% of small and medium-sized ones (Politecnico di Milano): those starting now can learn from those who started earlier.

The countermeasures:

- read first, write later;
- only the tools needed, read-only where it is enough;
- an explicit yes before anything that leaves the company, moves money or concerns a person;
- a record of what the agent did, and a person accountable for it.

## What the rules say: the AI Act and Italy’s Law 132/2025

No agent-specific law is needed: the AI rules apply.

- **AI literacy (AI Act, article 4).** Since 2 February 2025, organizations that use AI at work support the AI literacy of the staff who use it; since the 2026 Omnibus, without having to guarantee a specific level.
- **Transparency (article 50).** Since 2 August 2026, systems that interact with people must be designed so that people know they are dealing with an AI, unless it is obvious.
- **Human oversight (articles 14 and 26).** For high-risk systems, such as those used to select staff, from 2 December 2027 oversight requires people with the necessary competence, training and authority.
- **Professionals (Law 132/2025, article 13).** Since 10 October 2025, AI may be used only for ancillary and support activities, and clients must be informed “in clear, simple and comprehensive language”.
- **Work (Law 132/2025, article 11, and Legislative Decree 179/2026, article 41).** Workers must be informed about automated systems that decide or monitor, and since 23 October 2026, when AI is involved in hiring, assessments, disciplinary measures or dismissals, the final decision belongs to a person “exercising effective and autonomous power”, or it is null and void.

The full picture is in [Italy’s AI law: what changes for companies and professionals](https://ekory.ai/blog/italy-ai-law-what-changes).

## How to create an AI agent at work: one job, its documents, its people

Gartner’s advice is to pursue agentic AI only where it delivers clear value: you start from a precise job. Seven steps:

1. **One job, just one**, with a checkable outcome: a question that comes up fifty times a month, a report rebuilt every week.
2. **Only its documents:** the current price list, not the ten old versions.
3. **Instructions for a new colleague:** what to do, what not to, when to stop and ask.
4. **Only the tools it needs**, read tools first.
5. **The people:** who uses it, who corrects it, who is accountable for it.
6. **The level of autonomy**, and which actions need a yes, and from whom.
7. **Twenty real questions** with known answers, before opening it to everyone; then measure how many questions no longer reach the expert.

That is how we built Ekos, ekory’s AI agents. Each Eko has its own documents, instructions and people: it answers in chat citing the document and the page, and says so when the information isn’t there. It prepares Word and Excel documents, works at fixed times through automations, drafts emails that a person then sends and, through MCP connectors, looks up a customer in the CRM or reads a ticket. Trusted Users correct it in chat, for everyone; permissions are checked on every question, before the search.

A real example: [M3SN](https://ekory.ai/case-studies/m3sn), the exclusive Tohatsu importer for Italy, has one knowledge base and an Eko for each audience of its network of more than 140 workshops and dealers. In 30 days, 156 people asked questions in 2,283 conversations; the most used Eko answers 138 people, in the evening and on weekends too. The alternatives are in [five ways to build a company chatbot](https://ekory.ai/blog/company-chatbot-on-your-documents); the rest on the [Product](https://ekory.ai/product) and [Security](https://ekory.ai/security) pages.

## Note on sources

**This article is not legal advice.** It reports what the rules, the statistical sources and the vendors’ pages said on 8 November 2026. AI products change often: check the official pages before deciding.

- **Read at the source on 8 November 2026:** Anthropic, Gartner (in the Wayback Machine copy of 28 June 2025: gartner.com does not open to automated tools), Politecnico di Milano, Istat, OWASP and the four vendors’ pages.
- **Law:** the AI Act in the consolidated text of 27 July 2026 (EUR-Lex), Law 132/2025 and Legislative Decree 179/2026 (Normattiva). Quotes are verbatim; translations of Italian law are ours.
- **Examples by department and levels of autonomy:** built by us, not survey results.

## Frequently asked questions

### What are AI agents, in simple terms?

Programs that use an AI model to complete a task in several steps, choosing their tools on their own: searching a document, reading a company system, preparing a draft. A chatbot answers; an agent keeps working until the task is done or it has to ask a person.

### How do you create an AI agent?

Pick one precise job, give it only the documents and tools it needs, write the instructions and decide who approves its actions. ChatGPT (with workspace agents) and Microsoft 365 Copilot offer tools to build them; in ekory you set up an Eko by choosing its documents, instructions and people.

### Are there free AI agents?

Some features, with limits: as of November 2026, OpenAI lists ChatGPT Work on all plans in its macOS and Windows app, while Claude Cowork requires a paid plan. For a company the contract matters more than the price: who sees the data, whether it trains the models, who sets the permissions.

### What are Copilot agents?

Specialized assistants that extend Microsoft 365 Copilot. According to Microsoft they retrieve information, summarize data and take actions such as sending emails or updating records; they are configured with instructions, knowledge such as SharePoint and OneDrive, and actions.

### Can AI agents get out of control?

They can make costly mistakes, especially with too many permissions: OWASP’s incident tracker records, in 2025, an agent that deleted a production database. That is why you start with agents that read and prepare drafts, and require a yes before actions that leave the company.

### What are local AI agents?

Agents that run on your own computer or server, often with a downloaded model. They give more control over where data sits, but need hardware and maintenance, and the risks remain: according to MCP’s security guidance, local servers have the same privileges as the program that launches them.

### Are there specific rules for using AI agents at work?

The AI rules apply: the AI Act asks organizations to support the AI literacy of those who use them (article 4) and that people interacting with an AI know it (article 50). In Italy professionals inform their clients (Law 132/2025) and, since 23 October 2026, final employment decisions made with AI belong to a person.

## Sources

1. [Building effective agents](https://www.anthropic.com/research/building-effective-agents), Anthropic, 19 December 2024.
2. [Feng, McDonald, Zhang, Levels of Autonomy for AI Agents](https://arxiv.org/abs/2506.12469), arXiv, 2025.
3. [Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027](https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027), Gartner, 25 June 2025.
4. [Il mercato dell’AI in Italia cresce del 50% nel 2025, 1,8 mld di euro](https://www.osservatori.net/comunicato/artificial-intelligence/intelligenza-artificiale-italia/), Osservatorio Artificial Intelligence, Politecnico di Milano, February 2026.
5. [Imprese e ICT, anno 2025](https://www.istat.it/comunicato-stampa/imprese-e-ict-anno-2025/), Istat, 15 December 2025.
6. [LLM01:2025 Prompt Injection](https://genai.owasp.org/llmrisk/llm01-prompt-injection/), OWASP Top 10 for LLM Applications, 2025.
7. [LLM06:2025 Excessive Agency](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/), OWASP Top 10 for LLM Applications, 2025.
8. [OWASP Top 10 for Agentic Applications for 2026](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/), OWASP GenAI Security Project, 9 December 2025.
9. [Use Claude Cowork safely](https://support.claude.com/en/articles/13364135-use-claude-cowork-safely) and [Claude Cowork](https://claude.com/product/cowork), Anthropic, consulted on 8 November 2026.
10. [Workspace agents](https://openai.com/business/workspace-agents/) and [ChatGPT agent](https://help.openai.com/en/articles/11752874-chatgpt-agent) (Help Center), OpenAI, consulted on 8 November 2026.
11. [Gemini for Business](https://cloud.google.com/gemini-enterprise), Google Cloud, consulted on 8 November 2026.
12. [Compare declarative and custom engine agents](https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/agents-overview), Microsoft Learn, consulted on 8 November 2026.
13. [Regulation (EU) 2024/1689 (AI Act), consolidated text of 27 July 2026](https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:02024R1689-20260727), articles 3, 4, 14, 26, 50 and Annex XIV, EUR-Lex.
14. [Legge 23 settembre 2025, n. 132, articles 11 and 13](https://www.normattiva.it/uri-res/N2Ls?urn:nir:stato:legge:2025-09-23;132~art13) and [Decreto legislativo 7 ottobre 2026, n. 179, article 41](https://www.normattiva.it/uri-res/N2Ls?urn:nir:stato:decreto.legislativo:2026-10-07;179~art41), Normattiva.

[How we choose and check our sources](https://ekory.ai/editorial-policy)

## More research and articles.

- [ChatGPT, Copilot, Gemini or Claude for business: prices, data and which to choose (2026)](https://ekory.ai/blog/chatgpt-copilot-gemini-claude-for-business): Comparison 4 November 2026 $20 for ChatGPT Business and Claude Team, €18.20 for Copilot Business, Gemini included from €13.60: prices, data terms and the math for 25 and 50 people.

- [The digital field register and AI in farming: the CAP, treatments and production rules (2026)](https://ekory.ai/blog/ai-in-agriculture): Industries 3 November 2026 In Italy, 2026 spray registers must be converted to digital by 31 December. What that means, plus CAP, organic and deforestation rules, and where AI helps a farm.

- [All research and articles.](https://ekory.ai/blog): Resources Data, regulation and cases, in English and Italian.

## Tell us about a process you still do by hand. We'll show it to you on your own materials.

For the first call, your website or a catalog is all we need.
