Washington Viana

Washington Viana

AI Automation in ERP: From Report to Action Button

AI Automation in ERP: From Report to Action Button

04 de December de 2026 Washington Viana

How to move from BI that only shows the problem to agents that execute tasks within the ERP, with guardrails, human approval, and KPIs that measure avoided rework, not dashboard vanity.

A controller showed me the dashboard last week. One hundred percent of overdue invoices were there, in red, updated every five minutes. I asked who was acting on them. No one. The report had existed for eight months and the delinquency rate hadn't changed a tenth. The team knew about the problem with second-level precision and still hadn't solved it.

This is where most AI projects in ERP get stuck. The company invested in a semantic layer, connected Power BI to SAP, built a data lake. Everything works. And nothing happens. The report became part of the landscape. What's missing isn't more analysis, it's the last mile: turning the finding into a task executed within the system, with a record, an owner, and possible reversal.

Where your team actually stands

I usually classify maturity into three levels, and most Brazilian companies are stuck at the first.

At the analysis level, AI reads the ERP and answers questions. How much did we sell in the South region this quarter. Which customer delayed payment. It's BI with natural language. Useful for the board, but it doesn't change operations.

At the recommendation level, the system suggests the action. This order should be blocked. This invoice has a CST discrepancy. This supplier has an average lead time above the contract. The recommendation reaches the analyst, who decides and executes. There's already gain here, but the bottleneck becomes the approval queue.

At the autonomous execution level, the agent acts within the ERP for a defined scope. It blocks the order, opens the incident, triggers collection, updates the record. With an audit trail and value limit. This is where ROI truly appears. And where risk also appears, so this level requires engineering, not enthusiasm.

Cases that pay for themselves quickly

I prioritize cases by the criteria of high volume, clear rule, and cheap error. If the wrong action is costly and irreversible, start elsewhere.

In finance, collecting overdue invoices is the most obvious case. The agent reads the ERP aging, identifies the invoice, checks the relationship history, chooses the channel, sends the collection message, and records the payment promise. If the customer is strategic or the amount exceeds a limit, it stops and requests human approval. The gain isn't in writing a better email. It's in collecting the 4,000 invoices no one had the bandwidth to collect.

In procurement, the agent monitors delayed purchase orders, contacts the supplier, updates the expected date in the ERP, and alerts the requester when the delay compromises production. Simple rule, data that already exists, rework that disappears.

In tax, invoice reconciliation and handling SEFAZ rejections is where I see the most lost hours. The agent reads the rejection return, classifies the reason, corrects what is standardizable (NCM, CST, CFOP), and resubmits. What falls outside the standard goes to the human queue with context already assembled. Tax teams spend part of the day on repeated errors. This is process automation, not science fiction.

Guardrails before the first button

Before letting any agent write to the ERP, three things must exist.

The first is minimum permission scope. The agent is not an admin user. It has its own profile, with access only to the transactions it needs, and that permission is auditable. If you can't answer in five minutes what the agent can do, it's not ready for production.

The second is human approval by exception, not by default. Approving everything kills the gain. The right design is: the agent executes the routine case and escalates what falls outside the rule. Value limit, customer on the red list, discrepancy above X percent. The human decides on what matters.

The third is an audit trail with reversal. Every agent action must generate a record: what it read, what it decided, which transaction it executed, what the result was. And it must be reversible within a window. If the agent blocked a wrong order, someone undoes it in minutes, not days.

I've seen a project die because the agent ran on an API without idempotency. A timeout became a duplicate order, and the team lost trust in the system for six months. Test the failure path before the happy path.

What to measure to know if it worked

An AI usage dashboard doesn't pay bills. What matters is rework avoided and time freed.

I track four numbers. Execution rate without human intervention, which shows whether the agent is solving or just creating a queue. Average process resolution time before and after, measured in the ERP, not in the vendor's report. Percentage of reversed actions, which is the quality thermometer of the decision. And cost per transaction executed, summing inference, integration, and operation, compared to the human cost of the same task.

If cost per transaction doesn't drop and rework doesn't decrease, the project is an expensive demonstration with a pretty interface. Cut it or redo the scope.

A detail I learned in practice: start with one process, one ERP, one module. A team that tries to connect an agent to five systems at once delivers five proofs of concept and no production. Architectural simplicity beats an inflated stack, always.

The report the controller showed me is still red. But now there's an agent collecting low-value invoices and an analyst handling the strategic ones. Delinquency dropped the following month. It wasn't AI that solved it. It was the decision to leave the dashboard and press the button.

Which process in your operation has high volume, clear rules, and reversible errors enough to become the first agent in production?

Sources