Inspiration
We started with a problem familiar to small neighborhood shops in Mexico and across Latin America. When stock lives in a notebook and sales happen mostly in cash, simple questions take work to answer. What is still in stock? How much did we sell today? Can this customer pay electronically? A weak internet connection makes it harder to rely on a digital tool during a sale.
We built IROS around the way a shopkeeper already works. A seller can ask about stock or describe a sale in everyday language, then review what IROS prepared and confirm it.
What it does
IROS Business gives sellers a catalog, a checkout workspace, and a view of their sales. Roni, the built-in assistant, can look up products, propose inventory changes, help prepare an order by voice, and explain confirmed sales figures in plain language.
When internet access drops, sellers can keep working with their loaded catalog in a compatible browser. With Gemini Nano already downloaded and the signed-in tab open, they can type an instruction, review the proposed change, and approve it. IROS marks the change as pending and syncs it with Firestore when the connection returns.
IROS Personal lets shoppers enter a five-digit code, review the items and total, and see their purchase history. The prototype uses PayPal Sandbox to demonstrate online checkout without a dedicated card terminal. Once IROS verifies the test payment, it updates both histories and deducts the sold quantities from inventory.
How we built it
We built the web app with Flask and JavaScript, with Firebase Authentication, App Check, and Cloud Firestore. Roni uses Gemini Live for online voice conversations and Firebase AI Logic to route written requests to Gemini in the cloud or Gemini Nano on the device.
We send proposed inventory changes through the same validation and review flow. The seller sees what will change and explicitly approves it. For checkout, the server calculates the order total and verifies the PayPal Sandbox capture before recording a confirmed sale.
Challenges we faced
The hardest part of working offline was deciding what the shopkeeper should see while a change was still waiting to sync. We had to detect when a device was connected to Wi-Fi but could no longer reach the internet, preserve pending edits while the tab stayed open, and handle cases where another session had already changed the same product.
We also had to make spoken requests precise enough for inventory work. A shop might sell several products with similar names. Roni can ask for clarification, and the review screen gives the seller a chance to catch the wrong product, price, or quantity before approving the change.
What we learned
Hybrid AI was most useful when each mode had a clear job. Cloud voice helps while the seller is busy at the counter. On-device text keeps catalog work moving when internet access drops. In both modes, showing what was proposed, what the seller approved, and what actually synced mattered as much as getting the AI response right.
Built With
- cloud-firestore
- dart
- firebase-ai-logic
- firebase-app-check
- firebase-authentication
- flask
- flutter
- gemini-live
- gemini-nano
- javascript
- paypal-sandbox
- python