# AI lookbook: An app that shows clients their suit before we make it.

> An AI app that shows clients what their custom garment will look like on them.

- Builder: Idrees Kamal (https://idreeskamal.com)
- Context: Kavalier · Founder & Operator · 2025
- Status: Used in every consultation
- Stack: React, TypeScript, Express, Gemini API, Playwright
- Last updated: 2026-11-11

## Results

- +30%: close rate since the lookbook joined the consultation (source: Kavalier sales records, before vs. after the lookbook)
- Every: sales consultation uses it (source: Kavalier consultation workflow)
- ~8,800: lines of TypeScript with Playwright end-to-end tests (source: Application source code)

## The problem

Fabric swatches don’t help most prospects imagine a finished custom garment on themselves. That makes the sale harder.

## What I did

I picked the problem, worked out how it would fit into a consultation and built the app with AI coding tools. I did the integration, debugging and testing myself.

## Decisions that mattered

1. Use the client’s own photo and style profile, so they see themselves in the clothes instead of a model.
2. A React and TypeScript front end, with an Express backend that calls the Gemini API to generate the images.
3. Only generate garments and fabrics Kavalier can actually make, so we never show a client something we can’t deliver.
4. Make it hold up in a live consultation, with image checks, retries with backoff, timeouts, and handling for rate limits and dropped connections.
5. Test the whole generation flow end to end with Playwright.

## What changed

The lookbook is used in every Kavalier sales consultation, and the close rate is up 30%. Clients now talk through pictures of themselves in the garment.

## Evidence

The working app, its end-to-end tests and the original demo video.
- Watch the demo: https://idreeskamal.com/videos/kavalier-promo.mp4

More of Idrees Kamal's work: https://idreeskamal.com/ · Contact: ikamal97@gmail.com
