Calculadora COMEX Perú

Home / Supply chain, technology and AI / Module 4

4.1 Principles for using AI with good judgment

Generative AI drafts, organizes and suggests, but it can be wrong with total confidence. Learn six principles for using it in logistics: context, protected data, verification and a decision that is always yours.

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

Goal: Apply six principles for using AI with good judgment and check a reorder point calculation before deciding when to order.

Generative artificial intelligence (AI) is a program that produces text, tables or images from what you write to it. Chat assistants run on a language model: a system trained on huge amounts of text that predicts which words sound most likely to come next. That is why it writes fast and in a good style. But “sounds likely” is not the same as “is true.”

That difference explains its biggest risk, hallucination: a confident, well-written and false answer. AI can make up a tariff heading, a legal article or a figure, and it can also get a sum wrong. Also, it only knows your company's data if you give it that data, and it may not know recent rules or prices. Treat it as a fast assistant that sometimes gets the details wrong, not as a specialist who has already checked the matter.

Six principles help you work with good judgment. One: you decide and sign; AI suggests. Two: give it clear context, that is, who you are, what you need, with what data and in what format. Three: protect data; check what the tool does with what you type, and do not paste personal data (Law 29733 protects personal data) or sensitive business information without authorization. Four: check figures, calculations and rules against the source. Five: ask it to show its steps and assumptions. Six: keep a record of what you asked, what it answered and what you changed.

A good prompt, which is the instruction you give it, has four parts: the role (“act as an inventory analyst”), the specific task, the data it must use and the output format (“a table with three columns”). Add a useful rule: “if you are missing information, ask me; do not make it up.” Then review the answer as you would review an intern's work: ask for the source, redo the calculation and compare it with your experience.

In Peru, Law 31814 promotes the use of AI for economic and social development. Its regulations, Supreme Decree (D.S.) 115-2025-PCM of 09/09/2025, include human oversight as a principle and require transparency in high-risk systems. AI does not free you from answering for your decisions: if an answer affects people or the company's money, a human must review it and be able to correct it.

Key ideas

TaskWhere AI helpsWhat you check
Draft and summarizeEmails to suppliers, summaries of contracts or long reportsThat it does not change amounts, dates or terms
Organize dataClean lists, unify names, build tablesThat it does not lose rows or mix up codes
CalculateSuggest the formula or methodRedo the calculation in your spreadsheet
Rules and tariffsExplain concepts and point out what to look forConfirm in the current official source
DecideList options, criteria and risksThe decision is yours and you back it with data

Worked example

When to restock PVC pipes: AI suggests, you check
  1. Comercial Sur Andino S.A.C. (a fictional company from Arequipa) sold 1,200 PVC pipes, 2 inches in diameter, in the last 30 days. Its supplier delivers in 8 days and today there are 600 pipes in the warehouse. You want to know when to place the next order, and you use an AI assistant to organize the calculation.
  2. Prepare the data before pasting it. The sales file includes customer names and RUC numbers: delete them. Keep only date, product and quantity. That way you do not share personal data or agreed prices.
  3. Write the prompt with role, task, data and format: “Act as an inventory analyst. With sales of 1,200 units in 30 days, a lead time of 8 days and current stock of 600, calculate the reorder point. Show each operation and list any assumptions you make. If a piece of data is missing, ask me.”
  4. Suppose the AI answers: daily demand 40; consumption during the lead time 40 × 8 = 360; safety stock of 10 days = 400; reorder point 760. Since there are 600 in the warehouse, it says “order today.” The answer looks organized and confident.
  5. Check. Daily demand: 1,200 ÷ 30 = 40, correct. Consumption during the lead time: 40 × 8 = 320, not 360; the AI got the multiplication wrong. Also, the 10-day safety stock is its own assumption: you did not give it that.
  6. Correct it with your judgment. Your supplier is almost never late and your policy is to cover 3 days of sales as safety stock: 40 × 3 = 120. The reorder point is 320 + 120 = 440 units.
  7. Decide. You have 600 and the reorder point is 440, so it is not time to order yet. There are 600 − 440 = 160 units left to sell, or 160 ÷ 40 = 4 days. The order is placed in about 4 days, not today.
  8. Record the prompt, the AI's answer, your corrections and who approved the decision.

Result: Once checked, the answer changes: a reorder point of 440 units instead of 760, and an order in about 4 days instead of today. AI speeds up the work; checking keeps you from ordering early and tying up money in inventory.

Real cases

A chatbot makes a mistake and the airline pays

14/02/2024

In British Columbia (Canada), a passenger asked the chatbot on Air Canada's website about the bereavement fare and got an explanation that was different from the airline's actual policy. On 14/02/2024, the Civil Resolution Tribunal decided (2024 BCCRT 149) that Air Canada was responsible for what its website says, including the chatbot, and ordered it to pay 812.02 Canadian dollars in damages, interest and fees. It matters because the company did not escape liability by blaming its automated tool.

If you publish or send an AI-generated answer, you are responsible for it: review it first.

Source: Civil Resolution Tribunal (Columbia Británica) – Moffatt v. Air Canada, 2024 BCCRT 149

Peru issues the regulations of Law 31814 on artificial intelligence

09/09/2025

On 09/09/2025, Supreme Decree 115-2025-PCM was published in El Peruano. It approves the Regulations of Law 31814, the law that promotes the use of AI in the country. It recognizes human oversight as a principle. For high-risk systems, such as credit scoring of individuals, it requires algorithmic transparency mechanisms and informing users. It matters because it sets Peruvian rules for those who use AI in decisions that affect people.

If a decision supported by AI affects people, keep a record of who supervised it and how it is explained.

Source: El Peruano – Decreto Supremo 115-2025-PCM, Reglamento de la Ley 31814

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: Sustainability and carbon footprintNext topic: Logistics diagnosis with conversational AI →