Use case · Retail
AI in a store network.
A worked example.
An illustrative scenario for a Maltese fashion and lifestyle retailer with stores on the high street, in shopping malls, in tourist areas and in Gozo: seasonal stock, uneven sizes and teams with little time. It shows where AI could genuinely help, how I would approach it, and a small demo you can try.
An illustrative scenario. The retailer is invented and every figure on this page is made up.
Which stores need which sizes and styles before the sale, and which items to move or mark down.
The merchandising manager
Where might we run short of stock next week? →
What a fashion retailer in Malta 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.
The right style in the wrong store
One store sells out of a size while another sits on it. Moving stock between Sliema, the malls and Gozo is mostly done by phone and spreadsheet.
Short seasons, big swings
Summer, the January sales, Christmas and back-to-school each reward getting stock right within a few weeks. Tourists in summer lift demand in some stores and not in others.
Numbers that do not always agree
"Net sales" or "margin" can mean slightly different things in different reports. People then spend time arguing about the number instead of acting on it.
A lot of repetitive admin
Weekly summaries, supplier emails, store updates and markdown reviews take time that could go on the shop floor.
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 · Before the summer sale: the right sizes in the right stores
Fashion stock is uneven by nature: one store sells out of a size while another sits on it. This workflow finds the mismatch before the sale starts. All names and figures are made up.
Three weeks before the summer sale, the plan is loaded for every store. A linen shirt that sold well all June is down to two sizes in Sliema.
Stock by size and store, sales speed for each style and the sale calendar are pulled from the stock system.
AI sees that the missing sizes in Sliema are the ones the Victoria store in Gozo holds in volume: 40 units across M and L, selling slowly. It checks how the same style sold in past seasons.
A proposal: move 25 units from Victoria to Sliema with this week's delivery run, and mark the slowest Gozo style down by 30% from the start of the sale, staying above the minimum margin.
The merchandising manager changes the transfer to 30 units, keeps the markdown at 25%, and approves it.
The transfer is created in the stock system and both store teams are told. After the first sale weekend, sell-through is compared with the plan and logged for the next season.
The same routine can be built for a new collection landing, a sudden heatwave, a bank holiday weekend or the end of a season.
Getting your data ready for AI
AI is only as good as the data it can see. The first job is reaching the data wherever it lives and shaping it into one version people trust. AI does a lot of that work, quickly, and leaves a record of every change.
Many sources, one view
- Tills and sales systems: read-only connections on a schedule
- Stock and warehouse systems: by style, size and colour, through read-only connections or a nightly file pick-up
- Supplier price lists: PDFs and spreadsheets read by AI, whatever the layout
- Competitor prices: AI-assisted web collection from public shop pages
- Sale and promotion calendars: the spreadsheets and planning tools already in use
- Emails and photos: attachments and shelf photos read and turned into rows
AI does the heavy lifting
- Same thing, different spellings: matched to your master lists (stores, products, suppliers)
- 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 price lists, delivery notes, lookbooks and shelf photos
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 is likely to sell, store by store and style by style, turns into better buying, sizing, transfers and staffing around the sales seasons. 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
Store, category, style, size, colour, format, season, supplier. 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.
- Buy and size each style for the season, store by store
- Plan the summer sale, Christmas and back-to-school around the expected peaks
- Notice early when a store is drifting below its own forecast
Five places I would look first
Small, useful and kept under control. Each one is a candidate for a first pilot, not a promise.
Answers without the queue
Managers ask in plain English ("which stores dipped last week?") and get an answer built on agreed definitions, with the query visible and a person able to check it.
Spot sizes running out early
Automated checks flag a style running low in one store while another holds plenty, so the right person gets a nudge, not a report to dig through.
Faster routine tasks
Drafting weekly summaries, supplier messages and markdown reviews, with good habits for what to check and what never to paste into a tool.
Build reports faster, safely
AI assistants help the data team write and document reports and pipelines, with code review and testing kept in place.
Smarter price and markdown reviews
Read several signals together, gathered automatically from your own systems and from public sources: your prices and margins, competitors' public prices for similar items, and how much stock you hold and how fast it sells. The result is a short list of products worth a price or markdown review each week, with the reasons. The decision stays with people. More below.
Using stock and competitor prices to decide where to look
Prices and markdowns are where small changes add up across many styles and stores, and where a spreadsheet struggles. AI can read several signals at once and point to the products worth a second look. The price itself is still a human decision.
- Our prices, costs and margins: pulled automatically from the tills, the stock system and pricing files through read-only connections
- Competitors' prices: collected automatically from public sources, using AI-assisted web collection of competitor websites and online shops, licensed price-data services, or AI reading photos from shop visits
- Stock and sales speed: straight from the stock and till systems on a schedule, by size and by store
- Promotions and the sale calendar: from the planning tools or spreadsheets you already use
- Business rules: minimum margin, price-match promises and brand rules, written down once in plain language
Where AI helps with collection: reading messy web pages, matching similar styles across shops, filling gaps, and flagging when a source changes or breaks.
- A short weekly list of products to review, with plain-English reasons, for example "priced above competitors, a lot of stock, selling slowly"
- 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 or a markdown
- Judgement about brand and customers: being dearer is not always wrong
- Exceptions and local knowledge
- Approving anything before it reaches a shelf
Where AI adds most: matching similar styles across different shops, 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: 12 stores in Malta and Gozo, 6 product categories and 8 weeks of sales, plus 24 products with made-up competitor prices.
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 sales, stock and promotion data live
- Which definitions people already agree on, and where they differ
A first pilot could look like
- Scope: Two stores (for example Sliema and Gozo) and a few styles
- Data: stock by size, sales and the sale calendar
- You would get: weekly transfer and markdown suggestions for the merchandiser
- How we would know: we compare it with what actually sold at full price
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 and operations, and used everywhere
- Read-only access to a prepared layer of data, so a mistake cannot change anything
- People in the loop: results are checked, and unusual ones are investigated, not assumed
- No personal customer data in a first pilot
- Queries visible and logged, so any answer can be traced and questioned
- Tested before it is trusted: checked against questions where the answer is already known
Questions before any proposal
- Which three decisions would you most like to make faster?
- Who asks the data team for the same report again and again?
- Where do sales, stock and promotion data live today, and how fresh are they?
- Do your managers already agree on what "net sales" and "margin" mean?
- Which pricing rules must never be broken (minimum margin, price-match promises, brand rules)?
- What must never leave your systems or be pasted into an AI tool?