<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Building Pickido]]></title><description><![CDATA[Explore UAE grocery price comparisons, supermarket offers, shopping guides, and money-saving tips from Pickido Insights. Shop smarter and save more.]]></description><link>https://pickido.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/624c1ae04b4dde0dc0bec7ca/b8113249-9b64-4c0a-9591-f4d6b5c858bb.png</url><title>Building Pickido</title><link>https://pickido.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Mon, 30 Nov 2026 22:10:50 GMT</lastBuildDate><atom:link href="https://pickido.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Turning Supermarket Flyers into Searchable Deals: How Pickido Works]]></title><description><![CDATA[Flyer parsing, tiered product matching, offer windows and rollbacks: the engineering behind Pickido, a grocery offers app for the UAE]]></description><link>https://pickido.hashnode.dev/turning-supermarket-flyers-into-searchable-deals-how-pickido-works</link><guid isPermaLink="true">https://pickido.hashnode.dev/turning-supermarket-flyers-into-searchable-deals-how-pickido-works</guid><category><![CDATA[Web Development]]></category><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[mcp]]></category><category><![CDATA[startup]]></category><category><![CDATA[ecommerce]]></category><dc:creator><![CDATA[Muhammed Suhail]]></dc:creator><pubDate>Mon, 30 Nov 2026 07:52:35 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/624c1ae04b4dde0dc0bec7ca/a0fc4077-cfd0-47e4-ae01-d2be6335a868.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Every week, supermarkets across Dubai, Sharjah and Ajman publish promotional flyers. Rice at a discount here, cooking oil on offer there, a "Buy 2 Get 1" on detergent somewhere else. The savings are real — but finding them means flipping through a dozen PDFs, remembering which branch had which price, and hoping the offer hasn't already ended.</p>
<p><strong>Pickido</strong> is a grocery offers and deals app built to fix that. It collects supermarket offers across the UAE, turns them into structured product prices, and lets shoppers see what's on offer, where, and until when — all in AED.</p>
<p>In this post I'll walk through the problem, how Pickido is put together, and a few of the engineering decisions that made it work.</p>
<h2>The problem: flyers are made for print, not for search</h2>
<p>A supermarket flyer is a design document. It's great at grabbing attention and terrible as a data source:</p>
<ul>
<li><strong>Product names are inconsistent.</strong> The same item can appear as "Almarai Full Fat Milk 1L", "Almarai FF Milk 1 Ltr" or just "Fresh Milk 1L" depending on the store and the week.</li>
<li><strong>Sizes and packs vary.</strong> "2 x 1L", "1.5kg", "Pack of 6" — the size is part of what makes two products the same or different.</li>
<li><strong>Deals come with conditions.</strong> Multi-buy offers, loyalty-card prices and limited-time windows don't fit neatly into a single "price" column.</li>
<li><strong>Every branch is its own world.</strong> A chain's offer at one branch may not apply at another.</li>
</ul>
<p>For shoppers, that means real savings stay buried. For an app, it means the hard part isn't displaying prices — it's getting trustworthy prices in the first place.</p>
<h2>What Pickido does</h2>
<p>At its core, Pickido keeps three things in sync:</p>
<ol>
<li><strong>Stores</strong> — every supermarket <em>branch</em> is its own store, tied to an area. Today the catalog covers hypermarkets and supermarkets such as Al Madina, Nesto, Mango Hypermarket, Madinath Market, Amber, Fresh Bazaar, Blue Mart, K Mart and more, across areas like Al Nahda, Al Quoz, Muhaisna, Rolla, Al Qusais and Ajman.</li>
<li><strong>Products</strong> — a shared catalog with a name, brand, unit and package size, so "the same thing" can be compared across stores.</li>
<li><strong>Prices</strong> — for each product at each store, a <strong>regular</strong> shelf price plus an optional <strong>offer</strong> price with a start and end date.</li>
</ol>
<p>That last part matters. An offer isn't just a number; it has a lifecycle. Every price in Pickido carries a status:</p>
<table>
<thead>
<tr>
<th>Status</th>
<th>Meaning</th>
</tr>
</thead>
<tbody><tr>
<td><code>normal_price</code></td>
<td>No offer; the regular shelf price applies</td>
</tr>
<tr>
<td><code>offer_upcoming</code></td>
<td>An offer is scheduled but hasn't started yet</td>
</tr>
<tr>
<td><code>active_offer</code></td>
<td>The offer price applies right now</td>
</tr>
<tr>
<td><code>offer_expired</code></td>
<td>The offer window has ended</td>
</tr>
</tbody></table>
<p>Modelling the window explicitly means the app never shows a shopper a deal that ended last Tuesday — and it can tell them about one that starts on Thursday.</p>
<h2>From PDF to price: the import pipeline</h2>
<p>Here's roughly what happens when a new flyer comes in.</p>
<h3>1. Resolve the branch</h3>
<p>Flyers usually name a chain, not a branch. Since each branch is a separate store, the first step is picking the right one — and if several branches of the same chain match, a human decides which branch the flyer belongs to. Updates always apply to one store at a time.</p>
<h3>2. Extract every offer line</h3>
<p>Each line on the flyer becomes a structured record: product name, brand, size or weight, offer price, the original price if printed, validity dates, and any conditions ("Buy 2 Get 1", "with loyalty card").</p>
<h3>3. Match lines to the catalog</h3>
<p>This is the heart of the system. Matching runs in tiers, from most to least certain:</p>
<ol>
<li><strong>Confirmed store aliases (score 1.0).</strong> Once a flyer wording like "Almarai FF Milk 1 Ltr" has been confirmed for a product at a store, it's remembered. Next week's flyer matches instantly.</li>
<li><strong>Exact catalog names (0.95).</strong></li>
<li><strong>Token matching (up to 0.9),</strong> scored on name overlap and package size.</li>
</ol>
<p>The alias layer is what makes the system get better over time: every confirmed match teaches Pickido how <em>that particular store</em> writes <em>that particular product</em>.</p>
<h3>4. Refuse to guess</h3>
<p>A wrong match is worse than no match — it puts a false price in front of a shopper. So Pickido is deliberately conservative:</p>
<ul>
<li>A candidate is accepted only when it clearly fits: <strong>same product, same brand, same size.</strong></li>
<li>Anything scoring below <strong>0.75</strong>, or with a size mismatch or several close candidates, is flagged <strong>low confidence</strong> and left out unless someone confirms it.</li>
<li>Lines with no confident match are reported separately rather than forced onto the nearest product.</li>
</ul>
<h3>5. Preview, then write</h3>
<p>Imports run as a <strong>dry run first</strong>. The preview shows each flyer item next to its matched product, the old price, the new offer price, a confidence level and any warnings. Only after that preview is reviewed does the batch get saved — and every saved batch gets an ID so it can be <strong>rolled back</strong> if something slipped through.</p>
<p>A few guardrails live in the write path too:</p>
<ul>
<li><strong>Multi-buy deals aren't silently converted.</strong> "2 for AED 10" is stored as a condition, not quietly turned into AED 5 per unit, because that isn't always what the shopper pays.</li>
<li><strong>Offers above the regular price are blocked by default</strong> — that's almost always a data error.</li>
<li><strong>New products and first-time prices at a store need explicit approval,</strong> so the catalog doesn't fill up with duplicates.</li>
</ul>
<h2>Product images: small detail, big trust signal</h2>
<p>A deal list full of grey placeholders looks broken, even when the prices are right. Products without a real photo are tracked, and Pickido fills them in by:</p>
<ol>
<li>Looking them up on <strong>Open Food Facts</strong> — exactly by barcode where possible, otherwise by name and size.</li>
<li>Falling back to a clean product photo from a retailer or brand page for items Open Food Facts doesn't cover well (fresh fruit, vegetables, loose items).</li>
</ol>
<p>The same "don't guess" rule applies: the image must show the same brand, variant and size. A photo of cherry tomatoes on a listing for vine tomatoes is a small lie, and small lies erode trust. Image updates can be rolled back too.</p>
<h2>AI in the loop, not in charge</h2>
<p>Reading a flyer, normalising product names and picking candidates is exactly the kind of tedious, pattern-heavy work AI assistants are good at. Pickido exposes its import and image tools through an <strong>MCP (Model Context Protocol) server</strong>, so an assistant can read a flyer, search the catalog, prepare a preview and propose images.</p>
<p>But the design keeps a human at the decision points:</p>
<ul>
<li>the assistant proposes, the preview shows, a person confirms;</li>
<li>low-confidence matches are surfaced, not resolved by guesswork;</li>
<li>every batch is reversible.</li>
</ul>
<p>That split turned out to be the sweet spot: the AI removes the drudgery of typing in hundreds of flyer lines, while the confidence thresholds, previews and rollbacks keep the data honest.</p>
<h2>What I learned</h2>
<ul>
<li><strong>Model the messy reality.</strong> Branches, offer windows and conditional deals are part of the domain. Flattening them away makes the data simpler and the app wrong.</li>
<li><strong>Make the system learn from confirmations.</strong> Store-specific aliases turned a slow manual process into one that gets faster every week.</li>
<li><strong>Prefer "unmatched" over "wrong".</strong> Users forgive a missing deal. They don't forgive a price that isn't real when they get to the till.</li>
<li><strong>Make every write reversible.</strong> Dry runs and batch rollbacks made it safe to move quickly.</li>
</ul>
<h2>What's next</h2>
<p>The goal is simple: make it effortless for shoppers in the UAE to know where their regular basket is cheapest this week. That means more stores and areas, faster flyer turnaround, and better ways to compare the same product across branches.</p>
<p>If you shop in Dubai, Sharjah or Ajman and you've ever thought "I'm sure this was cheaper somewhere else", that's exactly the question Pickido is built to answer.</p>
<hr />
<p><em>Have thoughts on price matching, flyer parsing or building with MCP? Drop a comment below — I'd love to hear how you'd approach it.</em></p>
]]></content:encoded></item></channel></rss>