What problem does it solve?
Centralizes every inbound and outbound WhatsApp message into a queryable PostgreSQL store so agents and operators can audit conversations, trace costs, and recover message history reliably.
Core Features & Use Cases
- Production-ready schema with timestamps, sender metadata, tokens and cost fields, and an optional embedding column for semantic search.
- Search and analytics via full-text indexes, ivfflat embedding index (pgvector), and common query patterns for recent messages, group history, keyword search, daily counts, and cost summaries.
- Deployment flexibility with local or managed Postgres instructions, environment variable integration (PA_DB_URL), and troubleshooting guidance for common setup issues.
- Use Case: Run this during agent provisioning to enable message auditing, conversation recall, and token/cost monitoring for WhatsApp-based PAs.
Quick Start
Set PA_DB_URL to your Postgres connection string and restart the OpenClaw gateway to begin persisting WhatsApp messages.