Hacker
Prayog Dash
@pkd5896
Elsewhere
Projects
PayFirst
Flagsmith Experimentation HackathonNov 2026
PayFirst is a small Indian handloom store that runs one A/B test with Flagsmith Experimentation to answer a real e-commerce question: which checkout offer gets shoppers to pay upfront by UPI instead of cash on delivery, and is it worth the money? The problem: most Indian online orders are still COD, and COD orders are refused far more often than prepaid ones (22.3% vs 2.7% undelivered in Meesho's FY25 data). Every refused parcel is shipped back to the seller, costing around ₹350. Brands try discounts and fees but change several things at once, so nobody knows which single nudge works. I only test rewards, never COD fees, which India's consumer regulator has called a dark pattern. Who would use it: any Indian D2C or e-commerce team fighting returns (RTO). The setup script recreates the whole experiment in one command, and the agent works with their own margin and traffic numbers. How it works: one Flagsmith multivariate flag (checkout_nudge) serves three versions: a neutral checkout, ₹25 off on UPI, and free delivery on UPI. The server evaluates the flag locally, records the exposure when the shopper sees the checkout, prices the order on the server, and sends conversion events: orders paid by UPI (goal) and total orders (guardrail). With 3,000 simulated shoppers, my hypothesis (₹25 off wins) was wrong: free delivery won, 36.1% vs 30.1% paid upfront (+20%, over 99% chance to be best), with no drop in orders. An agent then reads the results from Flagsmith's API, runs safety checks, prices the decision in rupees, explains it in English and Hindi with Gemini, and only ships the winner through the same flag after a human types "ship."