Problem
Wayfair runs a consumer storefront and a separate site, Wayfair Professional, for business buyers. Many business buyers shop on the consumer site and do not know the business offer exists. The sales team wants to contact them but cannot tell which customers are businesses, because unenrolled ones look like ordinary consumers. Timing matters: customers are 3x as likely to enroll if reached right after an order.
Example from the article: an office manager furnishing a corporate location, or a hotel chain furnishing rooms, orders on the consumer site without knowing about bulk orders, multi-address delivery or special pricing.
Solution in brief
Hamlet Order Confirmation (OC) scores a customer in real time after each order with an XGBoost model that outputs P(isB2B). Labels come from known customers, record linkage to business data and an offline neural network. Most of the 100+ features are precomputed so inference fits a sub-second limit, and each outreach channel gets its own threshold.
Questions this case answers
- How to train a classifier for a hidden customer type when the known positives are few and unlabeled customers contain hidden positives
- How to serve a model with 100+ real-time and historical features inside a sub-second latency limit
- How to convert one model score into several actions when each action has a different cost of a false positive
- How to find business buyers among consumer-site shoppers when only a small share of customers is labeled as business or consumer?
Tools and methods
- Three-step labeling — known labels, record linkage, synthetic labels from a neural network
- Record linkage — matches customers to known businesses by shipping and billing address
- XGBoost — the online classifier, tuned for PR AUC
- Aerospike — serves streaming features computed over the last minutes or hours
- Vertex feature store — holds features precomputed every 12 hours
- Per-channel thresholds — high precision for phone calls, high recall for on-site messaging
Google or a one-time email code. No password.
