Problem
Teams running LLM agents cannot read millions of conversations: one turn can hide about 40 tool calls, a chat can run 10-20 rounds, and users write in many languages. Traditional logs alone miss what matters for the AI part of an app; error logging stays the bare minimum. Teams plan rebuilds where a prompt fix would do.
Example from the article: a voice agent was blamed for weak retrieval, but logs showed it never offered upsells. Two added prompt lines were estimated to bring 20-30% more revenue.
Solution in brief
Summarize each conversation with an LLM, cluster the summaries bottom-up, and read the clusters to find recurring demand. Sort each problem into missing capability (a tool) or missing inventory (data). Turn each stable cluster into an LLM classifier checked on a small hand-labelled set, so problem sizes are measured and tracked. Demo result: classifier accuracy 66% to 89% on 100 examples. It suits products with logged free-text requests (agent, chatbot, support or search queries), not structured clickstream.
Questions this case answers
- How to discover and prioritize the main failure and demand themes in a corpus of free-text interactions too large to read, when logs and error rates do not show them
- How to measure the size of a discovered theme over time when clustering is unstable and has no ground truth
- How to find and rank the biggest user problems across millions of multi-turn agent conversations that nobody can read?
- How to tell whether a user complaint is a missing capability, missing data, or a prompt problem before planning a fix?
Tools and methods
- Summarization and hierarchical clustering — one summary per conversation, then clusters of clusters.
- UMAP (Uniform Manifold Approximation and Projection) — 2D map.
- LLM-as-a-judge classifier with few-shot prompting — assigns each conversation to a cluster category so you can count it.
- Streamlit — quick labeling interface.
- Kura — the speaker's open-source library that reimplements Anthropic's Clio, a conversation-clustering system.
Google or a one-time email code. No password.