Ai4
Synchronized multimodal session replay and automated evaluation loops resolved early production failures across noisy real-world environments, enabling non-technical shoppers to complete complex prescription purchases online without visiting physical stores.
AI-assisted summary of From Demo to Millions: The Observability Loop Behind Lenskart's Voice, Video & AR Agents with GeoIQ — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published by Ai4 on YouTube on August 21, 2026, this talk features Tusheet Shrivastava, Founder and CTO of GeoIQ (a Lenskart company), discussing the engineering behind scaling multimodal retail agents. According to the page description, the session provides a practical blueprint for building an observability loop that combines traces, automated evaluations, human feedback, and production metrics to monitor voice, video, and AR agents in production.
## TL;DR Tusheet Shrivastava breaks down how Lenskart deployed and hardened an agentic voice, video, and AR shopping assistant to overcome the distinct frictions of prescription eyewear e-commerce. He explains the system's WebRTC multi-agent architecture and real-time bi-directional UI state synchronization, while candidly detailing severe early failure modes caused by transit noise, compound user intents, and dropped FAQ tool invocations. To resolve these P99 breakdowns, Lenskart built ScreenIQ and a three-layer observability loop featuring automated LLM judges, monotonic timeline replays, and regression testing, ultimately achieving a 7% lift in digital conversion rates across millions of users.
## Atmosphere & style The presentation carries a pragmatic, engineering-first tone, pivoting from an ambitious architectural walkthrough to an honest post-mortem of real-world production failures. Shrivastava speaks with candid authenticity about the sleepless nights and messy edge cases that traditional dashboard averages masked during early deployment. The delivery feels technical, grounded, and deeply empathetic to diverse end users, highlighting the hard-won lessons required to turn fragile AI demos into resilient production systems.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=mFB21_l8rag&t=4s) Lenskart operates over 2,800 omnichannel retail stores and eye care centers across multiple geographies alongside its digital platform. - [01:31](https://www.youtube.com/watch?v=mFB21_l8rag&t=91s) Prescription eyewear e-commerce involves complex variables—including pupillary distance (PD), ocular powers, lens indices, and specialized coatings—that create significantly higher friction than standard retail checkout flows. - [01:31](https://www.youtube.com/watch?v=mFB21_l8rag&t=91s) Older demographics require the most complex lens configurations but struggle most with dense app interfaces, making interactive voice and video shopping assistants essential. - [04:42](https://www.youtube.com/watch?v=mFB21_l8rag&t=282s) Eyewear shoppers frequently describe their optical needs in colloquial, unstructured terms and non-technical language (such as describing photochromic lenses by their behavior in sunlight). - [06:00](https://www.youtube.com/watch?v=mFB21_l8rag&t=360s) The multimodal shopping assistant conducts end-to-end sales consultations by analyzing facial landmarks via camera feed, rendering AR try-ons, comparing lens tiers, and applying promotions directly to cart. - [09:03](https://www.youtube.com/watch?v=mFB21_l8rag&t=543s) The technical architecture relies on low-latency WebRTC media streams coordinated across specialized multi-agent systems with vector database search and RAG knowledge retrieval. - [09:03](https://www.youtube.com/watch?v=mFB21_l8rag&t=543s) Bi-directional UI state synchronization is critical to keep the conversational agent and user touch/scroll actions aligned in real time throughout the session. - [12:07](https://www.youtube.com/watch?v=mFB21_l8rag&t=727s) Lenskart developed ScreenIQ, an observability tool that reconstructs audio, video landmarks, prompt context, tool calls, and user UI gestures into a unified, monotonic timeline for replay. - [15:11](https://www.youtube.com/watch?v=mFB21_l8rag&t=911s) Initial production deployment revealed critical P99 failure modes, including metro/bus ambient noise degradation, uncalled FAQ tools causing hallucinations, and failure to handle compound intents. - [17:15](https://www.youtube.com/watch?v=mFB21_l8rag&t=1035s) A three-layer observability loop combines automated post-session LLM judges, ScreenIQ visual replay filtering, and trace-level regression testing to systematically harden agents. - [17:15](https://www.youtube.com/watch?v=mFB21_l8rag&t=1035s) Hardening the multimodal assistant produced a 7% increase in digital conversion rate, driven largely by older customers who previously abandoned digital checkouts for physical stores.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=mFB21_l8rag&t=4s) Introduction and Lenskart's Omnichannel Scale
Tusheet Shrivastava introduces his background of over 15 years building machine learning and data science systems. He co-founded GeoIQ, a spatial intelligence company that was acquired by Lenskart, and has since been leading the development of production-grade AI agents at Lenskart. The flagship project is an AI stylist and shopping assistant deployed at massive scale across India to assist millions of customers in finding, styling, and purchasing eyewear.
Lenskart operates as India's largest eyewear manufacturer and retailer, managing an omnichannel network of over 2,800 physical stores across multiple international geographies alongside its digital platforms. The scale encompasses physical eye care centers and digital customer journeys, requiring seamless continuity between online and offline shopping behaviors for a vast user base.
- **Speaker Background:** Tusheet Shrivastava (Founder & CTO, GeoIQ; AI Engineering Lead at Lenskart; 15 years in ML/data science). - **Lenskart Physical Footprint:** 2,800+ omnichannel retail stores and eye care centers across multiple geographies.
---
[01:31](https://www.youtube.com/watch?v=mFB21_l8rag&t=91s) The Friction of Prescription Eyewear vs. Traditional E-Commerce
Shopping for prescription eyewear presents operational and technical hurdles that do not exist in standard e-commerce. In traditional retail journeys, a shopper selects a stock keeping unit (SKU), picks a size, completes checkout, and waits for shipment. In contrast, prescription eyewear requires selecting a frame geometry, ensuring the correct pupillary distance (PD)—the physical measurement between the eyes, which causes severe vision issues if miscalculated—configuring independent left and right eye sphere/cylinder powers, selecting specialized lens packages, and deciding on optional coatings such as anti-glare, blue-light filtering, and scratch resistance.
```mermaid flowchart TD accTitle: Traditional vs Eyewear E-Commerce Flow subgraph Traditional["Traditional E-Commerce"] T1["Select SKU"] --> T2["Choose Size"] --> T3["Checkout & Ship"] end subgraph Eyewear["Prescription Eyewear E-Commerce"] E1["Select Frame & Shape"] --> E2["Compute Facial Landmarks & PD"] E2 --> E3["Input Left / Right Power"] E3 --> E4["Choose Lens Package & Coatings"] E4 --> E5["Cart & Checkout"] end ```
Because of these technical complexities, customers are flooded with lifestyle and clinical questions that a static web page or standard app interface cannot resolve. Consequently, a large portion of shoppers historically defaulted to visiting physical stores to ask optometrists and store staff questions like "does this look good on me?" or "what kind of lens package should I buy if I have these preferences?" Furthermore, Lenskart's customer demographic in India spans from 8-year-olds to 80-year-olds. The elderly demographic requires the most complex multifocal and high-index lenses, yet they struggle the most with dense digital application interfaces. They are far more comfortable speaking naturally about their optical needs, creating a strong imperative for an interactive voice, video, and augmented reality shopping assistant.
- **Prescription Variables:** Pupillary distance (PD), independent left/right ocular power, frame face fit, lens refractive index, and specialized coatings. - **Demographic Spread:** Users aged 8 to 80; older users have the highest optical package complexity but the lowest fluency with complex app checkout flows.
---
[04:42](https://www.youtube.com/watch?v=mFB21_l8rag&t=282s) Conversational Search and Natural Customer Language
Traditional search engines depend on structured keywords, but real-world eyewear shoppers describe their aesthetic and functional needs in colloquial, unstructured terms. Users frequently ask the AI stylist qualitative style questions such as "will it look like a boring corporate or would it look like a cool Gen Z?" or ask for a "classy minimal old money vintage look."
These expressive queries also cross linguistic boundaries. In Hindi and multilingual Indian contexts, customers articulate technical requirements using descriptive behavior rather than technical optical jargon. For instance, customers describe photochromic lenses by asking in Hindi for "a frame which turns darker when there is sunlight and it turns lighter when there is shade," entirely omitting the industry term "photochromic." Traditional search bars fail on these queries, whereas an agentic conversational assistant can interpret the underlying intent and surface the right catalog items.
- **Aesthetic Intent:** Queries centered around cultural archetypes ("cool Gen Z", "old money vintage", "boring corporate"). - **Unstructured Optical Inquiries:** Functional descriptions of transition lenses without knowing technical terms like "photochromic".
---
[06:00](https://www.youtube.com/watch?v=mFB21_l8rag&t=360s) Step-by-Step Multimodal Agent Session Walkthrough
A live interaction showcases the end-to-end capabilities of the AI stylist. The session begins with the agent prompting the user in their preferred language, referencing previous browsing preferences (such as square transparent TR90 frames), and offering new recommendations. When the user asks for glasses that "actually suit my face," the agent accesses the real-time camera feed, analyzes facial geometry, and highlights angular, geometric, and square frames to add facial definition.
```mermaid flowchart LR accTitle: Customer Journey Through AI Voice and AR Agent subgraph Discovery["1. Discovery & Fit"] A["Voice Greeting"] --> B["Face Landmark Analysis"] B --> C["AR Frame Try-On"] end subgraph Inquiry["2. Product FAQ"] C --> D["Query: Weight & Comfort"] D --> E["FAQ Tool: TR90 Material & Nose Pads"] end subgraph Optical["3. Prescription & Cart"] E --> F["Power Selection: Distance Vision"] F --> G["Package Compare: Blue Screen vs OWNDAYS"] G --> H["Apply BOGO & Add to Cart"] end ```
The user proceeds through a complete sales and optometry consultation: 1. **Facial Feature Styling:** The agent overlays the frames onto the user's face using augmented reality (AR) try-on while explaining why geometric shapes balance their facial features. 2. **Product Deep-Dive & FAQ:** The user asks if the frames are heavy for all-day wear. The agent identifies the active frame as part of the *Lenskart Air* collection, detailing its lightweight TR90 material, stainless steel temples, and adjustable nose pads. 3. **Power Configuration:** When the user indicates they cannot see far-off objects (myopia), the agent maps the symptom to the "with power" option. 4. **Lens Package Comparison:** The agent compares three lens tiers: *Anti-Glare Premium* (double-sided anti-glare, scratch resistance), *Lenskart Blue Screen* (digital eye strain protection), and *OWNDAYS Japan Blue Plus Eye Shield* (advanced screen protection, crack/smudge resistance, and night driving coating). 5. **Price Sensitivity & Checkout:** When the user notes that the OWNDAYS package is too expensive for their budget, the agent seamlessly pivots to recommend the more affordable Lenskart Blue Screen package, applies a "Buy One Get One" (BOGO) promotion, and adds the configured product directly to the cart.
---
[09:03](https://www.youtube.com/watch?v=mFB21_l8rag&t=543s) Multi-Agent Architecture and Synchronized UI State
The technical engine powering the assistant relies on low-latency WebRTC media rooms that stream real-time audio and video from the mobile application. Behind this media layer sits a coordinated multi-agent orchestration network where specialized agents seamlessly hand off control depending on conversational stage: product discovery, AR virtual try-on, lens package selection, add-on customization, and cart checkout.
```mermaid flowchart TD accTitle: Lenskart Multi-Agent Architecture and State Sync subgraph Client["Client Application Layer"] App["Lenskart Mobile App (WebRTC Room)"] AR["Real-Time AR Try-On & UI Screen"] end subgraph Orchestration["Agent Orchestration Network"] Router["Session Router / Noise Filter"] AgentDisc["Product Discovery Agent"] AgentAR["AR Try-On Agent"] AgentLens["Lens Package Selector Agent"] AgentCart["Cart & Checkout Agent"] end subgraph Retrieval["Data & Retrieval Layer"] VecDB["Vector DB (Semantic Catalog Search)"] RAG["FAQ / Warranty RAG Engine"] Profile["User Profile & 100+ Face Landmark Points"] end
App <--> |Media Streams| Router Router --> AgentDisc & AgentAR & AgentLens & AgentCart AgentDisc <--> VecDB AgentLens <--> RAG AgentAR <--> Profile AgentDisc & AgentAR & AgentLens & AgentCart --> |Bi-directional State Updates| AR ```
Underneath the agent network, semantic search is executed via vector databases for natural language catalog discovery, alongside Retrieval-Augmented Generation (RAG) engines that ingest extensive knowledge bases on warranties, returns, and optical technicalities. The agent constantly incorporates real-time user profile attributes and computer vision landmarks.
The fundamental engineering challenge is **bi-directional UI state synchronization**. The agent does not simply generate voice responses; it controls the client-side visual interface in real time, rendering frame carousels, toggling AR glasses on the user's face, and updating product detail cards. Simultaneously, the user can manually tap the screen, swipe back, or inspect alternate SKUs. The agent must maintain total awareness of screen state at every millisecond to gracefully react whether an interaction is voice-driven, touch-driven, or an interleaved combination of both.
- **Streaming Protocol:** WebRTC audio and video rooms operating within the Lenskart native mobile app. - **Agent Subsystems:** Product Discovery, AR Try-On, Lens Package Selector, Add-on Handler, and Cart Manager. - **Knowledge Retrieval:** Vector database semantic search combined with FAQ RAG systems.
---
[12:07](https://www.youtube.com/watch?v=mFB21_l8rag&t=727s) ScreenIQ: Monotonic Timeline and Multimodal Replay
To debug complex, multimodal interactions where speech, vision, tool invocations, and manual screen gestures collide, Lenskart developed a proprietary observability platform called **ScreenIQ**. Standard backend distributed traces and span logs fall short because they fail to capture the visual and temporal context experienced by the end user.
ScreenIQ provides an in-sync, monotonic timeline that reconstructs every session event in strict chronological order. For any interaction, engineering and QA teams can jump to a specific timestamp to inspect: - The exact prompt context and system instructions loaded into the model. - Incoming audio cleaned of ambient noise and the resulting transcription. - Vision pipeline outputs, including over 100 facial landmark features used for aesthetic recommendations. - Downstream tool calls (e.g., catalog search, FAQ retrieval, cart mutations) along with their respective latencies. - The visual UI screen state and user touch inputs occurring alongside voice commands.
This visual replay loop removes ambiguity from post-incident debugging, allowing engineers to verify whether an awkward response stemmed from an ASR error, a slow tool invocation, a model reasoning failure, or an unexpected manual tap by the user.
- **Facial Landmark Pipeline:** Evaluates 100+ facial feature points in real time to drive shape recommendations. - **ScreenIQ Monotonic Timeline:** Unifies audio traces, visual frames, tool calls, and user tap events into a single replayable timeline.
---
[15:11](https://www.youtube.com/watch?v=mFB21_l8rag&t=911s) Production Hardening: P99 Failures and the Eight Failure Modes
Tusheet reflects candidly on the initial deployment of the agent, describing the first launch as "terrible" due to the overwhelming number of failure modes encountered in the wild. While standard metrics and average latencies appeared acceptable during internal staging, real-world customer sessions exposed severe breakdowns at the P99 tail.
```mermaid flowchart TD accTitle: Post-Launch Failure Modes Breakdown subgraph Failures["Production Failure Modes"] F1["Acoustic Ambient Noise (Metros & Buses)"] F2["Misunderstood Intent & Query Drifts"] F3["Uncalled or Misdirected FAQ Tool Calls"] F4["Product Hallucinations"] F5["Mismatched UI vs Conversation States"] F6["High P99 Tool Latencies"] end ```
Intensive debugging sessions and sleepless nights led the team to isolate eight primary failure categories that crippled the early agent experience: 1. **FAQ Retrieval Gaps & Hallucinations:** The agent failed to invoke the RAG FAQ tool when asked detailed product or material questions, leading it to hallucinate frame specifications. 2. **Acoustic Noise Degradation:** Users frequently engaged with the voice assistant in noisy environments like public buses, trains, and metro stations. Cross-talk and ambient transit noise polluted speech recognition, causing intent classification to drift wildly. 3. **Erroneous Tool Invocations:** The model triggered incorrect backend tools or executed them with invalid argument payloads. 4. **Multiple Intent Failures:** When users combined multiple conversational threads in one breath—such as evaluating facial aesthetics while simultaneously questioning frame durability—the agent often answered one aspect while misinterpreting or dropping the other entirely.
- **Deployment Realities:** Average latencies masked critical P99 latency spikes and tool execution failures. - **Primary Failure Modes:** Metro/bus background acoustic noise, dropped FAQ tool calls resulting in hallucinations, intent drift on compound queries, and desynchronized tool execution.
---
[17:15](https://www.youtube.com/watch?v=mFB21_l8rag&t=1035s) The 3-Layer Observability Loop and Business Impact
To create a self-healing development pipeline, Lenskart implemented a three-layer observability loop that combines automated evaluation with deterministic root-cause analysis:
1. **Post-Session LLM Judges:** Following every completed session, automated LLM judges evaluate the conversation history, scoring retrieval accuracy, conversational coherence, tool invocation correctness, and whether recommended frames satisfied the customer's constraints. 2. **Log Filtering & Session Replay:** Sessions receiving low judge scores or negative user feedback are automatically isolated. Engineers use ScreenIQ to replay the session's monotonic timeline and pinpoint the exact moment of failure. 3. **Trace Remediation & Regression Testing:** Engineers inspect trace spans, patch prompt boundaries, refine noise-filtering thresholds, or fix tool-calling schemas. The corrected pipeline is re-run against historical queries to verify that the failure mode is resolved before pushing to production.
```mermaid flowchart LR accTitle: Three-Layer Observability Closed Loop A["Production Sessions (Millions of Users)"] --> B["Layer 1: Automated LLM Judges"] B --> C["Filter Low-Relevance & Faulty Turns"] C --> D["Layer 2: ScreenIQ Session Replay"] D --> E["Layer 3: Trace Debugging & Fixes"] E --> F["Regression Query Testing"] F --> A ```
This production hardening transformed the agent into an effective revenue driver used by millions of customers across India. The deployment has achieved a **7% increase in conversion rate** across Lenskart's digital ecosystem. The most dramatic gains have emerged among older demographics who previously abandoned digital checkouts to visit physical stores for basic reassurance on prescriptions, warranties, and frame fits, but can now complete their purchases independently through voice-guided AI shopping.
- **Automated LLM Judges:** Score session turns post-call on retrieval relevance, tool invocation accuracy, and conversational quality. - **Conversion Metric:** 7% overall increase in digital conversion rate across Lenskart. - **Primary Beneficiary Segment:** Elderly and non-tech-fluent users successfully converting via assisted voice and video shopping without needing store visits.
## Notable quotes > Building a compelling AI demo is easy; making it reliable for millions of customers is the real challenge. — Tusheet Shrivastava
> [01:31](https://www.youtube.com/watch?v=mFB21_l8rag&t=91s) does this look good on me?
> [01:31](https://www.youtube.com/watch?v=mFB21_l8rag&t=91s) what kind of lens package should I buy if I have these preferences?
> [04:42](https://www.youtube.com/watch?v=mFB21_l8rag&t=282s) will it look like a boring corporate or would it look like a cool Gen Z?
> [04:42](https://www.youtube.com/watch?v=mFB21_l8rag&t=282s) classy minimal old money vintage look
> [04:42](https://www.youtube.com/watch?v=mFB21_l8rag&t=282s) a frame which turns darker when there is sunlight and it turns lighter when there is shade
> [06:00](https://www.youtube.com/watch?v=mFB21_l8rag&t=360s) actually suit my face
> [15:11](https://www.youtube.com/watch?v=mFB21_l8rag&t=911s) terrible — Tusheet Shrivastava
## Mentioned Tusheet Shrivastava, GeoIQ, Lenskart, Ai4, Lenskart Air, Anti-Glare Premium, Lenskart Blue Screen, OWNDAYS Japan Blue Plus Eye Shield, ScreenIQ, WebRTC
## Video description Tusheet Shrivastava - Founder, CTO, GeoIQ - A Lenskart Company
Building a compelling AI demo is easy; making it reliable for millions of customers is the real challenge. I will share how we built an observability loop at Lenskart to capture real-world interactions, uncover failures, and continuously improve our voice, video, and AR agents. The talk will explore how we monitor latency, conversation quality, visual understanding, product recommendations, and virtual try-on as parts of one connected customer experience. Attendees will learn how we combine traces, automated evaluations, human feedback, and production metrics to detect issues that conventional dashboards miss. Join this session for a practical blueprint for taking multimodal agents from promising demos to dependable production systems.
[Source](https://www.youtube.com/watch?v=mFB21_l8rag)