Insights · Applied AI

How to connect an ERP to an AI agent without losing control of the order

Start with a question sales asks every day, and define what data the agent can look up, who sees it and which decision stays in a person’s hands.

By Ignacio da Rosa · Trascend · 4 minutes

A customer asks when their order ships. Sales opens the ERP, checks with the warehouse and writes a reply. Before choosing a model, follow one order from start to finish with the two people involved. Maybe the ERP already has the data and someone just has to look it up. Or maybe the warehouse confirms the shipment in another system. That difference decides what is worth building.

Define the data that makes the answer possible

Write down the order ID, the company it belongs to, the valid statuses, the update time and who owns each status. "Ready for dispatch" and "dispatched" are different answers. If the source only confirms that the order was prepared, the agent must be able to say exactly that.

Test a read-only query first

For example, Odoo 19’s external API applies the permissions of the user making the call. Check that the API is available in your installation and use an integration identity with the minimum scope. Pick a first path: receive the order number, verify the requester’s access and return status, date and source. Keep changes to quantity, price or address for a flow with explicit approval.

Three orders to decide

In a test environment, look up a delivered order, one with a delayed status and one from another account. Expect a backed-up answer for the first, a handoff for the second and no information at all for the third. Keep the expected result next to the one you got.

Test orderWhat the agent must doResult you got
DeliveredAnswer, backed by the source (status, date and source)—
Delayed statusHand off to a person—
From another accountGive no information—

During the pilot, compare the active minutes sales spends on each inquiry, including reviewing exceptions. Move on to more accounts once the team can sustain isolation between customers and status accuracy. If the data arrives late, the first investment belongs to the dispatch record.

What happens if the order changes while the agent is checking it

At ten in the morning, a store orders ten filters. At 10:02, the warehouse records a reservation for another customer. The fact that the agent read ten units when the conversation started is enough to describe a past lookup. To confirm a sale, it needs to know what quantity it can commit at that very moment. In Odoo, each external JSON-2 call runs in its own transaction. If you enable reservations later, ask your implementer to resolve the related operation in a single ERP method, with the business rules sales already uses. Transactions in the Odoo API

Rehearse the scene with two salespeople and a fictitious item. Have one check availability, the other reserve part of the batch, and the first pick up their conversation again. Listen to what the customer might understand when reading the reply. "There were ten units available at ten" and "we’ve reserved ten for you" create different commitments. Write down the approved sentence for each status and hand it to whoever reviews customer service.

How much work sales wins back in a week

Take a sample with a variety of orders and measure separately the time spent finding the data, writing the reply and any follow-up work if the reply had to be corrected. Suppose forty comparable inquiries took four minutes each and, in the test, two minutes each including handoffs. The difference is eighty minutes in that sample. Multiplying it across all customers would require checking that their inquiries are similar.

Example · sales minutes across 40 comparable inquiries
Before · 4 min per inquiry160 min
In the test · 2 min, including handoffs80 min

Illustrative example using the numbers in the text: an 80-minute difference in the sample. Not a real measurement.

When you finish, ask sales what they would use that time for and whether they can really do it. If inquiries arrive as two-minute interruptions, the immediate benefit may be finishing a quote with fewer interruptions. If arguments about what "available" means persist, give the warehouse ownership of the definition before expanding the pilot. Keep the observed time and the agreed rule so you can measure again with the same criteria.

Sources

  1. Odoo · External JSON-2 API · Odoo 19.0

Next step

We start with what takes most of your time.

You’ve seen it working. We show it applied to your business and measure the before and after. If we’re not the best option, we’ll tell you.

Meeting · 30 to 45 min by video call

A call with a Trascend specialist.

You pick the day and time. We show you, working, the first thing we’d do in your business, at no cost.

Assessment · 8 questions

Your direction, ready now.

Answer about your business in 2 minutes and we’ll show you how many hours you lose today and where we’d start.

WhatsApp +598 92 294 239contacto@trascendco.com