RelationshipsCase study 09 / 20

WhatsApp CRM

A personal CRM wired into my own WhatsApp and iMessage. It reminds me who I haven't spoken to, drafts replies that sound like me, and lets me ask questions of years of chat history.

Role

Sole designer and engineer

Status

● Running in production

Models

Claude (headless) · free keyword pre-filters · local Whisper

Stack

Node + Fastify · Baileys · BlueBubbles · Claude (headless) · SQLite FTS5 · PWA

3,000+
replies sent, drafted in my voice
Live
▶ Watch the demo

The short version

  • Over 3,000 replies sent through it, each drafted in my voice and sent by my tap.
  • Retrieval over my whole message history, answered only from the retrieved excerpts, with who said it and when.
  • Free keyword filters decide when a model call is worth making at all.

01Why I built it

The people I care about most were the ones I replied to last, because their messages didn't come with a deadline. And useful things (a date, a lead, an answer someone gave me two years ago) were buried in chats I'd never scroll back through.

I wanted relationships kept on purpose rather than by accident, and my chat history to become something I can ask.

02How it works

  1. ConnectMy own WhatsApp as a linked device, and iMessage through BlueBubbles on the Mac. One person across both apps shares memory, voice and cadence.
  2. RemindEach contact is family, friend or colleague with their own cadence. Overdue people surface first, here and in Butler.
  3. DraftReplies are drafted from my style files plus examples of how I actually write to that person.
  4. ExtractA keyword pre-filter, then a classifier, proposes events and dates into a review queue, resolving “next Thursday” in London time.
  5. ScoutGroup chats are scanned for real business leads for my two service businesses, grounded in each one's ideal customer and gated by confidence.
  6. AskQuestions over the full history: plan the search, retrieve from a live full-text index, answer only from the excerpts, with attribution.

03Model choices, and why

Drafting replies, answering questions

Claude via headless Claude Code

Sounding like me to my mum is different from sounding like me to a client. That needs a model that can follow style and context closely.

Leads and events in group chats

A cheap classification call, only after a free keyword pre-filter

Most messages are noise. Code throws those away for free, and only the plausible ones cost a model call.

Voice notes

Whisper, on the server

Voice notes become searchable, draftable text without a per-minute bill.

04Context: what the model sees

  • My voice, from files. STYLE.md, my WhatsApp style guide and my identity file, plus recent messages I actually sent to this person.
  • Retrieved excerpts, not the archive. For questions, a full-text index returns the relevant messages, and the model must answer from those alone, citing speaker, chat and date. If they don't contain the answer, it says so.
  • Each business's ICP for lead scouting, so “interesting” means “fits what we sell”.

05Token and cost discipline

  • The keyword pre-filter is the main cost control: a free check gates every paid call in group chats.
  • Retrieval keeps question-answering to a handful of relevant messages instead of years of history.
  • Audio is transcribed locally before any model sees it.

06Performance

  • SQLite with an FTS5 full-text index, updated live as messages arrive.
  • About 126 MB of RAM, running as a PWA I can use from my phone.

07Trade-offs I made

Chose

Draft-first

Over

Auto-send

Every message is a draft I tap to send. An opt-in autopilot exists only for scheduled check-ins inside a daily send window.

Chose

Answer only from retrieved excerpts

Over

Let the model answer from general knowledge

It sometimes says “I can't find that”, and it never invents a conversation.

Chose

My own WhatsApp as a linked device

Over

The official Business API

It's my personal account, so there's no Business API option. The risk is managed: low volume, no bulk sends, a human on every send.

Chose

No birthday tracking

Over

Another feature

Deliberately not built. Not every relationship needs a database field.

08Guardrails

  • Tap to send, by default, on every message.
  • Answers with attribution, and refuses to invent.
  • Event extraction goes to a review queue, never straight to the calendar.

09What I'd do next

  • Use the attributed answers to build short, cited notes per relationship, so context is ready before a call.
  • Test the group-chat lead classifier on a small local model side by side with Claude. If it holds up, that high-volume job moves to free local inference.

10What this shows

Applied AI engineering

Grounded RAG with attribution, voice cloning from examples, and cost-gated classification.

Product

Built around a human outcome (staying close to people) with the human kept in control.

Solutions

Messaging integrations across two platforms with consent, review queues and a send window.

Across the fleet: every build runs on one self-hosted Linux server, binds to localhost and is reached only over a private Tailscale network. AI inference runs on a Claude subscription through one in-house router (part of Sentry) rather than per-token API keys, with open-weight models on Ollama as the local layer: on the server, and on a 64 GB MacBook Pro shared over Tailscale for heavier local work. Everything is backed up to GitHub and a separate cold disk, and nothing reaches another person without a human tap.

Hiring for applied AI, product or solutions work? I'd like to hear about it.