The brief
Product teams drowning in Intercom threads, Notion docs and "quick voice notes". One inbox, AI-clustered, ranked by impact.
The architecture
A tiny script tag, a Cloud DB table, and the AI Gateway for clustering. The whole thing fits in under 400 lines.
Lesson
Embedding is the hard part — not the AI. We spent 80% of the time on the iframe, 20% on the model.