WhatsApp monitoring captures messages from Elmar's WhatsApp account using the Baileys library and stores them in a SQLite database for search and context retrieval.
/home/lucienne/workspace/whatsapp/whatsapp-monitor.js (Node.js)@whiskeysockets/baileys -- a reverse-engineered WhatsApp Web client (no Puppeteer/browser needed)/home/lucienne/workspace/data/whatsapp/auth/ -- shares OpenClaw's session, so no QR scan needed if already authenticatedwhatsapp-monitor.service)/tmp/whatsapp-monitor.pid prevents duplicate instanceslogMessage() handlerwhatsapp-config.json rules:/home/lucienne/workspace/data/whatsapp/whatsapp-messages.dbwhatsapp_messagesrecord_id (PK) -- message ID or SHA1 hash fallbackmessage_id, timestamp, chat_id, chat_namesender_id, sender_name, body, directionfrom_me, is_group, conversation_idmedia_type, caption, raw_jsonwhatsapp_messages_fts (FTS5) -- indexes body, caption, sender_name, chat_name for full-text search/home/lucienne/workspace/logs/whatsapp/whatsapp-complete.log -- all messages that pass filters/home/lucienne/workspace/logs/whatsapp/whatsapp-filtered.log -- messages that were excluded (truncated)/home/lucienne/workspace/logs/whatsapp/whatsapp-acks.log -- delivery acknowledgements/home/lucienne/workspace/logs/whatsapp/whatsapp-status.json -- current connection state + last message infoOn startup, if the SQLite database is empty, it backfills from the JSONL complete log.
/home/lucienne/workspace/data/whatsapp/whatsapp-config.jsonincludeAllContacts: true)excludeAllGroupsByDefault: true)/home/lucienne/workspace/scripts/whatsapp_health_check.pywhatsapp-health-check)/home/lucienne/workspace/data/whatsapp/health-status.json for dashboard consumptionnotify_on: failure triggers a Telegram alert--max-old-space-size=512The monitor also supports outbound messaging via a JSONL outbox file:
- Outbox: /home/lucienne/workspace/data/whatsapp/whatsapp-outbox.jsonl
- Results: /home/lucienne/workspace/data/whatsapp/whatsapp-outbox-results.jsonl
| File | Purpose |
|---|---|
whatsapp/whatsapp-monitor.js |
Main monitor script |
data/whatsapp/whatsapp-config.json |
Filter configuration |
data/whatsapp/whatsapp-messages.db |
SQLite message store |
scripts/whatsapp_health_check.py |
Health monitoring |
tasks/whatsapp-health-check.md |
Scheduler task definition |
logs/whatsapp/ |
All log files |
Mission Control is the board for your delegated work: requests come in, Luci coordinates the next step, and evidence stays visible for review.
Luci is your always-on assistant for routing, status updates, and follow-through. Operators can still open deeper evidence when needed.