“Can we ask ChatGPT what customers owe us?” sounds like a connection problem. In practice, it is also a reporting-definition, permission and deployment problem. A technically successful connection can still return the wrong balance or reveal customers a user should not see.
You can connect a legacy ERP to ChatGPT when a supported connection method, suitable account permissions and a controlled route to ERP information are available. Existing ERP APIs can be used where appropriate. When they are missing or incomplete, an authorised database integration may be assessed for selected reporting capabilities.
The useful outcome is a manager obtaining an approved, explainable answer. A login screen showing a connected tool is only an intermediate milestone.
What needs to exist before you connect the ERP?
There are three separate requirements: a reliable business data source, an integration service that enforces rules and permissions, and an assistant environment authorised to use that service.
Do not put ERP database credentials in a conversation. The assistant should call an approved capability; infrastructure credentials belong in the controlled integration environment.
Check the current account and workspace requirements before planning a rollout. OpenAI's guidance on custom MCP servers in ChatGPT describes supported workspace connections and administration. Availability and connection settings can change, so confirm the selected plan and policy during discovery rather than promising identical access for every user.
An ERP user's application permission does not automatically become the integration's permission. Work out explicitly how the caller is identified and how the reporting service derives the permitted companies, branches and fields.
Step 1: choose one question with a known answer
Start with a question such as “What was posted net sales for Branch A last month?” Avoid beginning with “How is the whole business doing?” because its scope and expected answer are difficult to test.
Record the accepted report, date range, currency and calculation owner. Define what happens when the period is open and transactions are still changing.
For customer balances, decide how unapplied receipts, credit notes, disputed invoices and cross-company accounts are handled. A balance at today's date and a balance at month-end can both be valid while answering different questions.
This preparation becomes the test specification. It also gives users a clear reason to trust the eventual response.
Step 2: select the authorised data route
Review available APIs and reporting interfaces before introducing a new one. If the ERP's API already provides the approved calculation and permission model, retaining it may simplify the work.
For missing reporting endpoints, assess whether a database connection, a reporting replica or a controlled export can produce the required answer. Read-only reporting may be feasible without modifying the existing application, but that conclusion needs evidence from the actual environment.
Use the guide to AI integration without APIs to compare these routes. Database access is not a shortcut around source-system ownership or contractual restrictions.
Step 3: expose a business tool with a clear contract
For an illustrative customer-balance tool, define a small set of accepted parameters: reporting date, an authorised company and an optional customer filter. Reject invalid dates and derive access scope on the server.
| Contract element | Example decision |
|---|---|
| Business definition | Posted receivables less allocated receipts and approved credits |
| Permitted scope | Companies and customers authorised for the caller |
| Output | Balance, currency, reporting date and unresolved exclusions |
| Limits | Bounded period, result size and query duration |
| Failure | Explain unavailable data without inventing an amount |
The output should be useful before an AI model writes a sentence about it. Return structured values and context rather than an unexplained block of rows.
Step 4: test the answer and the refusals
Check familiar questions, ambiguous questions and questions the user must not be able to answer. A finance manager and a regional sales manager may legitimately receive different results.
Test attempts to name another company, widen the reporting period or request personal details outside the tool's purpose. Also check empty periods, duplicate customer names and a temporary database outage.
Compare the returned data with an independently prepared result. Then review the assistant's explanation: it should retain the currency, period, exclusions and freshness rather than presenting a partial result as a company-wide total.
The secure AI access guide provides a fuller permission and logging review.
Step 5: agree how the connection will operate
Define who maintains authentication, reviews access and responds when a query fails. Decide how changes to ERP tables, calculations or workspace settings trigger retesting.
Deployment inside a customer's network does not by itself establish that all information remains there. Map which results reach the selected AI service and review the provider configuration, retention arrangements and organisation's data policy.
Keep write capabilities out of the initial reporting scope unless they have been separately designed and approved. Producing a customer-balance answer and changing a customer's credit limit involve very different business consequences.
What should you bring to a discovery call?
Bring the ERP name and version if known, available interface documentation, database details, two sample reports and the roles that should access them. Do not send production credentials or unnecessary customer records as part of an initial enquiry.
Tranz's Legacy AI Integration service can assess the data route and business capabilities before you commit to a ChatGPT integration. Start with the reporting question, then establish the connection that can answer it responsibly.
Discover what AI can do with your existing software.
Bring one reporting challenge and assess the data access, business rules and security requirements.
Discuss your project ↗