Challenge: orders arrive in every form and are entered into the system by hand
A wholesale distribution company (illustrative example) serves several hundred regular customers: shops, workshops, and contractors. Orders arrive mainly by email – as the body of a message, a PDF file, a spreadsheet, or a photo of a handwritten list. There are several dozen of them every day. The order desk opens each message, finds the customer in the ERP system, matches products described in words to catalog item numbers, checks prices and availability, retypes the line items into an order document, and finally sends the customer a confirmation. When something is missing, the team calls the sales rep or the customer.
This process had three recurring problems:
- Manually retyping line items takes most of the day, and a mistake in an item number or quantity comes to light only at picking or once the goods reach the customer.
- Morning and afternoon orders are handled at different speeds, so the customer does not know when the confirmation will arrive.
- Discrepancies – a price different from the price list, an unknown product, an exceeded credit limit – are caught by chance, because nobody has time to compare every line.
Solution: from a message in the inbox to a confirmed order in the ERP system
The n8n automation takes over reading, matching, and checking the order, and leaves to a human the cases that require a decision.
- Receiving the order – n8n monitors the shared orders mailbox via an IMAP trigger and pulls the message along with its attachments. PDF files and spreadsheets are converted to text, and photos go to OCR (text recognition from an image).
- Data extraction by an AI model – an information extraction node turns the content into an organized set of fields according to a defined schema: customer, customer order number, line items with description and quantity, date, and delivery address. The model makes no decisions, it only organizes data.
- Matching to the catalog and the customer – through the ERP system's API, the automation finds the customer record by sender address or tax ID (NIP) and matches product descriptions to item numbers, also using that customer's order history. Each line is tagged as either "confident match" or "needs checking".
- Rule check – the system compares prices with the customer's price list and checks stock levels and the credit limit. The team sets the rules, e.g. "an order with no discrepancies and within the limit moves on, every other one waits for approval".
- Approval and saving – an order with no concerns is saved in the ERP system as a document to approve with one click. An order with discrepancies goes to the account manager via a messaging app or by email with a list of concerns, and the flow waits for their reply.
- Confirmation for the customer – after approval, the customer receives an email with the list of items, the fulfillment date, and information about any shortages. Everything is recorded in the order history, so you can see who changed what.
Sample timeline: 7 weeks from project to a working process
- Weeks 1–2 – audit and process mapping: a review of a sample of orders from different channels, a list of formats, rules, and exceptions, and measuring the starting point,
- Week 3 – integrations: connecting the mailbox, the ERP system, and the messaging app, and setting permissions and the scope of data,
- Weeks 4–5 – extraction and matching: the data schema, a dictionary of product names, and rules for checking prices, stock, and limits,
- Week 6 – approval and confirmation path: messages for account managers, templates for customers, and a change log,
- Week 7 – tests on a subset of orders, team training, and full rollout.
What results to expect
Specific numbers depend on the starting point, so before rollout we measure the time from receiving an order to sending the confirmation, the number of order corrections after picking, and the share of orders that require contact with the customer, and after rollout we compare the same indicators.
The direction of change is usually this:
- Confirmation time: from several hours to a dozen or so minutes – the order is read and checked before anyone opens the mailbox.
- Retyping data: from manually entering every line to checking exceptions – the team deals only with what the system flagged.
- Discrepancies: from chance catches to constant checking – every line is compared with the price list, stock, and limit.
- Knowledge about customers: from the memory of individual people to a shared dictionary – matches approved by the team stay in the system.
Where a human decides
An order with a discrepancy never goes to fulfillment without the account manager's approval. The manager decides whether to accept a different price, propose a substitute, or release the order despite an exceeded limit – and the message shows right away what the concern is about and which order it comes from. The check rules are set by the sales manager and the finance department, and changing a threshold does not require rebuilding the process. If the system matched a product wrongly, the account manager fixes the line by picking the right product from a list, and the fix goes into the dictionary for future orders. The team does not lose contact with customers: instead of retyping, it has time to talk about substitutes and deliveries.
Takeaways
Order automation does not replace the order desk – it takes the retyping and comparing off its plate, the most repetitive and error-prone part of the work. The biggest effect comes from three elements: organized reading of orders from different formats, clear check rules set by the team, and a fast approval path for exceptions, in which the decision stays with a human.
If in your company orders arrive in several formats, and entering them into the system takes the team most of the day, that is usually the first sign it is worth starting with an audit of the current process.