Field notesGuideDistribution

B2B order management: from orders to management decisions

A distributor’s margin is shaped along the whole chain: orders, warehouse, fulfillment, delivery and management. Connecting these steps gives AI a useful role too.

Reading time
15 min
Updated
November 18, 2026
Author
Michael Xenakis

The sales rep collects the request, the office enters it, the warehouse prepares the packages, the driver delivers and accounts closes the paperwork. At each step, someone reads the same order again. An ambiguous quantity becomes a phone call; an unavailable item becomes a lost line; a reservation on the delivery note becomes a case to follow up.

Via Foundry starts with strategy: where margin is being lost and which step deserves attention. It then defines the process, connects software and data, and adds AI where a request needs interpreting or an action needs proposing. That is the order of the work, on the systems you already have.

This guide follows a distributor’s flow, including food and Ho.Re.Ca. businesses with sales reps, a warehouse and their own vans. Each block describes the problem, the system to build and the KPI to measure. The system already built covers the first stretch of the journey.

Orders: from the customer’s request to a prepared order

B2B order management begins with the customer’s words. The goal is to produce lines that sales, warehouse staff and the ERP can all read: the same item, the same quantity and the same delivery promise.

Orders through WhatsApp, voice messages, lists and email

Today
A rep sends a voice message, a customer photographs a list and another replies to an old email. Quantities, addresses and requested dates are scattered across messages. The office reconstructs the request and goes back to the rep for clarification.
The system
Collects content from agreed channels, identifies the customer, items and quantities, and prepares a single draft. It keeps the original message beside the lines. If “two” could mean pieces or cartons, it asks for confirmation before proceeding.
The KPI
Minutes from receipt to confirmation; clarification requests per order; lines corrected after confirmation.

The catalog in the customer’s words

Today
The customer asks for “the burrata for pizza”; the price list says “BURR 125 X8”. An experienced rep remembers the code. A new colleague scrolls through the catalog and calls someone who knows the products better.
The system
Searches by meaning and shows a shortlist with pack size, use and verified specifications. Customer history gives context to phrases such as “the one from last time”. The rep sees why a product appears and chooses the correct code.
The KPI
Time to find an item; searches with no result; product codes corrected after submission.

Alternatives and upsells when a product is missing

Today
An unavailable item leaves a gap in the order. The alternative depends on the rep’s memory; a different pack size can change price, yield and portion count. The suggestion arrives when the customer is already looking elsewhere.
The system
Combines current availability, characteristics and the customer’s price list. It suggests equivalents to assess, a larger format where suitable and complementary products: upselling and cross-selling with a specific reason. The rep checks differences and value, then presents the suggestion to the customer.
The KPI
Recovered lines as a share of lines at risk; suggestions accepted; margin on alternatives sold, alongside subsequent returns.

Entering orders in the ERP

Today
The prepared order still passes through a different entry screen. The office checks the customer, price list, credit limit and address. Sending the same message twice can create a duplicate; a late change may refer to an earlier version.
The system
Sends the confirmed order through ERP interfaces or import files. It assigns a unique reference, checks the result and shows accepted lines or those requiring correction. Only after the ERP confirms does the order move to the required warehouse status.
The KPI
Time from confirmation to recording; duplicate orders; imports requiring correction; orders recorded on the first attempt.

Warehouse: availability, reservations and expiry dates

Stock on hand shows how much is there; availability also accounts for commitments already made. Sales and warehouse staff must see the same situation, with the last update time visible.

Spotting stockouts before promising delivery

Today
Two reps offer the last available goods. An expected arrival is treated as stock ready to ship. The warehouse discovers the conflict while picking, after delivery has already been promised.
The system
Reads stock on hand, reserved quantities and expected arrivals, keeping the three values separate. It applies agreed rules to reserve goods and release them after cancellation. Before confirmation, it flags availability and a reliable date, leaving priority decisions to the office.
The KPI
Lines confirmed but subsequently missing; differences between recorded and physical stock; orders waiting for availability.

The order reaches the people who prepare it

Today
The warehouse receives a printout, then a call to add a package. An urgent order stays in the office inbox. The warehouse manager reconstructs priorities from sales requests.
The system
Places confirmed orders in the ERP or WMS work queue. A WMS is the software that manages warehouse activities. Every change has a version and an owner. Departure time, area and goods status make priorities clear.
The KPI
Time from recording to acceptance by the warehouse; orders waiting beyond the agreed time; changes received during preparation.

Batches and expiry dates in food distribution

Today
Two batches of the same item have different expiry dates. The customer requires a specific remaining shelf life. Choosing the package depends on the picker’s experience and may lead to a return at delivery.
The system
Connects batch, expiry and customer requirements to the line being picked. The picking suggestion prioritizes the nearest expiry compatible with those requirements. Picking confirmation records the actual batch, which stays linked to delivery documents.
The KPI
Returns due to expiry; value of expired goods; lines with correctly recorded batches as a share of all lines requiring traceability.

Fulfillment: from the picking list to ready packages

Fulfillment is where a promise becomes prepared goods. Here it matters to distinguish what was requested, found, changed and loaded.

A picking list that follows preparation

Today
The picking list contains items and quantities, while locations and pack sizes rely on memory. A pack is read as a single piece. At the end of preparation, the office tries to work out what is ready.
The system
The picking list shows location, sales unit and quantity. Pickers confirm lines on the available device. Where present, the WMS retains control of movements; updated status reaches the office and delivery planning.
The KPI
Minutes per prepared order; item or quantity errors; prepared lines compared with lines scheduled for departure.

Missing lines and changes before the van leaves

Today
A product listed as in stock is missing from the shelf, or a pack is damaged. The picker tells someone; the line stays unresolved. The customer discovers the partial delivery when opening the packages.
The system
The report opens a request for the rep or office, with available alternatives and differences in pack size and price. The customer receives the proposal before departure. Approval updates the order and picking list; every change preserves the original line and reason.
The KPI
Missing lines communicated before departure; response time to the proposal; delivered lines compared with ordered lines.

Distribution and delivery: from loading to the delivery note

For businesses using their own vehicles, the flow continues in the van. Information gathered at the customer’s door must return to sales, the warehouse and accounts.

Delivery planning and loading order

Today
Routes are prepared in Excel and updated by phone. Customer opening hours, vehicle capacity, access instructions and prepared goods are in different places. At the first address, the goods to unload are behind the other packages.
The system
Connects ready orders to the existing operating sheet or route planner. Hours, capacity, areas and goods constraints guide the suggested route. The planner approves it; stop sequence guides loading and subsequent changes remain visible.
The KPI
Orders assigned to a route before the cutoff; changes after the cutoff; kilometers per completed delivery; unloading time.

Driver notes become part of the customer record

Today
“Use the back entrance”, “receives after ten”, “call the manager before arrival”: useful details stay in the driver’s head or in a chat. A colleague covering the route must discover them again.
The system
The driver leaves a voice note linked to the delivery. AI prepares a customer record update, distinguishing a request for today from a standing instruction. The office approves; reps and the planner then see the same instruction.
The KPI
Repeat delivery attempts due to access problems; time from note to approval; records with updated delivery instructions.

A delivery note signed with reservations: credit note or replacement

Today
A package is missing, a pack comes back, or the customer signs with reservations. The delivery note, or DDT, reaches the office after the route. Accounts and the rep must link the annotation to the order and agree what to do.
The system
Captures the signed document, keeps the image and suggests an interpretation of the reservation. The case reaches the decision maker with lines and delivery linked. Accounts checks the credit note; the rep agrees any replacement. Every case has an owner, deadline and status.
The KPI
Days from reservation to closure; overdue open cases; replacements delivered; repeated disputes on the same item.

“What time will you arrive?” gets an answer from the route

Today
The customer calls the office; the office calls the driver. Between traffic, unloading and route changes, the time communicated may already be out of date. Calls interrupt both.
The system
Reads the updated route and completed deliveries, then prepares a time window with the last update time. The office can communicate it or approve a message. A significant delay opens an alert for the route manager.
The KPI
Calls about arrival times; deliveries within the communicated window; difference between expected and actual arrival.

Management: margin and priorities from the same chain

Management reads commercial and operational results together. An order can generate good revenue and still require two deliveries, a return and many calls: margin needs to be read alongside those steps.

Margin by customer and product, including service costs

Today
Sales, discounts, purchase costs and credit notes are in separate exports. The cost of serving a customer remains a feeling. Revenue growth can hide more deliveries and returns.
The system
Connects orders, invoices, returns and routes through common codes. It shows commercial margin by customer and product and, separately, service costs allocated using agreed criteria. It suggests reviewing frequency, minimum order or terms; management assesses and decides.
The KPI
Margin by customer and product; cost per delivery; returns as a share of sales; share of service costs attributable using verified data.

Customers ordering less and lost lines

Today
The monthly total hides a customer ordering less often or abandoning a category. Lines lost through unavailability disappear among changes. The rep sees the decline after the relationship has already cooled.
The system
Compares frequency, categories and quantities with history and seasonality. It places the decline alongside missing lines, returns and delays as points to investigate. It suggests a call to the rep with details of the affected orders; the conversation establishes the cause.
The KPI
Declining customers contacted; lost lines by reason; reorder frequency after contact; margin on subsequent orders.

KPIs from all five stages in one view

Today
Each department prepares its own summary. “Complete order” means different things to sales and warehouse staff. Understanding a delay requires several sheets and several people.
The system
Brings together confirmation times, availability, picking completeness, punctuality and margin. Each indicator lets you open its underlying orders. Exceptions become assigned actions: check an item, call a customer, review a route. The responsible person decides the priority.
The KPI
Actions closed by the agreed date; time from alert to decision; data completeness and freshness for each stage.

The data underneath the flow

AI for distributors starts with identifiable products, customers and orders. A stable code connects the request to delivery; complete data makes it possible to find an item and explain a proposal.

Enriching product records

Enrichment means adding useful information: category, format, packaging, use, characteristics and approved equivalents. It starts with supplier specifications and commercial knowledge. AI suggests attributes; a person checks them against sources before making them available to sales.

For “BURR 125 X8”, pack size is checked against the specification. The use “for pizza” requires confirmation appropriate to the product. An equivalent must meet customer requirements: composition, format and storage conditions matter as much as a similar name.

Embeddings and vectors for products and customer history

An embedding represents text as a list of numbers called a vector. Texts with similar meanings tend to have nearby vectors. This is one way to search for “the burrata for pizza” among records using different words.

Vectors can be created from enriched records and descriptions of past purchases linked to the authorized customer. History steers search toward familiar tastes and uses. Quantities, prices, availability and dates remain precise data read from their respective current sources.

Semantic search in the catalog

Semantic search compares the meaning of the request with that of the records. It combines this similarity with exact codes, pack-size filters and availability. It returns candidates to verify: “BURR 125 X8” appears with description, packaging and the reason for the match.

To measure it, collect real requests from reps and the correct items. Check how often the suitable product appears among the first results. Searches with no result point to attributes to add or customer wording to clarify.

RAG: answers built on sources

RAG means retrieval-augmented generation: relevant information is retrieved first, then AI prepares an answer using that material. For a sales proposal, it retrieves product records, terms and permitted history. The answer shows references that let the rep verify it.

Search finds the documents; generation uses them to explain the suggestion. Source, date and item code accompany the answer. Missing data opens a verification request for the appropriate person.

Human approval and the ERP connection

Human-in-the-loop means a person participates in the decision: confirming an ambiguous order, approving an equivalent or checking a reservation on a delivery note. The system presents the suggestion, sources and differences; it records approval and version. Decision makers see the context needed for their role.

Connecting AI to an ERP requires checking its version, modules and available access, whether it is TeamSystem, Zucchetti, Mexal or SAP Business One (SAP B1). APIs, meaning software interfaces, or import files carry data in the required formats. Outcomes and duplicates are checked on every submission.

Data quality and ownership come first: unique codes, consistent units of measure, current price lists, permissions and a person responsible for each set of master records. Fixed rules govern calculations and checks; AI reads language and documents and prepares suggestions for approval.

The system for finding products in the catalog

At a food distributor, reps were spending too much time entering orders and the old software was awkward to use. Via Foundry built a system that helps reps find products in the catalog, with four functions:

  • Order collection in the form supplied by the rep.
  • Catalog data enrichment, with more attributes for each product, also useful for creating vectors later.
  • Searching the whole catalog in the customer’s words, even when they differ from the item’s name.
  • Alternatives shown to the customer, who decides whether to add them and sets quantities.

The customer chooses products, sets quantities and confirms lines. The availability shown is for demonstration and is not connected to warehouse stock. The system does not write to the ERP; learning from new expressions is planned, with data review. Connecting warehouse operations, fulfillment, delivery and management remains a subsequent step in the journey described in this guide.

How to start

Start with a prototype or an audit; fees are then tied to results.

The audit follows a few orders from request to closure, identifies the step weighing most heavily on margin and chooses a stage to address. The prototype tests that step using the company’s catalog, rules and data.

First define an owner, baseline and KPI: for example, minutes from receipt to confirmation, or missing lines communicated before departure. The comparison uses comparable periods and orders. After verification in the field, the connection extends to the next stage.

Michael Xenakis handles strategy and build and answers for the result. About Michael →

Frequently asked questions

Do we need to replace the ERP?

The project starts with your existing ERP. Access, data and exchange formats are checked; the ERP remains the operational record of orders, movements and documents.

Do sales reps need to learn complicated software?

The interface follows their work: write or dictate the request, choose the item, confirm quantity and customer. The system that was built follows these actions for people collecting orders.

How are WhatsApp orders handled?

The project defines how messages, voice notes and attachments are collected from business channels. Each piece of content stays linked to the draft; the rep or office confirms lines before the next step.

Does it suit businesses delivering with their own vans?

The flow includes routes, loading order, customer instructions and delivery notes signed with reservations. It starts with the existing sheet or planner and the data available to connect it to orders.

What does it cost and how is the work measured?

Start with a prototype or an audit; fees are then tied to results. Scope, baseline data and KPIs are agreed at the start, with a person responsible for verification.

Let’s talk. From order to delivery.

Tell me where your flow stops today: that is where we choose the first step to work on. Write to me.