Melaya · Build and run AI agents across your business tools, browser, desktop apps and Android phone. Seven connected products on one governed platform: Agents, Assistant, Device Control, Browser Control, Computer Control, MCP Server, and Marketing. Bring your own AI and keep human approval on every consequential action.

Melaya Blog

How to Connect ERP Systems to AI: Steps and Architecture

Connect your ERP to AI through APIs, MCP or browser control, with scoped permissions and human approval. Steps, architecture and a pilot plan.

How to Connect ERP Systems to AI: Steps and Architecture

You connect an ERP to AI in three parts: a governed access path into the ERP (API, MCP server, native connector, or a browser session where no API exists), an orchestration layer that sequences the work, and a human approval gate in front of every write. Pick the model last. We built Melaya as that middle layer: bring your own model (Claude, GPT, Gemini, DeepSeek, Mistral, Qwen, Ollama, LM Studio), connect the tools, and have every consequential action wait for a person to approve it.

This guide covers the architecture, the three connection paths, a step-by-step build, and how to measure a pilot. It is written for operators and builders who need the integration to hold up in production, not just in a demo.

TL;DR

  • Expose ERP data and actions through APIs, an MCP server, or a controlled browser session, and let the AI read through that path only.
  • Put an orchestration layer between the model and the ERP. It pulls data, calls the model, and writes results back through existing action interfaces.
  • Run the AI under the same roles and permissions as a human user, never under an administrator account.
  • Keep every write (post, send, pay, update) behind human approval, and log both the proposal and the override.
  • Start with one workflow and one business unit, set a baseline, and decide to scale, revise or stop from measured results.

What "connecting AI to an ERP" actually means

An ERP holds the operating record of a company: customers, suppliers, orders, invoices, payments, deliveries, contracts and financial postings. SAP describes that data together with the business rules, workflows, approvals, authorizations and audit trails that surround it. A model can reason about that record, but only if it can reach it.

McKinsey frames the connection as two directions. First, expose clean, structured data (orders, inventory, supplier information, production schedules) through standard data services or APIs. Second, give the AI a controlled way to feed decisions back through existing action interfaces or workflow triggers. A model that can only read gives you a chat window. A model that can write without control gives you a risk. The useful system does both, inside limits.

In practice that means four things you need to settle:

  1. Read scope: which records the AI may see.
  2. Write scope: which changes it may propose.
  3. Gate: who approves a proposal before it reaches the ERP.
  4. Record: where the trace of what happened is kept.

The model is the brain. The access path, the permissions and the approval gate are the hands, and they are the part you have to engineer.

Three ways to connect: API, MCP, and the browser

There is no single connector for every ERP. Which path you choose depends on what the system exposes and how much of the workflow lives in its user interface.

Path How it works Best for Watch for
API or native integration The orchestration layer calls the ERP's REST, OData or SOAP endpoints, or a built-in connector Structured reads and writes at volume Rate limits, field mapping, duplicate transactions on retry
MCP server The AI client calls a named tool; the server translates it into an API call under the user's permissions Letting an AI client you already use query the ERP Role scope; tools should never run as an administrator
Browser control An approved AI operates the ERP's web interface the way a person does Modules with no API, vendor portals, legacy screens Session scope, approval on every submit

API and native integrations

This is the default when it is available. Prismetric's guide is not needed to grasp the idea: OData, REST and SOAP interfaces give structured access to approved data and functions, and SAP landscapes can also use RFC, BAPI, IDocs or event-based connections. The integration layer routes requests, maps data, and applies business rules before any ERP action runs. Melaya has native integrations with platforms such as Odoo, so an Odoo-based team starts from a connected system rather than a custom adapter.

MCP: bringing the ERP into the AI client you already use

The Model Context Protocol (MCP) is a standard way for an AI client to call external tools. Oracle's developer team walks through the flow for NetSuite: the client invokes a tool such as getCustomerBalance, the MCP server translates it into a SuiteScript or API call, NetSuite executes it under the user's permissions, and the result returns to the model. Permissions must be explicitly granted, tools cannot run under the Administrator role, and usage is logged.

Those are the right defaults for any ERP, not just NetSuite. The Melaya MCP Server brings Melaya's capabilities into ChatGPT, Claude, Cursor, Codex and other MCP-compatible clients, so the team keeps its preferred interface while the tools and approvals sit in one governed layer.

Browser control for screens without an API

Many ERP deployments have a module, a customized screen or a supplier portal with no usable API. Melaya Browser Control lets an approved AI model operate websites, and it runs behind the same approval model as everything else. If you are weighing it against scripted automation, our comparison of AI browser automation with Selenium and Playwright covers the trade-offs, and the browser agent security guide covers session handling. For desktop ERP clients, Computer Control operates desktop software through the Melaya desktop app.

Build it in seven steps

This sequence follows the planning guidance from McKinsey and SAP, with the points where we do the work for you marked.

1. Start from one workflow, not a tool

McKinsey's authors advise drilling down to the workflow level: work backward from the decision the AI should make, then list the ERP elements it depends on. Those fall into four groups: primary data (materials, plants, customers, suppliers), transactions (orders, deliveries, purchase orders), events (stock changes, delays, confirmations) and configuration or rules (lead times, lot sizes, approval limits).

Four categories of ERP workflow inputs

Example: "flag purchase orders where the supplier confirmation date slips past the need date." Inputs: open purchase orders, supplier confirmations, lead times. Output: a proposed expedite message. One workflow, five fields, one decision.

2. Name the source of truth and check the data

Decide which module owns each field. If vendor names differ between purchasing and accounting, the model will inherit the mess. Fix the three or four fields your workflow depends on before connecting anything.

3. Choose the access path

Use the table above. Prefer an API or native integration for structured work, MCP when users already work in an AI client, and Browser Control for screens with no interface to call. A single workflow can mix them: read through the API, submit through the web form.

4. Define the permission model

Create a dedicated ERP user or role for the AI with the narrowest rights the workflow needs. Sikich's guidance for NetSuite shows the principle: the AI operates under the same roles and permissions as human users, connector changes are logged in system records, and OAuth secures the connection. Melaya adds granular permissions on the tool side, so you can also restrict which tools an agent may call. Our AI agent security best practices lists the controls to set.

5. Build the orchestration

SAP's automation playbook describes the layer you need: it pulls ERP data, sends it to a model or agent, receives the recommendation, and writes the decision back through existing action interfaces or workflow triggers. Tie execution to ERP events (a stock change, a supplier delay) so the agent runs only when something meaningful happens, not on a polling loop that burns tokens.

In Melaya's visual Agent Builder you assemble this as a pipeline: a trigger or schedule, a model of your choice, tools, memory, and an approval step. Multi-agent pipelines let one agent gather data and another draft the proposal. Each run is traceable and replayable, so when a proposal looks wrong you can replay the run and see the inputs. For background on the pattern, see our piece on AI orchestration.

Because Melaya is bring-your-own-model, you can build the workflow against a cloud model, then switch to a local model served through Ollama or LM Studio if the data cannot leave your infrastructure. The tools and workflow stay as they are.

6. Put approval in front of every write

Reads can run freely inside the permission scope. Anything consequential (publishing, sending, paying, writing to a connected app) runs behind human approval in Melaya. The agent prepares the journal entry, the purchase order change or the supplier email; a named person approves, edits or rejects it; and the action then executes through the permitted path. Nothing is posted unsupervised.

Two habits make this gate useful rather than ceremonial:

  • Show the evidence with the proposal. The approver should see the source records the agent used, not just the conclusion.
  • Log overrides. Outsource Accelerator's roadmap notes that a high override rate signals a mismatch between the model's behavior and your policy. Track it from week one.

7. Test against a sandbox, then pilot narrow

Run the workflow against a test environment with representative cases, edge cases and deliberately bad inputs (a duplicate invoice, a missing PO number, a vendor with two tax IDs). Define rollback before go-live: proposals cancelable before execution, a reversal path for anything posted, and the ability to disable one tool without stopping the whole workflow. Then pilot on one business unit or one vendor set.

Melaya's free Sandbox tier is priced at $0 per month, which gives you a place to build and test the pipeline before you pay for anything. See the pricing page for what each plan covers.

Where to start: workflows that fit

Infor lists the common uses of AI in ERP: demand and supply forecasting, anomaly and exception detection in finance, document and invoice extraction, natural-language querying, and agents handling multi-step tasks such as order or replenishment handling. IBM adds robotic process automation for data entry, report generation and file migration.

For a first pilot, choose a workflow with a clear decision, a measurable baseline and a reversible outcome:

  • Accounts payable exceptions. The agent matches invoices to purchase orders and receipts, flags discrepancies, and drafts the correction for approval. Small teams can see how this looks in practice in this guide to AI invoice automation for small businesses.
  • Reconciliation and reporting. Pull ledger and bank data, list mismatches, draft the explanation. Our operations crew is built around reconciliation, incidents and reports.
  • Replenishment alerts. Trigger on a stock-level event, check supplier lead times, draft the purchase order.
  • Natural-language queries. Let a sales or finance user ask for open orders by customer, read-only.

Industry context matters too. Equipment dealers, for example, run quoting, rental, service and parts in one system, and the question there is which ERP deployment approach suits AI; this overview of ERP and AI for equipment dealers frames it from the dealer side.

Three architectures, and which one you are choosing

Most ERP-plus-AI projects fall into one of three types. The first is an AI-native ERP built around AI. The second is an AI-enabled ERP, where the vendor builds AI into existing modules. The third is a bolt-on, where an external AI pulls data through an API, processes it and pushes results back. PwC notes that the large vendors are embedding AI into transactional workflows such as invoice matching and approval routing, and that these capabilities run inside the same governance framework.

Vendor-embedded AI covers what the vendor ships. The bolt-on route covers everything else: cross-system work that spans the ERP, your CRM, a supplier portal and email. PwC describes this orchestration across the ERP and dozens of other systems as one of the three dimensions of change. That is where a provider-independent layer pays off. The same workflow can use different models for different steps, and a model change does not mean rebuilding the integration.

Security: keep the AI inside the ERP's boundaries

The safest design keeps the ERP's own controls in force. Sikich's point is that AI should work within the existing roles and permissions, not around them. Translate that into a checklist:

  • Dedicated service identity per agent, never a shared admin login.
  • Allowlist of tools and, for browser work, of domains.
  • Read-only by default; writes enabled per workflow.
  • Approval on every consequential action.
  • Full execution trace retained for audit.
  • Credentials stored in the platform, not pasted into prompts.

Melaya provides granular permissions, approval controls and execution traces, and its security has been independently audited. For regulated or private environments, the enterprise AI agent platform page describes the provider-independent setup, including local infrastructure.

Measure the pilot

Define the metrics before go-live. SDL Corp's roadmap groups returns into three layers: financial (cost savings, avoided spend), operational (cycle time, throughput, rework) and risk-adjusted (fewer errors and incidents). It recommends baselines, phased-rollout comparisons and one or two pilot use cases in the first 90 days.

A practical scorecard for an AP pilot:

Metric How to capture it Decision rule
Cycle time per invoice ERP timestamps, before vs. pilot Scale if it drops against baseline
Exception rate Count of flagged items per 100 invoices Revise if it climbs
Approval override rate Logged rejections or edits Investigate if high
Duplicate or erroneous postings ERP audit report Stop if above tolerance
Approver minutes per item Sampled time Scale if it falls

It is also worth knowing what published benchmarks claim. A 2026 finance-function analysis cites 70 to 85% straight-through processing as the benchmark for mature AI accounts-payable deployments. Treat that as a reference point for your own baseline, since your invoice mix, data quality and approval policy decide the real number. With Melaya, straight-through still means the approval gate stays in front of consequential writes.

Where Melaya fits and what it costs

Melaya is the tool layer between your model and your ERP: a visual Agent Builder for the pipeline, the Melaya Assistant working across connected business systems, Browser Control for web screens, Mobile Agents for Android apps, Computer Control for desktop software through the Melaya desktop app, and an MCP Server for the AI clients your team already uses. Models are yours to choose.

Published prices, read from our pricing page on 2 November 2026: Sandbox $0 per month, Browser Agents $9.99 per month, Melaya Assistant $9.99 per month, Mobile Agents $9.99 per month, Outpost $20 per month, Forge $49 per month ($469 per year), Bastion $129 per month ($1,239 per year), and Citadel from $490 per month. Compare them on the pricing page, where you can start with the free Sandbox and move up as the pilot proves out.

Melaya

If your workflow spans several systems, the Melaya Assistant and Agent Builder keep one trace across all of them, so you audit one run instead of stitching logs from five tools.

Our perspective

Most failed ERP-AI projects we hear described fail at the same point: the model works, and the plumbing around it does not. Access is too broad, nobody owns the approval, and a model change forces a rebuild.

We design for the opposite. Your AI is the brain, Melaya is the controlled pair of hands. The model is whichever you choose, cloud or local. The hands are scoped by permissions, limited by allowlists, and stopped by a human approval before anything is published, sent, paid or written to a connected app.

That separation is why we think a provider-independent layer beats a model-specific connector for ERP work. ERP data outlives any model generation. Your workflows, permissions and traces should too, and you should be able to replay any run to see exactly what the agent read and proposed.

Start with one workflow, one unit, one metric. Put it behind approval. Let the trace tell you when to widen the scope.

Melaya Team

FAQ

Can I connect an ERP to AI if it has no API?

Yes. Browser Control lets an approved AI model operate the ERP's web interface, and Computer Control handles desktop clients through the Melaya desktop app. Submissions still run behind human approval, and you should scope the session to the one account and pages the workflow needs.

Do I need a specific AI model to connect my ERP?

No. Melaya is bring-your-own-model and works with any cloud or local model, including Claude, GPT, Gemini, DeepSeek, Mistral, Qwen, Ollama and LM Studio. Melaya does not sell or require its own model for agents, so you can change models without rebuilding the tools.

Can the AI post or pay without a person approving?

Not in Melaya. Every consequential action, including publishing, sending, paying and writing to connected apps, runs behind human approval. Reads inside the permission scope can run on their own, and each run leaves an execution trace.

How long should a first ERP-AI pilot take?

Plan roughly 90 days for one or two pilot use cases, in line with common enterprise roadmap guidance. Spend the first weeks on data and permissions, then test in a sandbox, then run a live pilot on one unit with a baseline.

Sources

Recommended

Frequently asked questions

Can I connect an ERP to AI if it has no API?

Yes. Browser Control lets an approved AI model operate the ERP's web interface, and Computer Control handles desktop clients through the Melaya desktop app. Submissions still run behind human approval, and you should scope the session to the one account and pages the workflow needs.

Do I need a specific AI model to connect my ERP?

No. Melaya is bring-your-own-model and works with any cloud or local model, including Claude, GPT, Gemini, DeepSeek, Mistral, Qwen, Ollama and LM Studio. Melaya does not sell or require its own model for agents, so you can change models without rebuilding the tools.

Can the AI post or pay without a person approving?

Not in Melaya. Every consequential action, including publishing, sending, paying and writing to connected apps, runs behind human approval. Reads inside the permission scope can run on their own, and each run leaves an execution trace.

How long should a first ERP-AI pilot take?

Plan roughly 90 days for one or two pilot use cases, in line with common enterprise roadmap guidance. Spend the first weeks on data and permissions, then test in a sandbox, then run a live pilot on one unit with a baseline.