How I Failed to Build My WhatsApp Agent But Learned to Love the Challenge
summary
Built a prototype that indexes 112 WhatsApp groups (estimated ~1.5M tokens per group) and returns summarized answers with clickable links to the exact messages, but it’s imperfect and needed many iterations. Key tools and choices: two-hour silence heuristic to break chats into “conversations,” use of an LLM for query parsing, classic embeddings plus a hybrid retrieval (embeddings + LLM-generated keywords) approach, and a Cursor-powered UI. Evaluation uses a hand-made Q/A dataset and precision@k / recall@k; hybrid boosts recall dramatically though edge cases still miss.
AI-written summary · about
