Hair Color Advisor
Conversational assistant for hair colorists that recommends shades and calculates real dye formulas, shown as interactive widgets in a mobile app.
Architecture
DSPy ReAct agent with nine deterministic colorimetry tools (developer strength, lift level, undertone neutralization, mixing). A FastAPI server streams AG-UI protocol events over WebSocket, and a Flutter client with its own AG-UI implementation renders each tool call as a card: color wheel, feasibility gauge or formula.
Highlights
- Generative UI over the AG-UI protocol
- Formulas calculated in code, not by the model
- Scripted conversation test scenarios