AI-Powered Customer Interest Generation for Personalized E-commerce Recommendations

wayfair · E-commerce · 2025 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: E-commerce personalization and recommendations

Wayfair needed to infer nuanced customer interests from behavior in a way that goes beyond fixed taxonomies and traditional affinity models, while keeping personalization explainable, scalable, and cost-effective.

Constraints:

Architecture

Wayfair's system runs offline batch jobs that feed curated customer search, view, add-to-cart, wishlist, and purchase signals into Gemini prompts. An in-house compression model reduces historical context, semantic clustering removes duplicate interests, and each generated interest stores confidence, reasoning, query, and carousel-title metadata. At serving time, Dynamic Page Constructor ranks stored interests, UI Composer builds carousels, and Wayfair semantic search retrieves products.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  customer-behavior-history["customer-behavior-history"]
  historical-context-compressor["historical-context-compressor"]
  gemini-interest-generator["gemini-interest-generator"]
  semantic-interest-clustering["semantic-interest-clustering"]
  interest-metadata-store["interest-metadata-store"]
  dynamic-page-constructor["dynamic-page-constructor"]
  ui-composer["ui-composer"]
  wayfair-semantic-search["wayfair-semantic-search"]
  validation-suite["validation-suite"]
  customer-behavior-history --> historical-context-compressor
  historical-context-compressor --> gemini-interest-generator
  gemini-interest-generator --> semantic-interest-clustering
  gemini-interest-generator --> interest-metadata-store
  semantic-interest-clustering --> interest-metadata-store
  interest-metadata-store --> dynamic-page-constructor
  dynamic-page-constructor --> ui-composer
  ui-composer --> wayfair-semantic-search
  validation-suite --> gemini-interest-generator
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
customer-behavior-history Search, product-detail, add-to-cart, wishlist, and purchase signals used as customer context. historical-context-compressor
historical-context-compressor In-house model that reduces historical context size before Gemini prompting. gemini-interest-generator
gemini-interest-generator Google Gemini prompt workflow that produces free-form customer interests and metadata. semantic-interest-clustering, interest-metadata-store
semantic-interest-clustering Deduplication layer that groups semantically similar generated interests. interest-metadata-store
interest-metadata-store Stores generated interests with confidence level, reasoning, search query, and carousel title. dynamic-page-constructor
dynamic-page-constructor Retrieves, processes, and ranks stored interests when a customer lands on the homepage. ui-composer
ui-composer Creates personalized interest-driven product carousels. wayfair-semantic-search
wayfair-semantic-search Product retrieval model that uses generated queries to fetch carousel products. —
validation-suite Offline, LLM-as-judge, and delayed validation checks for alignment, durability, and predictive power. gemini-interest-generator

Data flow

Historical customer behavior is compressed and sent to Gemini through curated prompts. Gemini generates free-form interests and metadata, similar interests are clustered, and durable interest records are stored for real-time use. When a customer lands on the homepage, Dynamic Page Constructor retrieves and ranks interests, UI Composer renders personalized carousels, and Wayfair's semantic search uses the generated query metadata to fetch products.

3 supporting quotes
“We feed customers’ search queries, viewed product details, Add to Cart (ATC), wishlist and purchase signals from the historical data into Gemini using curated prompts”article, stated
“When a customer lands on Wayfair’s homepage, the Dynamic Page Constructor retrieves their interests and associated metadata.”article, stated
“The products in the carousels are retrieved by Wayfair’s search model.”article, stated

Why this architecture

Wayfair moved to Gemini-generated free-form interests because fixed taxonomies and traditional affinity labels miss latent customer needs. Offline generation controls cost and enables real-time serving, compression reduces prompt context cost without losing useful behavior, clustering keeps interests non-duplicative, and biweekly refresh balances personalization accuracy with compute expense.

3 supporting quotes
“Traditional customer understanding models predict affinities such as style or brand preferences from behavioral data like clicks, searches and purchases. However, they rely on fixed taxonomies”article, stated
“We developed an in-house model that compresses the historical data by up to 70% yielding significantly lower costs without compromising with the available information.”article, stated
“we experimented thoroughly and found a biweekly cadence for regenerating customer interests based on the interests’ durability analysis works the best.”article, stated

Models used: Google Gemini · Wayfair proprietary semantic search model · in-house historical-data compression model · LLM-as-judge validators

Scale

Alternatives considered (roads not taken)

Fixed-taxonomy affinity models only

Rejected because: Wayfair needed free-form interests that can capture implicit patterns and emerging customer nuances.

“they rely on fixed taxonomies, require extensive training data and often miss implicit patterns or latent interests”article, stated

Feeding uncompressed full history into Gemini

Rejected because: The team compressed history by up to 70% to reduce context cost while keeping useful information.

“An evolving challenge in the GenAI space is the trade-off between context, cost and performance”article, stated

Leaving duplicate generated interests unmerged

Rejected because: Semantic clustering removes duplicate or similar interests to improve result quality.

“We then cluster the generated interests into semantically similar themes to remove duplicates and ensure high-quality results.”article, stated

Continuous or very stale interest refresh

Rejected because: Biweekly regeneration balanced personalization accuracy, system efficiency, and computational cost.

“To balance personalization accuracy, system efficiency and computational cost, we experimented thoroughly and found a biweekly cadence”article, stated

Patterns

prompt-chaining (interest-generation)

Curated Gemini prompts convert customer behavior histories into free-form interests plus metadata that downstream ranking and UI systems consume.

“We feed customers’ search queries, viewed product details, Add to Cart (ATC), wishlist and purchase signals from the historical data into Gemini using curated prompts”article, stated

context-compaction (cost-control)

An in-house model compresses customer history before LLM prompting to reduce cost while preserving enough behavioral information.

“We developed an in-house model that compresses the historical data by up to 70% yielding significantly lower costs without compromising with the available information.”article, stated

confidence-thresholding (interest-metadata)

Each generated interest stores a confidence level tied to frequency and consistency in recent activity.

“LLM is prompted to provide low, medium and high confidence levels indicating the strength of the generated interest”article, stated

retrieval-ranking (personalized-carousel-ranking)

The homepage retrieves customer interests, ranks them, and uses Wayfair search to fetch products for personalized carousels.

“the Dynamic Page Constructor retrieves their interests and associated metadata. It processes and ranks them before passing to the UI Composer”article, stated

llm-as-judge (interest-validation)

Wayfair runs biweekly/monthly LLM-judge validation tasks for interest-activity alignment, temporal relevance, and concept mapping.

“LLM as Judge: Running bi-weekly/monthly validation using specific tasks (Interest-Activity Alignment, Temporal Relevance, Concept Mapping)”article, stated

batch-offline-processing (interest-refresh)

Customer interests are generated offline through large-scale batch jobs and stored for real-time homepage/product-page use.

“These interests are generated offline through large-scale batch jobs that process rich customer engagement data and are then stored for real-time use.”article, stated

Tradeoffs

How to represent customer preferences.

Chose free-form LLM-generated interests over fixed taxonomies and traditional affinity labels only.

Rationale: Free-form interests can capture latent functional and lifestyle needs that rigid taxonomies miss, but require validation and deduplication.

“Traditional customer understanding models predict affinities such as style or brand preferences from behavioral data like clicks, searches and purchases. However, they rely on fixed taxonomies”article, implied

How often to refresh interests.

Chose biweekly regeneration over continuous regeneration or stale long-term interests.

Rationale: Biweekly refresh balanced personalization accuracy, operational efficiency, and computation cost in Wayfair's experiments.

“To balance personalization accuracy, system efficiency and computational cost, we experimented thoroughly and found a biweekly cadence”article, stated

Gotchas (what bit them)

LLM context, cost, and quality are in tension.

Root cause: Customer histories are rich, but sending too much behavior context to Gemini raises operational cost.

Resolution: Wayfair compresses history by up to 70% before prompting while preserving relevant information.

“An evolving challenge in the GenAI space is the trade-off between context, cost and performance (quality of results).”article, stated

Generated interests can duplicate semantically similar themes.

Root cause: Free-form LLM output may create multiple phrases for the same underlying customer need.

Resolution: Wayfair clusters generated interests into semantically similar themes and removes duplicates.

“We then cluster the generated interests into semantically similar themes to remove duplicates and ensure high-quality results.”article, stated

Interest freshness affects both customer experience and compute cost.

Root cause: Some interests are durable, while moving/lifestyle changes can quickly alter what should be recommended.

Resolution: Wayfair experiments with refresh cadence and uses biweekly regeneration based on durability analysis.

“determining how often customer interests should be refreshed – it directly impacts the operational cost and the customer experience.”article, stated

Evaluation

Wayfair validates generated interests with offline experiments, predictive-model alignment, small-sample LLM judging, out-of-time purchase validation, and customer engagement/revenue measurements.

Metrics: consistency · alignment · predictive power · interest-activity alignment · temporal relevance · engagement · revenue

“We validate generated interests across multiple dimensions — consistency, alignment and predictive power”article, stated
“Out-of-Time (OOT)/Delayed Validation: Assessing predictive power by observing customer purchases one to three months later.”article, stated

Outcomes

Wayfair's system generates offline interests for millions of customers and serves them in real time through homepage and product-detail-page recommendation surfaces.

“Our new interest-based product carousels on the homepage are already driving measurable gains in engagement and revenue”article, stated
“The Interest Generation System is built to operate efficiently at scale, generating personalized interests for millions of Wayfair customers.”article, stated