Shelf-It
agent live
An agent for supermarket shelves

The shelf checks itself.

Shelf-It finds shelf gaps from one phone photo, tells the shelf worker what to bring from the backroom, and orders what the store has run out of.

Gen AI Summit Hackathon · Athens · 14–15 November 2026
Open Track
SCAN · PHOTO 01beer & soft drinks bay
A shelf of Greek beers and soft drinks; the agent outlines every product and marks three empty slots.
read_shelf → 34 products · 3 missing00:00:04
!3 products missingMissing products come first
↗Bring 20 unitsFrom the backroom, task sent
✓Order 3 casesWithin the limit, placed
Who it is for

In a large store, staff walk aisle after aisle and check every shelf by eye.

Shelf-It is for large supermarkets, cash-and-carry stores and retail operations with many aisles and repeated manual shelf checks. It cuts the time spent coordinating those checks and the tasks that follow.

  • Shelf workersClear, prioritised refill and placement tasks
  • Department managersShelf issues found and handed out faster
  • Store and operations managersLess manual checking, open work in view
  • Backroom and warehouseClear refill requests
  • Checks are hard to coordinate.Many aisles, many people, and findings passed on by word of mouth.
  • Gaps are noticed late.An empty spot sells nothing until someone walks past and sees it.
  • Stock waits in the backroom.The product is in the store, but nobody brought it out.
  • Orders go in from memory.What to reorder, and how much, depends on who is on shift.
Why it matters
40%

of the sales from an empty shelf are lost to the store. When a product is missing, 31% of shoppers buy it at another store and 9% do not buy it at all.

8.3%of products are missing from the shelf at any given moment, on average.
1 in 4gaps are products the store already has, just not on the shelf.
52 studiesin 29 countries behind these numbers.

Source: Gruen, Corsten & Bharadwaj (2002), Retail Out-of-Stocks: A Worldwide Examination of Extent, Causes and Consumer Responses. 52 studies in 29 countries; the 8.3% average comes from the 40 studies that measured it.

The solution

Take a photo. Get a fixed shelf.

Shelf-It is an AI agent with a small set of tools. It reads a photo of the shelf, compares it with the planogram, and turns every gap into work: a task for the shelf worker, or an order to the central warehouse.

model

The model reads.

Gemini turns the photo into a table: shelf, position, product, facings, and a box around each one.

code

Code computes.

Every count, unit, case and euro is computed by Python and SQL, and written to an audit trail.

person

People approve.

Orders above 3 cases or €50 wait for a yes from the manager, in the console or on Telegram.

A shelf of Greek beers and soft drinks with three empty slots marked.

Test shelf composed by code from real Greek product photos (sklavenitis.gr), not a photo of a real store. The three gaps are the ones in its planogram.

One shelf, start to finish

One photo in. Three gaps, three actions.

Task · refill, beer
ProductMythos lager can 330ml
On shelf0 of 5 facings
Bring20 units · from the backroom
Why firstMissing product
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_suggestionsup to two moves · K3–K8
How it works

Five steps, from photo to refilled shelf.

01

Snap

person

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

02

Read

model

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

03

Check

model code

The shelf is compared with the planogram: missing, short, or on the wrong shelf.

04

Act

code

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

05

Refill

person

The worker brings the units in the task. With a camera feed, the task closes only when a later frame shows the shelf fixed.

The tag shows who does each step. The model never decides a number.

Architecture

One agent, a small set of tools.

person

Capture

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

Read

  • Gemini visionOne structured call: products, shelf, facings, boxes, and what looks missing or misplaced
  • Unknown shelfA photo outside the catalogue still gets its gaps and the products that do not belong
code

Decide

  • Planogram checkMissing, short, wrong shelf, wrong order
  • Rules K1–K8Refill and layout, in SQL on DuckDB
  • Evidence packMarket sources per product treg
  • Product identityBarcode, brand, pack size Open Food Facts
code

Act

  • Task for the workerCrop of the spot, units, where from /tasks
  • 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
An audit trail, not a black box. Every tool call and every figure is logged and shown in the console next to the agent's work.
Runs without an API key. A built-in offline model replays the whole flow, so a demo never depends on the venue Wi-Fi.
Every number has a source

Eight rules decide what to suggest.

K1

Which gap first

Daily sales × 0.40 lost

Gruen et al. 2002
K2

Backroom or order

Backroom first, then the warehouse

Gruen et al. 2002
K3

How many facings

Move one only if the gain beats the loss

Eisend 2014
K4

Which height

Best margin per facing at eye level

Drèze et al. 1994; Chandon et al. 2009
K5

Left or right

Target product in the centre

Atalay et al. 2012
K6

Private label

Next to the category leader

Sayman et al. 2002
K7

Destination products

What shoppers look for anyway goes bottom right

Team rule
K8

Heavy packs

1 kg or 1 litre and over on the bottom shelf

Team rule
Move one facing from Mountain tea to Espresso capsules
Rule
K3 · space against sales
Gain
+€1.97 a day
Loss
−€0.43 a day
Net
+€1.54 margin a day
Source
Eisend 2014, space elasticity 0.17
Sales
28 days, synthetic

Six rules come from peer-reviewed retail research (1994–2014), two from merchandising practice. Each suggestion shows its rule, its numbers and its source. If a figure is missing, the rule does not run.

Data

Honest about what is real.

realUsed as is

  • Product identityName, brand, pack size and barcode from Open Food Facts
  • Shelf prices, drinks shelf37 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

syntheticMade 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
  • No employer dataNothing from any team member's employer was used
What we built this weekend

Built in 36 hours.

  • Shelf visionOne structured Gemini call per photo, with boxes, and rejection of dark or covered frames
  • Camera feed loopA camera page sends frames at a set interval, mirrored to the laptop
  • Task enginePrioritised tasks with a crop of the spot; they close on rescan
  • Bounded orderingAutomatic orders within limits, approvals above them
  • Rules K1–K8Refill and layout rules in SQL, each with its source
  • Three shelf setsCoffee, drinks, and a real shelf with Open Food Facts data; detected from the photo
  • Evidence packsGreek trade press per product through treg
  • Shelf talkersPrintable signs with fal, after a person confirms name and price
  • Telegram botAlerts and approvals on the phone
  • ConsoleEvery step, tool call and figure, live and replayable
Starts with a phone.A phone photo is enough to run it. A camera feed at the shelf adds continuous checks.
88 automated testsrun offline, with no API key.
Declared boilerplate.Before the event we prepared a generic agent skeleton with no shelf logic. It is listed in the README and tagged boilerplate in the git history.
GeminitregfalOpen Food FactsTelegramFastAPIDuckDB
What comes next

One shelf today. Every store tomorrow.

Team and links

Five people, 36 hours.

    Built in 36 hours at the Gen AI Summit Hackathon, Athens, 14–15 November 2026, Open Track. Use ← → to move between slides; print this page to get a PDF.

    QR code linking to the Shelf-It project site
    Scan for the project site
    ← → to navigate