MU
← All Projects2.8
Cassandra Furs: AI Inventory Pipeline
AI-PoweredAI Automation
An end-to-end AI-powered inventory pipeline for a luxury fur retailer. Takes raw product photos from social media, uses AI vision to classify products (name, price, material, category), smart-crops social media artifacts (Facebook reactions, text overlays, play buttons), enhances images for e-commerce, and pushes to Firestore as base64 data URLs. Includes AI image generation via OpenAI gpt-image-1 for missing product shots and Gemini 2.5 Flash for studio background replacement. Products go live instantly with no redeploy needed. The storefront features Stripe checkout with Affirm BNPL, product filtering, and a cart system.
Technology Stack
System Architecture
Loading diagram...
Specifications
- ▸AI Vision Classification: Analyzes raw social media photos to identify product name, price, material, and category
- ▸Smart Cropping: Percentage-based edge cropping removes Facebook reactions, text bars, and supplier watermarks
- ▸E-Commerce Enhancement: Brightness, contrast, color saturation, and unsharp mask tuned for luxury product presentation
- ▸AI Image Generation: OpenAI gpt-image-1 generates studio-quality product photos from text prompts
- ▸AI Background Replacement: Gemini 2.5 Flash replaces backgrounds with clean white studio shots, multi-angle views
- ▸Base64 Firestore Push: Images converted to data URLs and stored directly in Firestore for instant availability
- ▸Stripe + Affirm Checkout: Full checkout flow with card payments, Affirm BNPL, NY tax calculation, and shipping
- ▸Zero-Deploy Updates: New products appear live immediately after Firestore push with no site redeploy
Design Decisions
| Challenge | Solution |
|---|---|
| Client photos are social media screenshots with overlays | AI vision classifies products while smart crop removes artifacts by percentage |
| Some products have no photos at all | OpenAI gpt-image-1 generates studio-quality product shots from descriptive prompts |
| Raw photos have inconsistent backgrounds | Gemini 2.5 Flash replaces backgrounds with clean white studio shots |
| Image hosting and CDN costs | Store images as base64 data URLs directly in Firestore documents |
| High-value products need financing options | Stripe checkout with Affirm BNPL integration for luxury price points |
| Client needs instant product updates | Firestore-first architecture means new products go live without redeploying the site |
Process Flow
Loading diagram...