Skip to content

AI agents

AI agents for ERP: what they can do and with which permissions

In short

An AI agent connected to an ERP can look up data and prepare documents such as quotes, sales orders or draft supplier invoices. It should run as its own user with the minimum permissions for its task, and authorisation is enforced by the ERP, not by the model. Anything with consequences (posting, sending to a customer, paying, deleting) goes to a person before it runs.

An AI agent for ERP is a system in which a language model uses the ERP’s functions as tools: it looks up customers, items and stock, and creates or changes documents such as quotes, sales orders or supplier invoices. It can read from and write to the ERP, but only with the permissions of its own user, and anything with consequences is approved by a person before it runs.

The ERP holds the data the business depends on: what it sells, what it buys, what it owes and what it is owed. So the useful question about an agent in the ERP goes beyond whether it can do a task. You also need to know which data it can touch and how one of its mistakes gets corrected.

Can an AI agent read and change ERP data?

Yes. An agent can read from and write to the ERP just like an employee or any other integration, through the ERP’s API, its user interface or its database. What the agent can actually do depends on the permissions of the user it connects as.

ERP vendors already do this. Microsoft documents a Sales Order Agent in Business Central that monitors a mailbox, identifies the customer, checks item availability, prepares a sales quote and, once the customer confirms, converts it into an order. According to the documentation as of November 2026, the agent navigates pages and invokes actions “as a user would”, within the permissions and profile assigned to it by the administrator.

The same documentation is clear about where it stops. The Sales Order Agent doesn’t post documents, doesn’t create items, contacts or customers, and doesn’t accept price or discount changes by email: it hands those to a person. Those limits are a good reference for any agent connected to an ERP, whether it comes from the vendor or is built to measure.

Which ERP tasks are good candidates for an agent?

The best candidates are repetitive tasks that start with an unstructured document or message (an email, a PDF) and end with an ERP record that a person can review before it takes effect. Sales orders, supplier invoices and stock queries meet those conditions.

Task What the agent does What a person reviews
Sales orders by email Reads the email and attachments, identifies the customer and items, checks stock and prepares a quote The quote and the reply to the customer before they are sent
Supplier invoices Extracts data from the PDF, identifies the supplier, suggests GL accounts and matches the invoice to the purchase order The draft before it becomes an invoice, and the posting
Stock and lead-time queries Answers sales staff or customers with availability and delivery dates from the ERP Nothing, as long as it only reads and does not commit to dates or prices
Collections follow-up Prepares a summary of overdue invoices per customer and a draft reminder The reminder before it is sent
Master data quality Finds duplicate or incomplete records and suggests fixes Each fix before it is applied

The supplier invoice case is documented too. The Business Central Payables Agent monitors a mailbox for PDF invoices, extracts the data, matches the vendor by VAT registration number or by name and address, suggests GL accounts and creates a draft. After review it can turn the draft into an unposted purchase invoice, but it does not post it. If it has to create a new vendor, the vendor stays blocked until someone reviews it.

Tasks where a mistake is expensive and hard to spot are a poorer fit: approving payments, changing credit terms or editing list prices. The agent can prepare the proposal there, but a person makes the decision.

Which permissions should an agent connected to the ERP have?

An agent connected to the ERP should have the minimum permissions for its task and nothing more, under its own user, and authorisation should be enforced by the ERP. That is what the OWASP Gen AI Security Project recommends for the risk it calls excessive agency: the model being able to cause damage because it has more functionality, permissions or autonomy than it needs.

In practice, an agent’s ERP permissions come down to this:

  1. Its own user. Every record it creates or changes is then attributed to it. In Business Central, every action the agent takes carries its user ID, in the same lists and history as any employee’s.
  2. Only the tables and operations it uses. A sales order agent needs to read customers, items and stock, and create quotes. It does not need to see payroll or change the chart of accounts.
  3. Read separated from write. If part of the agent only looks things up, it uses read-only credentials. OWASP gives the example of granting an extension read-only database credentials when that is all it needs.
  4. Never administrator credentials. In many ERPs an API key gives the same access as the account it belongs to: Odoo’s documentation says so and asks you to store it as carefully as a password. An agent connected with an administrator’s key has all of that administrator’s permissions.
  5. Acting on behalf of the requester, where it applies. If a salesperson asks the agent for something, the agent should not be able to see more than that salesperson can. OWASP recommends running extensions in the user’s context, with narrowly scoped permissions.

Another OWASP recommendation is complete mediation: the ERP checks authorisation on every operation, rather than leaving it to the model. Writing “do not change prices” in the agent’s instructions does little if its user is allowed to change them.

Which operations should a person approve?

A person should approve operations whose effects are hard to undo or that leave the company: posting documents, sending messages to customers or suppliers, creating or changing master data, paying and deleting. Everything else (looking things up and preparing drafts) the agent can do on its own, provided it is logged.

Operation Agent autonomy Reason
Look up stock, customers, orders No approval Nothing changes
Create quotes or drafts No approval, logged A draft has no accounting or planning effect
Send a document to a customer or supplier Prior approval What leaves the company cannot be recalled
Create or change customers, suppliers, items Prior approval or blocked record A master data error spreads to every document
Post invoices or journal entries Done by a person It has accounting and tax effects
Payments and deletions No permissions granted The risk is not worth it

Microsoft’s design follows this logic. The Sales Order Agent always creates a sales quote first, even when the customer asks for an order, because sales quotes have no impact on planning, reservations, availability calculations or cash flow forecasts. It also asks a person to review and approve every outgoing message before sending it.

The Model Context Protocol (MCP) specification, the open standard for connecting models to tools, points the same way: it recommends that there should always be a human in the loop who can deny a tool call, and that users confirm sensitive operations. For operations that already have an approval workflow in the ERP, the simplest approach is for the agent to go through that same workflow, like any other user.

What are the risks of connecting an AI agent to the ERP?

The main risk is the agent doing something nobody wanted: through a misreading, through wrong master data or because external text manipulates it. Minimum permissions and human approval limit the damage in all three cases.

  • Prompt injection. An agent that reads emails and PDFs from customers and suppliers reads text the company does not control. OWASP calls this indirect prompt injection when it arrives through external sources such as websites or files, and recommends restricting the model’s privileges to the minimum and putting human-in-the-loop controls on privileged operations.
  • Poor master data. The agent looks up customers, items and accounts in the ERP. If records are duplicated, lack an email address or have cryptic descriptions, it gets more wrong. Microsoft warns about this for both its agents: the Sales Order Agent only identifies a customer if the sender’s address matches the one on the contact card, and the Payables Agent’s suggestions improve when master data is complete.
  • Mistakes that look right. A wrongly suggested GL account or a similar but different item can get through a quick review. That is why the review should show what data the agent entered and why, and why it pays to track the correction rate during the first weeks.
  • ERP customisations. The custom fields and processes that almost every SME’s ERP has are what a generic agent knows least. Microsoft notes that its agent can use fields added by extensions, but results may vary and need thorough testing.

For more on how an agent works inside and why the tool loop calls for these controls, see what an AI agent is and how it differs from a chatbot.

Should you use the ERP vendor’s agent or a custom one?

If your ERP already ships an agent for the task you want to automate and your process is close to the standard one, start with that agent. A custom agent makes sense when the process is not standard, when the ERP has to be combined with other systems or documents, or when the ERP offers no agents.

Criteria for deciding:

  • Process coverage. Vendor agents cover specific processes with fixed limits. The Sales Order Agent, for instance, works with sales quotes and orders, with item-type lines and, according to Microsoft, supports up to 15 lines per document.
  • Other systems. If the task needs the CRM, the document management system or a carrier platform as well as the ERP, the vendor’s agent usually does not reach that far. A custom agent can combine those sources; if it also has to answer from internal documentation, it is closer to a system that lets AI answer from your company’s documents.
  • Where it runs. Agents built into a cloud ERP use the model and region the vendor chooses. In Business Central, if the environment’s region does not have the Azure model service, the administrator has to allow data to move across geographies. If the data cannot leave, the option is an agent deployed next to the ERP with a model on your own servers.
  • Cost and billing. Vendor agents are paid for under the vendor’s consumption model (Business Central uses Copilot Credits). A custom agent has development and running costs, plus the cost of the model it uses.

The two can be combined: the vendor’s agent for the standard process and a custom one for what falls outside it.

How do you roll out an AI agent in the ERP?

You roll out an AI agent in the ERP with a narrow task, a user with minimum permissions and a phase in which a person reviews everything it does. Autonomy is then extended where the data shows it gets things right.

  1. Pick a task with volume and clear rules, such as orders arriving by email or invoices from regular suppliers.
  2. Check the master data it will use: contact emails, item descriptions, supplier VAT numbers, chart of accounts.
  3. Create the agent’s user with the permissions for that task and no access to anything else.
  4. Start in draft mode: the agent prepares and a person reviews everything, with every step logged.
  5. Measure how many drafts are accepted unchanged, which are corrected and why.
  6. Extend autonomy gradually, only for low-risk operations where the agent is consistently right.

At Referent we build custom AI agents that work with the client’s systems, query the ERP and carry out tasks with scoped permissions. We follow the same method on every project: diagnosis alongside the people who do the work, a first version on real data, and deployment in our cloud, the client’s cloud or on their own servers, with traces of everything the system does.

Frequently asked questions

Can an AI agent post supplier invoices on its own?

Technically yes, if it is given the permissions. It is not a good idea. The agents Microsoft builds into Business Central do not post documents: the Payables Agent leaves the supplier invoice as a draft or an unposted invoice, and a person reviews and posts it. That is a sound rule for any custom agent too.

Do I need to change ERP to use AI agents?

No. A custom agent connects to the ERP you already have through its API or its database, with its own user. What you do need is an ERP that lets you set fine-grained permissions per user, and up-to-date master data (customers, items, accounts), because the agent works from that data.

How can you tell what the agent has done in the ERP?

If the agent has its own user, every record it creates or changes carries that user, just like any employee's. On top of that, keep a log of the tools it called, with which inputs and what the ERP returned, so each task can be reconstructed and anything that went wrong can be fixed.

Can an agent work with an ERP installed on our own servers?

Yes. The agent can be deployed on the same network as the ERP and use a language model running on your own servers, so the data never leaves the organisation. It takes more infrastructure work than calling a model through an API, and it is worth considering when ERP data is not allowed to leave.

Sources

Consulted while writing this article.

  1. Sales Order Agent overview - Business Central. Microsoft Learn.
  2. FAQ for Sales Order Agent - Business Central. Microsoft Learn.
  3. Payables Agent Frequently Asked Questions - Business Central. Microsoft Learn.
  4. LLM06:2025 Excessive Agency. OWASP Gen AI Security Project.
  5. LLM01:2025 Prompt Injection. OWASP Gen AI Security Project.
  6. Tools - Model Context Protocol Specification (2025-06-18). Model Context Protocol.
  7. External API. Odoo.

Want an AI agent to work with your systems?

Tell us which task you want to delegate and which systems it involves. We review it with our engineering team and suggest where to start, with scoped permissions.

Talk to us

Let's talk about your project

Tell us which process you want to improve. We review it with our engineering team and write back to set up a first conversation.

All fields are required.

Controller
REFERENT SOFTWARE SL
Purpose
To answer your enquiry
Legal basis
Your consent
Recipients
We do not share your data with third parties unless required by law
Rights
Access, rectification, erasure, objection, restriction and portability, as explained in the privacy policy