Sort grocery lists by aisle order using store aisle sign photos. Build aisle maps from uploaded images, match items to aisles, and output optimized shopping routes. Use when users upload aisle sign photos, request grocery list sorting, want shopping trip optimization, need store layout mapping, or mention grocery list organization.
Sort a user's grocery list by aisle order so they can walk the store in one efficient pass, no backtracking.
Activate when user:
Two inputs are needed. Prompt for whichever is missing:
Read each uploaded aisle sign image. Extract:
Compile into a structured map:
Aisle 1: Bread, Bakery Items, Tortillas
Aisle 2: Cereal, Breakfast, Granola Bars
Aisle 3: Pasta, Sauces, Canned Goods
...
If an image is blurry or partially unreadable, note what was legible and flag uncertainty.
Grocery stores have perimeter sections without numbered aisles. Infer these from context or common knowledge when not covered by the uploaded signs:
| Zone | Typical items |
|---|---|
| Produce | Fresh fruits, vegetables, herbs, salad mixes |
| Deli | Sliced meats, prepared foods, rotisserie chicken |
| Bakery | Fresh bread, cakes, pastries (distinct from packaged bread aisle) |
| Dairy | Milk, cheese, yogurt, butter, eggs |
| Meat & Seafood | Fresh/frozen meat, poultry, fish |
| Frozen | Frozen meals, ice cream, frozen vegetables |
Position perimeter zones in typical store flow: Produce → Deli/Bakery → Meat/Seafood → Dairy → Frozen (usually along the store's outer walls, counterclockwise from entrance).
If the user's aisle photos already include these sections, use the actual signage instead of defaults.
Extract every item from the user's list. Normalize:
Preserve the user's original wording alongside any normalized form.
For each grocery item, find the best aisle match:
Present the final list grouped by aisle in store-walk order:
🛒 Sorted Shopping List — [Store Name if known]
PRODUCE
□ bananas
□ baby spinach
□ 3 avocados
AISLE 1 — Bread, Bakery Items, Tortillas
□ whole wheat bread
□ flour tortillas
AISLE 2 — Cereal, Breakfast, Granola Bars
□ oatmeal
□ granola bars
AISLE 3 — Pasta, Sauces, Canned Goods
□ spaghetti
□ marinara sauce
□ canned black beans
...
DAIRY
□ 2% milk
□ shredded mozzarella
□ eggs (1 dozen)
⚠️ COULDN'T PLACE
□ birthday candles — not enough aisle info to determine location
□) so the list is easy to use on a phoneSome items legitimately live in multiple locations. When this occurs:
If the user mentions they shop at this store regularly:
📍 [Store Name] Aisle Map
Aisle 1: Bread, Bakery Items, Tortillas
Aisle 2: Cereal, Breakfast, Granola Bars
...
Produce | Deli/Bakery | Meat & Seafood | Dairy | Frozen