Calculadora COMEX Perú

Home / Supply chain, technology and AI / Module 4

4.2 Logistics diagnosis with conversational AI

Use a chat assistant as an interviewer: map your operation, choose indicators, propose causes and prioritize improvements. AI organizes the work; your data decides which problem to tackle first.

Module 4: AI applied to logistics, no coding needed · Reviewed on 12/10/2026 · Español

Goal: Use AI as an interviewer to diagnose an operation, calculate OTIF and decide which cause to tackle first based on your data.

A logistics diagnosis is an orderly review of how product and information flow, from the moment you order from the supplier until the customer receives the goods. It looks for three things: measure where you stand, find the cause of the problems and decide what to improve first. A conversational AI is an assistant you talk to in a chat. It does not see your warehouse or your trucks: it only knows what you tell it. Even so, it is very useful for structuring the work.

Use it as an interviewer. Describe your operation and ask it to ask you questions, one at a time, until it understands the flow: purchasing, receiving, storage, order preparation, dispatch, transport and delivery. Order preparation is called picking and means taking from the warehouse what each customer orders. Then ask it for a map of the stages and a list of indicators. Check that no stage of your real operation is missing.

Indicators turn opinions into numbers. Two basic ones are OTIF (on time, in full), which is the percentage of orders delivered on the promised date with nothing missing, and inventory accuracy, which compares what the system says with what is on the shelf. Add order cycle time, from order to delivery, and logistics cost as a percentage of sales. The figures come from your records, not from the AI.

Then ask for cause hypotheses. A hypothesis is an explanation you still need to test. Techniques such as the 5 Whys, which means asking “why?” several times until you reach the root cause, help you dig deeper. Ask for each hypothesis to come with the data that would confirm it or rule it out. Watch out for bias: if you tell it “my trucks arrive late,” it will tend to look for causes in transport. Tell it the facts, not your conclusion.

Close by prioritizing. Rank improvements by impact and effort, and build a 30-, 60- and 90-day plan with one person responsible for each action. Measuring before improving also guides countries: SUNAT measured import clearance time, and the World Bank compares the logistics performance of 139 economies. In both cases, you measure first and then decide.

Key ideas

StageWhat you ask the AIWhat you contribute
ScopeTo ask you about goal, products, customers and deadlinesWhat problem you want to solve and what is left out
ProcessAn end-to-end map of the stagesHow it is done in practice, not how the manual says
IndicatorsA list of indicators and the data neededReal figures from your records
CausesHypotheses and how to test each oneChecking with data and a visit to the warehouse
PlanPrioritize by impact and effort; a 30-, 60- and 90-day planOwners, budget and real dates

Worked example

Delivery complaints: late or incomplete?
  1. Distribuidora Nor Andina S.A.C. (a fictional company from Trujillo) supplies corner stores (bodegas) with 6 trucks. Customers complain about deliveries, and the manager thinks the problem is transport. You open a chat with the AI and ask: “Ask me questions, one at a time, to diagnose my distribution to corner stores.”
  2. You answer with facts: you receive goods from 40 suppliers, store them in one facility, prepare orders in the afternoon and deliver the next day. The AI returns a seven-stage map and suggests indicators: OTIF, cycle time, inventory accuracy and cost per delivery.
  3. You calculate last month's OTIF with your records. There were 1,250 orders: 1,075 arrived on time (1,075 ÷ 1,250 = 86%), 1,150 arrived complete (92%) and 1,000 met both conditions. OTIF = 1,000 ÷ 1,250 = 80%. A total of 250 orders failed.
  4. You split the 250 failures. Late only: 1,075 − 1,000 = 75. Incomplete only: 1,150 − 1,000 = 150. Late and incomplete: 250 − 75 − 150 = 25. Check: 1,000 + 75 + 150 + 25 = 1,250.
  5. Compare. Orders with delays: 75 + 25 = 100. Orders with missing items: 150 + 25 = 175. There are more incomplete orders than late ones, so the manager's transport hypothesis does not explain the main problem.
  6. You break down the 175 incomplete orders using the warehouse notes: 105 due to out-of-stock products, 49 due to picking errors and 21 due to other causes. They add up to 175. Out-of-stock items are 105 ÷ 175 = 60%.
  7. You ask the AI to prioritize with this table. It suggests tackling out-of-stock items first (high impact) by reviewing the reorder point of the 20 best-selling products, and then adding an outbound check at picking. Transport is left for a second step, with 100 late orders to review.
  8. You build the 30-day plan: owner, date and target (raise OTIF from 80% to 88%, a goal for this example). You save the prompt and the data used.

Result: The data-based diagnosis changed the focus: from “late trucks” (100 orders) to “incomplete orders” (175), and 60% of those were due to stockouts. AI organized the work; the company's records decided the priority.

Real cases

Peru measures and publishes its import clearance time

10/2023

According to a World Customs Organization (WCO) note of 12/12/2023, Peru published its new Time Release Study in October 2023, with support from the SECO-WCO program. It measures imports at the Callao airport and seaport with data from 2014 to September 2023. Release time fell from 146 hours in 2014 to 32 hours in September 2023.

Measuring each stage with data from the process itself lets you see how much it improved and where the bottleneck still is.

Source: Organización Mundial de Aduanas – Peru publishes its new Time Release Study under the SECO-WCO GTFP support

Peru in the World Bank's Logistics Performance Index

2023

The World Bank's Logistics Performance Index (LPI), 2023 edition, compares 139 countries on a scale of 1 to 5. Peru ranks 61st with an overall score of 3.0. The index breaks performance down into six components, including customs, infrastructure and timeliness of shipments, and lets you see where a country is weakest.

A good diagnosis breaks the overall result down into components, so you know what to tackle first.

Source: Banco Mundial – Logistics Performance Index (LPI) 2023

Common mistakes

Practise with the calculators, the COMEX Simulator and the review questions on the main page.

Open this topic in the calculator →
← Previous topic: Principles for using AI with good judgmentNext topic: AI in spreadsheets: inventories, orders and warehouses →