Back to blog
GENERAL3 min readOscar Rovira

Automating orders that arrive by email: how it works, step by step

From receiving the email to creating the order in the ERP: data extraction, validation of customer, prices and stock, exceptions routed to a person and confirmation to the customer.

  • Orders
  • ERP
  • Automation

Orders in formats nobody has standardised

Many manufacturers and distributors receive part of their orders by email. Each customer sends them in their own way: a PDF generated by their own ERP, a spreadsheet, a photograph of a note or simply text in the body of the message. Someone on the team reads them, looks up the customer, checks prices and availability and keys them into the ERP by hand. It is repetitive work, exposed to transcription errors, and it depends on who is in that day.

An AI agent can take over this whole circuit, as long as the process is well defined and doubtful cases reach a person.

Step one: intake

A dedicated mailbox receives the emails. The agent identifies the sender, stores the original message with its attachments and opens a tracking record. Nothing is deleted: the original is always available for review.

Step two: data extraction

The agent reads the PDF or the body of the email and extracts the structured data: customer, order reference, lines with item code, quantity and unit, requested delivery date and shipping address. Current models handle a wide variety of formats well, but extraction should be treated as a proposal pending validation, not as confirmed data.

Step three: validation against the ERP

This is the step that determines the quality of the process. The agent queries the ERP and checks:

  • That the customer exists and that the sender is authorised to buy on their behalf.
  • That the item codes are valid and, if the customer uses their own codes, that a defined equivalence exists.
  • That the price matches the price list or agreement in force for that customer.
  • That there is stock, or that the requested delivery date can be met.
  • That there are no blocks, such as a credit risk or a duplicate order.

Step four: creation in the ERP

If all the validations pass, the agent creates the order in the ERP through a defined writeback point and records what it created and from which email. During the first weeks it is advisable to leave the order in draft status so that a person confirms it, and to move to direct creation only when the results support it.

Step five: exceptions routed to a person

When a validation fails or the extraction is doubtful, the agent does not force the order or assume anything. It routes the case to the right person with the original email, the extracted data, what does not match and a proposed resolution. Exceptions also provide useful information: they show where the master data has gaps and which customers send difficult formats.

Step six: confirmation to the customer

Once the order is created, the customer receives a confirmation with the reference, the lines, the prices and the expected date. If there is a problem, the email asks for the specific clarification instead of sending a generic reply.

What to check before starting

  • The quality of the master data: customers, items, code equivalences and price lists. The agent can only validate against reliable data.
  • Whether there is a real sample of emails covering all formats and unusual cases, so the pilot runs on real orders.
  • Which rules the team applies implicitly today, such as customers with special terms.
  • Which ERP access is possible and which writes are necessary.
  • Who receives the exceptions and within what time they must be resolved.
  • How the pilot will be measured: orders processed without intervention, exceptions and errors detected.

If you would like to explain how orders reach your company and how the team processes them, we can analyse the process together and see where it makes sense to start.

Which process do you want to automate?

Tell us which process you want to improve and we will send you a concrete proposal.

Let's talk