trike_dev
← All articles

A buyer changed an order. What should the AI change?

Distinguish a new order from an amendment and check the order version before applying the same change twice.

Trike checks a component against its specifications

“On yesterday’s order, leave six and cancel the rest.” One buyer may have placed two orders yesterday. Either order could contain several lines. An assistant that picks the latest order and overwrites the first quantity can turn an ambiguous email into a very specific warehouse mistake.

Identify the order and the line

Suppose order 47 contains ten cartons of filters and two pumps. A purchase order number in the subject, a quoted line or a reference to the original quotation helps identify the transaction. A matching sender address alone is weak evidence. The same purchasing agent may order for several sites. Give the rep both candidate orders, their dates and the matching references if the evidence is inconclusive.

Even after locating order 47, “the rest” has two plausible meanings. Ask: “Shall we reduce the filters to six cartons and keep both pumps?” That one question settles the fate of two separate lines.

Draft an amendment against a specific revision

Show the before and after values: filters, ten cartons → six cartons. Leave the pumps pending clarification. Keep the source message and the revision used to prepare the amendment. If the mail server delivers the same message twice, the second copy should never deduct another four cartons.

Recheck fulfilment before applying the change. The warehouse may have picked eight cartons while the rep was waiting for confirmation. Route that exception to the warehouse. If the smaller quantity also changes a price break, show the revised total to the buyer and keep the previously issued quote available.

An acceptance test you can run with the warehouse

Receive the first email, deliver a duplicate, record a partial shipment, then approve the amendment. Inspect the number of orders, the reserved quantity and the total visible to the buyer. Send a second email that says “Actually, add two cartons back” and check which revision it is applied to.

The final order history should let another rep reconstruct the request without asking the person who handled it. They need to see what the buyer wrote, which revision was current, who approved the edit and which goods had already left the building.