{"slug": "turning-whatsapp-bursts-into-briefs-a-local-ai-tool-for-freelancers-small", "title": "Turning WhatsApp Bursts into Briefs: A Local AI Tool for Freelancers & Small Businesses", "summary": "A developer built Client Buddy, a privacy-first, local-first client intelligence dashboard that captures live WhatsApp message streams via an authenticated headless browser session and aggregates them with a custom 2-minute sliding-window batching engine. The tool runs open-weight models (llama3.2:latest or gemma:2b) locally through Ollama to generate structured executive briefs with deliverables, deadlines and suggested reply drafts, and escalates critical incidents via an ElevenLabs-synthesized voice alert delivered through Twilio. Raw messages are purged by a MongoDB 7-day TTL index, and the system enforces a strict zero auto-reply policy requiring human discretion.", "body_md": "*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle](https://dev.to/challenges/hacktoberfest-week2-2026-10-12)*\n\nClient communication on WhatsApp is notoriously chaotic. Freelancers and agency owners rarely receive structured project briefs; instead, clients send rapid-fire bursts of fragmented messages that bury essential scope shifts, budgets, and deadlines.\n\nI built Client Buddy (formerly ClientPulse AI), a privacy-first, local-first client intelligence dashboard. It solves the \"fragmented burst\" problem by securely capturing live WhatsApp message streams via an authenticated headless web session and aggregating them using a custom 2-minute sliding-window batching engine.\n\nOnce a client finishes typing, Client Buddy processes the grouped messages entirely locally on your hardware to generate structured executive briefs containing explicit deliverables, hard deadlines, and tone-matched suggested reply drafts.\n\nTo respect professional boundaries, it enforces a strict \"Zero Auto-Reply\" policy—the application never messages clients automatically, ensuring all outbound communication requires human discretion via 1-click copy-paste drafts. For severe incidents (like a server crash or payment failure), the system flags the batch as CRITICAL and triggers an immediate outbound phone call alert to your mobile device using a synthesized AI voice.\n\nVideo Demo[[https://youtu.be/T6_h7ZFzigc](https://youtu.be/T6_h7ZFzigc)]\n\nCode Base[[https://github.com/Mritunjaii/Client-Buddy.git](https://github.com/Mritunjaii/Client-Buddy.git)]\n\nClient Buddy is structured as a modern monorepo separating the dashboard from the heavy-lifting background workers.\n\nThe Ingestion Engine: I used whatsapp-web.js with Puppeteer to run a headless browser session that securely captures live incoming messages.\n\nThe Sliding-Window Batcher: To prevent disjointed summaries, incoming messages from the same chat reset a 120-second inactivity countdown (flushAt). I used MongoDB to store these pending batches, implementing atomic lease locks (findOneAndUpdate) to guarantee thread safety and exactly-once processing across background workers.\n\nLocal-First AI: The background worker feeds the aggregated batch into Ollama, running open-weight models (llama3.2:latest or gemma:2b) locally. The prompt forces strict JSON outputs to populate the Next.js dashboard with requirements, open questions, and drafted replies.\n\nCritical Alerts: If the local LLM classifies a burst as a CRITICAL emergency, the backend calls the ElevenLabs API (eleven_multilingual_v2) to synthesize a realistic voice briefing, and uses Twilio to literally ring my mobile phone with the alert.\n\nZero-Footprint Privacy: Raw source messages are protected by a native MongoDB 7-day TTL index (expireAfterSeconds: 0), automatically purging raw chat records to maintain GDPR compliance.\n\nWhen you are managing client relationships, privacy is non-negotiable. Processing client NDAs, proprietary code snippets, and financial budgets through a closed-source cloud API is often a massive compliance violation.\n\nOpen innovation made Client Buddy possible. By leveraging local inference through Ollama and open-weight models, sensitive conversation histories never leave the user's machine for analysis. It provides enterprise-grade intelligence with zero cloud LLM exposure and zero per-token costs. Open models give freelancers the power of advanced AI without forcing them to compromise their clients' trust.\n\nI am submitting Client Buddy for the following prize categories:\n\n**- Best Use of Gemma:** Utilized locally via Ollama as the core reasoning engine to extract structured deadlines, requirements, and reply drafts from messy chat data.   \n\n**- Best Use of MongoDB Atlas:** Used for complex state management, atomic worker lease locks (findOneAndUpdate) for the batching engine, and TTL indexes for privacy-first raw data purging.   \n\n**- Best Use of ElevenLabs:** Integrated the eleven_multilingual_v2 model to synthesize crystal-clear, natural speech for outbound emergency PSTN phone calls.", "url": "https://wpnews.pro/news/turning-whatsapp-bursts-into-briefs-a-local-ai-tool-for-freelancers-small", "canonical_source": "https://dev.to/mritunjai/turning-whatsapp-bursts-into-briefs-a-local-ai-tool-for-freelancers-small-businesses-4oi4", "published_at": "2026-10-15 20:51:40+00:00", "updated_at": "2026-10-15 20:56:46.475797+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "ai-products", "developer-tools", "mlops"], "entities": ["Client Buddy", "Ollama", "WhatsApp", "MongoDB", "ElevenLabs", "Twilio", "Gemma", "Next.js"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/turning-whatsapp-bursts-into-briefs-a-local-ai-tool-for-freelancers-small", "markdown": "https://wpnews.pro/news/turning-whatsapp-bursts-into-briefs-a-local-ai-tool-for-freelancers-small.md", "text": "https://wpnews.pro/news/turning-whatsapp-bursts-into-briefs-a-local-ai-tool-for-freelancers-small.txt", "jsonld": "https://wpnews.pro/news/turning-whatsapp-bursts-into-briefs-a-local-ai-tool-for-freelancers-small.jsonld"}}