Find shelf gaps from one phone photo.

Shelf-It is a shelf agent for supermarket and cash-and-carry teams. A staff member takes a shelf photo, or a camera at the shelf sends frames. Shelf-It finds missing and misplaced products, tells the shelf worker what to bring from the backroom, and orders what the backroom does not have. The model reads the shelf; every count, unit and euro is computed by code and logged.

Gen AI Summit Hackathon, Athens, November 2026. Open Track.

A supermarket shelf of Greek beers and soft drinks on five shelves. The agent outlines every product and marks three empty slots.
MISSING · MYTHOS 500ML
MISSING · MYTHOS 330ML
MISSING · ΛΟΥΞ COLA 1,5L
Order 1 caseMythos 500ml · backroom empty
Bring 20 unitsMythos 330ml · from the backroom
Order 2 casesΛουξ cola 1,5L · within the limit
Test shelf composed by code from real Greek product photos (sklavenitis.gr), not a photo of a real store. Boxes come from the reading stored with this photo; the three gaps are in its planogram, and the units and cases are what the refill code computes for them.

Built with Gemini, treg, fal, Telegram, FastAPI, DuckDB and Open Food Facts.

Gaps on the shelf are found late, and each one loses sales.

In a large store, staff walk aisle after aisle and check the shelves by eye. Gaps are noticed late, stock sits in the backroom because nobody brought it out, and orders go in from memory.

8.3%

of products are missing from the shelf at any given moment, on average.

40%

of those sales are lost to the store: 31% of shoppers buy elsewhere, 9% buy nothing.

1 in 4

gaps are products the store already has, just not on the shelf.

Source: Gruen, Corsten & Bharadwaj (2002): 52 studies in 29 countries; the 8.3% average comes from the 40 that measured it.

One shelf check, useful at every level of the store

Built for large supermarkets and cash-and-carry stores, where many aisles mean many manual checks and the tasks that follow them.

Shelf workers

Clear, prioritised tasks: what to refill or move, how many units, and where to get them.

Department managers

Shelf issues found and handed out faster, without walking every aisle first.

Store managers and operations

Less manual checking, and a view of which tasks are still open.

Backroom and warehouse

Clear refill requests, and orders only for what the backroom does not have.

How it works

Five steps, from the shelf photo to the refill. The tag shows who does each step.

the next photo checks the fix 1 Snap person 2 Read model 3 Check model + code 4 Act code 5 Refill person the next photo checks the fix 1 Snap person 2 Read model 3 Check model + code 4 Act code 5 Refill person
  1. Snap person

    A staff member takes a shelf photo with a phone. Or a camera at the shelf sends frames at a set interval.

  2. Read model

    Gemini turns the photo into a table: shelf, position, product, facings, box.

  3. Check model + code

    The shelf is checked against the planogram: missing, short, or on the wrong shelf.

  4. Act code

    A task for the shelf worker, a Telegram alert, and an order to the central warehouse.

  5. Refill person

    The shelf worker brings the units listed in the task and refills the shelf.

The model reads. It reads the shelf and writes the sentences.

Code computes. Every count, unit, case and euro is computed by code and logged.

People approve. Orders above the limit wait for a yes, in the console or on Telegram.

It also moves products to where they earn more.

Besides refilling gaps, the agent checks the layout with rules K3–K8 and proposes moves. On the same test shelf, rule K4 sends Βεργίνα Red 500ml to eye level and Άμστελ 330ml to its old place.

  • €7.68 margin per facing a day for Βεργίνα Red, against €0.59 for Άμστελ 330ml.
  • No uplift percentage is claimed: the sources rank positions, they do not give a number for this shelf.
  • The manager accepts, rejects or corrects. An accepted move becomes a task for the shelf worker.
The drinks test shelf, full. Βεργίνα Red bottles on the top shelf and Άμστελ cans at eye level are outlined, with arrows showing the two products swapping places.
K4 · TO EYE LEVEL
SWAP
K4 · eye level€7.68 vs €0.59 margin per facing a day
Same test shelf, full. The move and the two figures are the output of the rules code on this shelf's synthetic sales and costs.

Architecture

One agent and a small set of tools. The model reads the shelf; code computes every number.

photo or frame image products, facings, gaps Phone or camera /capture · phone photo /cam · camera feed Telegram photo Gemini vision reads the shelf structured output Evidence treg web and news Open Food Facts DuckDB catalogue · planogram backroom · sales Rules K1–K8 refill and layout rules.json Task · Telegram crop, units, where from Warehouse order ≤ 3 cases and ≤ €50: auto Shelf talker fal · printable sign Shelf-It agent FastAPI · tool loop every figure → audit trail Phone or camera /capture · /cam camera feed · Telegram Gemini vision reads the shelf DuckDB catalogue, planogram backroom, sales Rules K1–K8 refill and layout Evidence treg · Open Food Facts Task · Telegram crop, units, where from Warehouse order ≤ 3 cases and ≤ €50: auto Shelf talker fal · printable sign Shelf-It agent FastAPI · tool loop · audit trail

person Capture

Phone photoA staff member scans the shelf /capture
Camera feedA camera page at the shelf sends frames at a set interval /cam
Store CCTV plannedA compatible existing camera as the feed. Not built yet.

model Read

Gemini visionPhoto in: products, shelf, facings, boxes, and what looks missing or misplaced
Unknown shelfA photo outside the catalogue still gets gaps and products that do not belong

code Decide

Planogram checkMissing, short, wrong shelf, wrong order
Rules K1–K8Refill and layout rules.json
Evidence packMarket sources per product treg
Product identityBarcode, pack size, category Open Food Facts

code Act

Task for the workerCrop of the spot, units, where from /tasks · Telegram
Warehouse orderUp to 3 cases or €50 on its own; above that a person approves
Shelf talkerPrintable sign once name and price are confirmed fal

Every tool call and every figure is written to an audit trail shown in the console.

What works today

Tested with Gemini on generated and real shelf photos, and offline with a built-in mock model.

  • Tasks a shelf worker can act on

    Each gap becomes a task with a crop of the spot, the number of units and where to get them. Missing products come first, then short facings, then misplaced ones.

    /tasks · Telegram
  • Camera feed loop

    A camera page at the shelf sends frames at a set interval. Frames that have not changed are skipped, and a task closes only when a later frame shows the shelf fixed. Store CCTV is not connected yet.

    /cam · /shelf · Gemini
  • Orders with limits

    Up to 3 cases or €50 it orders on its own. Anything bigger waits for a person to approve.

    warehouse portal · approvals
  • Evidence per product

    Searches Greek trade and financial press. A claim is kept only if its quote appears word for word in the source, and a number only if the source is dated.

    treg web and news search
  • Shelf talkers

    When the manager accepts a layout change and confirms name and price, it makes a printable sign for the shelf edge.

    fal image generation
  • Runs without an API key

    A built-in offline model replays the whole flow, so the demo does not depend on venue Wi-Fi.

    mock provider · replay

Example task, from the shelf above

Refill · eye level, beer
ProductMythos lager can 330ml
On shelf0 of 5 facings
Bring20 units · backroom
Why firstMissing product

Example audit trail, same shelf

read_shelf34 products on 5 shelves
check_planogram3 missing: D12, D22, D43
replenishment_planD22: 20 units from backroom · K1, K2
order_from_warehouseD12, D43: 3 cases, within limit → placed
layout_suggestions3 suggestions: K4, K5, K3

Eight rules decide what to suggest

Six come from published retail research and two are team rules from merchandising practice. A suggestion shows its rule, its numbers and its source. If a figure is missing, the rule does not run.

Move one facing from Άλφα alcohol-free 330ml to Βεργίνα Red 500ml
Rule
K3 · space against sales
Gain
+€1.10 a day
Loss
−€0.07 a day
Net
+€1.03 margin a day
Source
Eisend 2014, space elasticity 0.17
Sales
28 days, synthetic
  1. K1Which gap first. Daily sales × 0.40 lostGruen et al. 2002
  2. K2Backroom or order. Backroom first, then orderGruen et al. 2002
  3. K3How many facings. Move one only if the gain beats the lossEisend 2014
  4. K4Which height. Best margin per facing at eye levelDrèze et al. 1994; Chandon et al. 2009
  5. K5Left or right. Target product in the centreAtalay et al. 2012
  6. K6Private label. Next to the category leaderSayman et al. 2002
  7. K7Destination products. What shoppers look for anyway goes bottom right, not at eye levelTeam rule
  8. K8Heavy packs. 1 kg or 1 litre and over on the bottom shelfTeam rule

What is real and what is synthetic

Market evidence, research figures, product data and the drinks prices are real. Anything only a retailer would have is made up for the demo.

real Used as is

  • Product identityName, brand, pack size and barcode from Open Food Facts
  • Shelf prices, drinks set37 Greek products, prices from sklavenitis.gr on 15 Nov 2026
  • Market evidence per categoryIELKA, Self Service, Naftemporiki and other trade press, searched through treg
  • How shoppers react to gaps52 studies in 29 countries (Gruen et al. 2002)
  • Rules K1–K6Peer-reviewed retail research, 1994–2014

synthetic Made up for the demo

  • Sales, purchase cost and backroom stockGenerated. A retailer would plug in its own
  • Planograms and rules K7–K8Written by the team
  • Shelf imagesThe coffee shelf is generated. The drinks shelf is composed by code from real product photos, not taken in a store
  • Central warehouseA simulated ordering portal

Sources: IELKA Self Service Naftemporiki Gruen et al. 2002 (PDF) Eisend 2014

What comes next

Team

Five people, 36 hours.

See what each person built