Case Study May 2026

ShopSync:
Building India's AI-Powered
Retail Intelligence Platform

A story of turning a simple observation into a working product โ€” and the technology, challenges, and competitions that shaped it along the way.

ShopSync

AI-powered retail intelligence for India's 63 million kirana stores.
Built by Nikhil Majorwar

The Observation

The Observation That Started It All

Walk into any kirana store in India and you'll notice something that hasn't changed in decades. Behind the counter, there's usually a worn notebook, a mental catalogue of what's in stock, and an owner who's running the entire operation on memory and intuition.

India has over 63 million of these small retail stores. Together they form the backbone of how over a billion people buy their daily essentials โ€” milk, bread, eggs, snacks, cooking oil. Yet almost none of them have access to technology that helps them understand their own business. No inventory alerts. No sales trends. No sense of what to order before they run out.

While massive organised retail chains use sophisticated algorithms to track transaction velocity and forecast demand, 0% of these unorganised stores have access to AI-powered predictive tools. They run their businesses on intuition, memory, and pen-and-paper ledgers. When a store owner guesses wrong, they face out-of-stock items, lost sales, and wasted capital.

"The gap in general trade is massive. The technology exists, but the accessibility does not. This is the exact problem ShopSync was built to solve."

That observation, back in 2024, became the seed of ShopSync.

The Product

What ShopSync Is

ShopSync is an AI-powered retail management platform built specifically for kirana and small retail store owners in India. At its core, it does two things really well: it makes recording daily transactions completely effortless, and it turns those transactions into actionable intelligence.

The app runs on Android and was designed with one principle in mind โ€” if it takes more than a few seconds, a store owner serving 50 customers a day won't use it.

๐Ÿ“ท

Barcode Scanning

Recording a sale is as simple as scanning a barcode. The app looks up the product from a pre-loaded database of common Indian retail products โ€” so no internet is needed for the most common items โ€” adds it to the cart, and completes the transaction with one tap. Stock levels update automatically.

๐ŸŽ

Camera-Based AI Detection

For items without barcodes โ€” like fresh produce โ€” a camera-based AI detects the fruit or vegetable and adds it to the cart. No manual searching, no typing product names.

๐ŸŽ™๏ธ

Voice Transactions via Sunny

For the smallest transactions โ€” a child buying a chocolate, a quick sale of a single packet of Maggi โ€” the owner can simply speak to Sunny, the AI assistant: "I just sold two packets of white bread and a Thums Up." Done. No screens, no menus.

By logging daily sales seamlessly through any of these methods, ShopSync transitions from a simple utility app into an intelligence engine. The transactions build a historical database, allowing the app to generate a personalised "Daily Pulse" dashboard. It analyses seasonal shifts โ€” like the transition from peak summer to the monsoon season โ€” and tells the shopkeeper exactly what to restock, how much, and when.

๐Ÿ“ฑ View App Snapshots โ†—
The AI

Meet Sunny

Sunny is ShopSync's AI assistant, and she's the heart of the platform.

Built using Google's Agent Development Kit (ADK) and powered by Gemini 2.5 Flash, Sunny is a multi-agent AI system with four specialised sub-agents working under her:

inventory_agent

Reads the retailer's live inventory from Firebase Firestore and tells them exactly what's running low or out of stock.

sales_agent

Analyses past transactions and surfaces insights about best-selling products and revenue patterns.

forecast_agent

Queries 18,000+ rows of historical sales data from Google BigQuery and gives season-specific restocking recommendations.

guide_agent

Educates retailers on GST basics, FSSAI regulations, consumer protection laws, and their legal rights as small business owners.

Sunny is voice-native. A retailer can tap a floating button, speak naturally, and Sunny records the transaction and updates the inventory without the owner touching anything else. She also responds in Hindi and regional languages, which matters enormously for the actual users of this product.

Ask Sunny what to stock for May and June, and she doesn't guess. She queries real sales data, identifies the summer spike in beverages and dairy, and gives you specific product recommendations backed by numbers. That's not a feature you'd expect in an app built for a kirana store. That's the point.

๐Ÿค– Try Sunny โ†—

Note: Sunny is a live AI agent running on Google Cloud Run. Due to daily API token limits or occasional service constraints, she may sometimes be unresponsive. If that happens, try again in a little while.

The Tech Stack

Building Lean and Scaling Smart

Building a product for the unorganised retail market requires a rigorous focus on feasibility and cost execution. The architecture has to be fast, reliable, and incredibly lean.

The Android app is built with Jetpack Compose and follows an offline-first architecture. All data is stored locally using Room database, so the app works even without internet. When connectivity is available, everything syncs automatically to Firebase Firestore in the background.

Sunny runs as a deployed service on Google Cloud Run. A separate MCP (Model Context Protocol) Toolbox service โ€” also on Cloud Run โ€” acts as the data pipeline, connecting Sunny to both Firestore (for live inventory reads) and Google BigQuery (for sales analytics and forecasting). This separation keeps the architecture clean and scalable.

๐Ÿง 

The Core Brain โ€” Gemini API

Sunny AI is powered by the Gemini API. It parses natural language into structured, actionable database transactions across 4 specialised sub-agents.

๐Ÿ”ฅ

The Database โ€” Firebase / Firestore

The backend runs on Firebase/Firestore, utilising push-based SnapshotListeners to keep the store's dashboard updated in real-time without polling.

โšก

The Edge Efficiency โ€” ML Kit On-Device

To keep server costs minimal, barcode scanning is handled entirely on-device using ML Kit โ€” no cloud resources burned for simple product lookups.

โ‚น11.4
Monthly cost per active user. By optimising this stack, the operational cost runs at a highly lean โ‚น11.4/user โ€” allowing the app to be offered free of charge in its initial phases, ensuring product stickiness and habit formation for retailers.
Google AI Tools Used
โœจ

Gemini 2.5 Flash โ€” Core LLM

Powers Sunny's entire reasoning layer. Parses natural language from store owners (in Hindi and regional languages), routes queries to the right sub-agent, and generates conversational, context-aware responses.

๐Ÿค–

Google Agent Development Kit (ADK)

Used to architect Sunny as a multi-agent system โ€” a root orchestrator agent delegating to 4 specialised sub-agents (inventory, sales, forecasting, legal). ADK handles inter-agent communication, tool calling, and session state.

๐Ÿ”—

MCP Toolbox for Databases (Model Context Protocol)

A separate MCP Toolbox service โ€” deployed on Cloud Run โ€” acts as the secure data bridge between Sunny's agents and both Firestore (live inventory) and BigQuery (historical sales). This keeps the AI layer cleanly decoupled from the data layer.

โ˜๏ธ

Google Cloud Run

Both the Sunny AI agent and the MCP Toolbox are deployed as containerised services on Cloud Run โ€” serverless, auto-scaling, and cost-efficient. The app only incurs compute costs when Sunny is actively responding.

๐Ÿ“Š

Google BigQuery

Hosts the 18,094-row synthetic sales dataset spanning 50 products, 10 Indian cities, and 12 months of seasonal patterns. The forecast_agent queries this dataset to generate real, data-backed restocking recommendations.

๐Ÿ”ฅ

Firebase / Firestore

Live inventory data lives in Firestore. SnapshotListeners push real-time updates to the app dashboard without polling. The inventory_agent reads directly from Firestore to answer stock-level questions instantly.

โšก

ML Kit (On-Device Barcode Scanning)

Barcode detection is handled entirely on-device using Google ML Kit โ€” zero cloud calls, zero latency, zero cost for every scan. Critical for offline-first reliability in low-connectivity environments.

The sales data powering the forecasting covers a full year of realistic Indian retail patterns โ€” summer beverage spikes, festive season snack surges, monsoon comfort food trends โ€” giving Sunny the context to make genuinely useful predictions.

Building this wasn't without its technical grit. Developing in this space means fighting through unexpected hurdles โ€” like debugging hard network blocks where local ISPs fail to route Google Cloud traffic, requiring custom DNS bypasses just to keep the database syncing. It is a constant process of breaking things, fixing them, and hardening the code for real-world environments.

The Journey

Forging the MVP

ShopSync started as a concept in 2024. The actual build began in earnest when I joined Google Cloud's GenAI Academy, organised by Hack2Skill. That program was instrumental in teaching me how to build and deploy functional AI agents integrated with Gemini โ€” skills that became the foundation of Sunny.

The first version of the app was rough. Inventory data was hardcoded. The barcode scanner was simulated. The AI could barely answer a question. Over weeks of iteration โ€” late nights, deployment failures, permission errors, and more than a few moments of genuine frustration โ€” the product came together.

๐ŸŽ“

Google GenAI Project · Hack2Skill Cohort 1

Completing Cohort 1 was instrumental in learning how to properly build, prompt, and integrate an AI agent into a live Android environment. It provided the exact technical foundation needed to bring Sunny AI to life.

๐ŸŽ“ Certificate โ†—
๐Ÿ†

FixForward by Hyrup — Top 300 of 1,500+ Teams

The response was a massive validation of the core thesis: out of nearly 1,500 incredibly talented teams, ShopSync qualified for the Top 300.

๐Ÿ† Certificate โ†—
๐ŸŽฏ

Hult Prize Finals · MAHE

ShopSync's underlying concept also qualified to the finals of the Hult Prize Hackathon 2024 — a global student competition focused on solving real-world challenges.

๐ŸŽฏ Certificate โ†—

While the project didn't advance to the final 60 at FixForward, the true ROI of the competition was the acceleration in knowledge. Competing forces you to strip away the fluff, solve complex UX and backend challenges in days rather than months, and focus purely on execution. It proved that the technology works, the vision is solid, and the market need is urgent.

Early conversations about the concept with Arin Shrivastava, Arsh Shrivastav, and Ayush Sinha were invaluable โ€” their input helped turn a rough idea into something worth building.

The Vision

The Bigger Picture

ShopSync isn't just an inventory app. The long-term vision is more interesting.

Every store that uses ShopSync generates data. Every transaction is a signal. At scale โ€” across thousands of stores, in dozens of cities โ€” that becomes something no one has: a real-time, granular view of what India's unorganised retail sector is actually selling. By product. By city. By season.

That data has value well beyond the individual store owner. FMCG companies spend enormous resources trying to understand regional demand patterns. Supply chain distributors make costly mistakes because they can't see what's moving at the ground level. ShopSync, at scale, solves that.

Phase 1
Free for Retailers
Build the network, earn trust, collect data. Zero cost to the store owner.
Phase 2
Premium AI Tier
Advanced forecasting, analytics, and personalised recommendations for power users.
Phase 3
B2B Data Intelligence
A data layer for brands and distributors who need real-time ground-level demand insights.
๐Ÿ“„ View Pitch Deck โ†—
See It Live

ShopSync in Action

A short demo that provides a visual pitch of the app and showcases exactly how the ShopSync intelligence dashboard operates.

ShopSync demo โ€” voice-based checkout, barcode scanning & the Daily Pulse dashboard

What's Next

The Road Ahead

ShopSync is still very much a work in progress. The core product works โ€” the barcode scanner, voice transactions, Sunny's forecasting, the Firestore sync โ€” but there's a long list of things still to build. The mission to digitise 63 million stores is massive, but it starts by ensuring the core technology is absolutely flawless for just one transaction at a time.

๐Ÿ“ฑ

App Refinement & Accessibility

Deepening the core development โ€” dual voice and barcode workflows, smoother onboarding, multi-user support, and regional language depth.

๐Ÿค–

Advanced AI Utility

Making Sunny even more helpful โ€” moving beyond basic inventory logging to unlock nuanced, actionable insights from raw transaction data.

๐Ÿ“Š

Financial & Operational Structuring

Building a robust financial and operational framework, ensuring the business model is viable and scalable when the time comes to push for wider distribution.

๐Ÿช

Ground-Level Validation

Talking to more store owners. The product needs to be validated against real users in real stores. That ground truth is what will shape everything next.

If you love building things from zero to one, are passionate about the startup space, or have hands-on experience in retail tech, on-ground distribution, or AI product development โ€” I'd genuinely love to connect, exchange notes, and learn from your journey.

The problem is real. The technology is ready. The hard part โ€” getting it into the hands of the people who need it โ€” is just beginning.