Nexa: Automatically Surfacing Business Impacting Insights in E-commerce Applications
Internet-scale e-commerce storefronts serve millions of users (and increasingly user appointed agents). These storefronts are being rearchitected as compound AI systems with agentic workflows for customer interactions and backend processing. As this AI transformation and agentic economy is underway, product teams need to get actionable insights into business-impacting outcomes. Classical approaches such as static funnels or static dashboards cannot deal with the scale, diversity, and contextual interactions that happen over billions of user interactions. As such, we need novel agentic approaches to automatically surface business-impacting insights. We present Nexa, an agentic framework that surfaces business insights automatically. We formalize the target of automated insight discovery in terms of Contrastive Stateful Trajectories (CST): a structural specification over contextual and sequential behavioral patterns whose presence or absence significantly shifts a business KPI across user cohorts. Nexa satisfies three design requirements simultaneously: expressivity through the CST abstraction, scalability through a custom analytics backend for CST computations, and explainability by overlaying usable presentation layers for analysts to verify the insights. We demonstrate Nexa on representative workloads and show that it surfaces actionable contextual patterns spanning user, app, agent, and backend behaviors.