Use case · Food importers
AI in a food importing business.
A worked example.
An illustrative scenario for an importer and distributor bringing in chilled, frozen and dry goods from suppliers abroad and selling to supermarkets, hotels, restaurants and shops across Malta and Gozo. Deliveries to Gozo add a ferry crossing to every route. It shows where AI could genuinely help, how I would approach it, and a small demo you can try.
An illustrative scenario. The importer is invented and every figure on this page is made up.
Which customers' orders to protect when a container is late.
Purchasing and sales
Which products could run out before the next shipment arrives? →
What a food importer typically deals with
I've assumed the following for this example. In a real engagement the first job would be to check what is actually true for you.
A long gap between ordering and arriving
Orders are placed weeks ahead, and ports, customs and suppliers can all slip. Guessing the quantity wrong means empty shelves or stock nobody needs.
Shelf life ticking
Chilled and frozen stock is always on a clock. A few cases that expire unsold take a surprising amount of margin with them.
Costs that keep moving
Landed cost depends on the supplier price, freight, duty and the exchange rate, all of which change. Selling prices do not always follow in time.
Paperwork in many shapes
Invoices, packing lists, certificates and customs forms arrive as PDFs and emails, often in other languages. Customer orders come by email, phone and message, and are retyped into the system.
Workflows: from a repeated decision to a routine
A workflow takes something your team does again and again and runs the routine part by itself. Something triggers it, AI gathers and reads the data and drafts the next step, a person approves, and the outcome is logged and checked afterwards. People keep the decisions and lose the chasing.
A worked example · A container is delayed: protect the shelves
Importers live with the gap between ordering and arriving. This workflow reacts when a shipment slips, and protects the customers who rely on it. All names and figures are made up.
The shipping tracker shows a container of tinned tomatoes now arriving 9 days late, because of a port delay.
Current stock, open customer orders, the forecast and the other containers already on the way are pulled together. Customer delivery promises are checked.
AI works out that stock will run out in about 6 days, so 14 orders from two supermarkets and 9 hotels are at risk. It also finds a second supplier with stock in a nearer port, and a customer whose order can be split.
A plan: an urgent part-order of 600 cases from the second supplier by air-sea combination, 40% of the at-risk orders fulfilled from stock on a fair-share basis, and personalised messages drafted for each affected customer with a new delivery date.
The purchasing manager approves the part-order, changes the fair-share split for one key supermarket, and the sales lead approves the customer messages.
The purchase order is raised, the customer messages go out and the orders are re-dated in the system. When the container arrives, the plan is compared with what actually happened and logged.
The same routine can be built for a product nearing its expiry date, a supplier price rise, a customs hold or a sudden spike in demand.
Getting your data ready for AI
AI is only as good as the data it can see. An importer works with suppliers abroad, shipping documents, customs paperwork, warehouse systems and many customers, and the same product often has a different name in each. The first job is reaching all of it and shaping it into one version people trust. AI does much of that work, quickly, and leaves a record of every change.
Many sources, one view
- Orders and invoicing system: read-only connection: customers, orders, prices
- Warehouse and stock: read-only connection, including batch and expiry dates
- Supplier documents: invoices, packing lists and certificates read by AI, in any language or layout
- Shipping and customs: tracking feeds and paperwork read automatically
- Supplier and market prices: price lists read by AI, plus AI-assisted web collection of public wholesale prices
- Email and spreadsheets: the order emails and spreadsheets the team already uses
AI does the heavy lifting
- Same thing, different spellings: matched to your master lists (products, suppliers, warehouses, customers)
- Dates, currencies, units and number formats brought into one standard
- Duplicates found and removed, including the same record arriving from two systems
- Gaps filled from another source where one exists, and listed where not
- Odd values spotted and explained, never silently changed
- Documents, emails and photos read and turned into rows: supplier invoices, packing lists, bills of lading, customs forms, certificates
One layer people trust
- Definitions written down once and used everywhere
- Refreshed automatically on a schedule, nobody exports anything
- Every cleaning step logged, so any number can be traced back to its source
- Access limited to what each person needs
- A new source can be added without rebuilding what already works
Watch messy data get cleaned
Forecasting: a simple model that scales to any slice
Knowing what customers will order, product by product, turns into better buying: the right quantities, ordered early enough to arrive when needed. The model in this demo is deliberately simple: take what happened at this time last year, then adjust it for how the last eight weeks are running compared with the same eight weeks a year ago. To test it, the most recent eight weeks are hidden, forecast, then compared with what really happened.
Try it on made-up history
Any dimension you can name
Product, category, customer type, warehouse, supplier, country of origin, week of the year. The same model runs on each slice, and each gets its own accuracy test. Add a dimension and the forecasts follow.
From a handful to thousands
The table above is already forecasting dozens of slices at once. The same approach covers every product in every location, by day or by hour where that is what the decision needs.
Start simple, add what helps
Where the extra effort is worthwhile, richer models can bring in promotions, price changes, weather, events and holidays. The pipeline around the model stays the same, so it can be swapped without rebuilding.
- Place orders with overseas suppliers early enough, in the right quantities
- Plan around Christmas, Easter and the summer tourist season
- Notice early when a customer or product is drifting from its usual pattern
Five places I would look first
Small, useful and kept under control. Each one is a candidate for a first pilot, not a promise.
Order the right amount, at the right time
Combine sales history, stock, expiry dates, supplier lead times and the shipping calendar to suggest what to order and when, with the reasons. Buyers approve and adjust.
Documents without the retyping
AI reads supplier invoices, packing lists and certificates in any language or layout, matches them to the order, and flags what does not agree, so the team checks exceptions instead of typing.
Know and look after your customers
Order patterns show which customers are growing, which have gone quiet, and which give the best margin, so salespeople spend their time where it matters.
Orders and messages, faster
Turn customer order emails and messages into draft orders for a person to check, and draft customer updates when a delivery changes, in the company's own words.
Smarter pricing as costs move
Read several signals together, gathered automatically from your own systems and from public sources: landed cost including freight, duty and exchange rate, wholesale prices in the market, and how quickly each product sells. The result is a short list of products worth a price review each week, with the reasons. The decision stays with people. More below.
Using landed cost and wholesale prices to decide where to look
Small shifts in cost or price add up quickly across hundreds of products. AI can read several signals at once and point to the products worth a second look. The price itself remains a human decision.
- Our costs and prices: pulled automatically from the orders and invoicing system through a read-only connection
- Supplier invoices and price lists: PDFs and emails read by AI, in any language or layout
- Freight, duty and exchange rates: from forwarders' documents and public sources, collected automatically
- Wholesale market prices: collected automatically from public sources, using AI-assisted web collection of public wholesale price lists and competitor catalogues
- Stock and sales speed: straight from the stock and sales systems on a schedule
- Business rules: minimum margins, customer price agreements and brand rules, written down once in plain language
Where AI helps with collection: reading messy documents, matching the same product across suppliers and catalogues, filling gaps, and flagging when a source changes or breaks.
- A short weekly list of products to review, with plain-English reasons, for example "cost up 9%, margin below target, selling fast"
- A safe range for any change, never below the agreed minimum margin
- A follow-up check on whether a change helped
- Answers anyone can read, with the numbers behind them
- The decision to change a price
- Judgement about customers, contracts and relationships
- Customer price agreements and exceptions
- Approving anything before it reaches a customer
Where AI adds most: reading supplier documents, matching comparable products across lists, making sense of messy price data and explaining the results in plain English. A sensible start is a weekly list of suggestions, widened as the team gets comfortable.
The demo below includes two questions on this, using made-up data.
From a question to a checked answer
Pick a question. You'll see the definitions it relies on, the query, the answer and the checks. The data is invented: 16 products, 8 suppliers and around 130 shipments, 40 customers across four customer types, and made-up wholesale prices and costs.
Prepared questions on made-up sample data. In a real setup an AI assistant turns your own wording into queries like these, using your agreed definitions, and your team reviews the results. The SQL shown is what actually runs here, in your browser.
Ask the sample data
Choose a question above to see how it works.
A proposed approach
Offered as a starting point to discuss, not a fixed plan.
Understand before building
- Which decisions are slow, and who makes them
- Where orders, stock, shipping and invoice data live
- Which definitions people already agree on (landed cost, margin, days of stock), and where they differ
A first pilot could look like
- Scope: One product category
- Data: orders, stock and the shipping tracker
- You would get: a late-shipment alert showing which orders need attention
- How we would know: we compare it with what actually happened on past delays
Leave the team able to run it
- Clear ownership of the definitions
- Simple guidance on what to check and when to stop trusting a result
- A decision on whether, and how far, to widen it
What keeps it safe and useful
- Definitions agreed once, by finance, buying and sales, and used everywhere
- Read-only access to a prepared layer of data, so a mistake cannot change anything
- People decide: on orders, on prices and on anything that reaches a customer
- Customer and supplier terms kept private, with access limited to what each person needs
- Queries visible and logged, so any answer can be traced and questioned
- Tested before it is trusted: checked against past cases where the answer is already known
Questions before any proposal
- Which three decisions would you most like to make faster?
- Who retypes the same document or order again and again?
- Where do orders, stock, shipping and invoice data live today, and how fresh are they?
- Do your teams already agree on what "landed cost" and "margin" mean?
- Which pricing rules and customer agreements must never be broken?
- What must never leave your systems or be pasted into an AI tool?