Project: Stitch Fix

Stitch Fix thumbnail 1
Stitch Fix thumbnail 2
Stitch Fix thumbnail 3
Stitch Fix thumbnail 4
Stitch Fix thumbnail 5
Stitch Fix main image

Client Engagement Acceleration System

Stitch Fix

Web ApplicationServerless

A client engagement acceleration system that monitors customer engagement, identifies at-risk clients, and automatically generates personalized re-engagement emails using AI.

Completion DateMarch 21, 2025
Project Day5 of 10

Project Demo

Project Metrics

7
Hours Spent
7,312
Lines of Code
2,479
Lines of Markdown
$51.9
LLM Cost

Project Details

The Client Engagement Acceleration System reduces client churn and increases retention by proactively identifying disengagement risk and automating personalized re-engagement, directly addressing a key business risk identified in Stitch Fix's SEC report.

Business Value

  • Customer Retention
  • Engagement Analytics

Key Features

Engagement Monitoring System

Sophisticated scoring algorithm based on order recency, frequency, and value with real-time tracking of client engagement metrics.

Automated Re-engagement System

AI-powered generation of highly personalized emails with structured output in consistent JSON format and HTML-formatted email content with personalized recommendations.

Management Dashboard

Real-time visibility into client engagement metrics with user management interface for creating and updating clients.

Event-Driven Architecture

DynamoDB Streams for capturing data changes, SNS/SQS for reliable message delivery, and Lambda functions for event processing.

Technologies Used

Frontend

ReactTypeScriptCSS ModulesNx monorepo

Backend

GoNode.jsExpress.jsAWS Lambda

DevOps

AWS CDKDynamoDBSNS/SQSS3/CloudFront

Other

AI IntegrationEvent-Driven Architecture

Challenges & Solutions

Email generation not working for users with low engagement scores

Modified the email processor Lambda to use the existing engagement score from the database instead of recalculating it, ensuring emails are generated for users with low engagement scores.

Email sending failing due to SES verification issues

Removed SES dependency and modified the Lambda to skip actual email sending and just mark emails as "SENT" in DynamoDB, eliminating the need for email verification in AWS SES.

Email content not properly formatted as HTML

Implemented structured output with JSON Schema validation, switched to openai/gpt-4o model for better structured output support, and enhanced the prompt to explicitly require JSON output.

Key Learnings

  • Event-Driven Architecture: The event-driven architecture provided a clean separation of concerns, enabling loose coupling, scalability, and resilience.
  • AI-Powered Content Generation: Structured output with JSON Schema validation proved essential for reliable AI-generated content.
  • Multi-Language Implementation: Using Go for the email processor alongside TypeScript for other components demonstrated the value of selecting the right language for specific workloads.
  • Executive Communication Style: The Stitch Fix project featured the strongest email communication so far, adopting a style inspired by Mark Zuckerberg.