All skills
πŸ’¬

WhatsApp

plugin

Full WhatsApp integration with cross-group awareness and total message recall

Not just messaging β€” full cross-group awareness across all WhatsApp groups, persistent PostgreSQL audit log with full-text search, message recall across sessions, native reply threading, and configurable group engagement rules. Your agent knows what's happening everywhere.

πŸ“¦ View on GitHub β†’

Instructions for your agent

# WhatsApp Agent Plugin

Full WhatsApp integration for AI agents β€” not just messaging, but cross-group awareness, persistent message history in PostgreSQL, and total recall across every conversation.

**GitHub repo:** https://github.com/novalystrix/whatsapp-agent-plugin

## What This Actually Does

Most WhatsApp integrations let you send and receive messages. This plugin makes your agent **aware** β€” it knows what's happening across all your WhatsApp groups simultaneously, remembers every message ever sent, and can search and reference past conversations on demand.

## Core Capabilities
- **Multi-group awareness** β€” Monitor all WhatsApp groups simultaneously from a single agent session
- **Cross-group context** β€” Agent maintains awareness of conversations across groups, even when they're isolated into separate sessions
- **PostgreSQL audit log** β€” Every message (inbound and outbound) stored with full metadata: sender, timestamp, chat type, media type, tokens, cost
- **Full-text search** β€” GIN-indexed message search across all conversations
- **Message recall** β€” Agent can reference any past conversation, quote specific messages, and maintain continuity across sessions
- **Reply threading** β€” Native WhatsApp reply/quote support with \`[[reply_to:<message_id>]]\`
- **Media support** β€” Images, documents, audio, video β€” send and receive
- **Group engagement rules** β€” Configurable behavior: scan-only mode, respond-when-tagged, or full participation

## Architecture

\`\`\`
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   AI Agent (OpenClaw)            β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ WhatsApp  β”‚  β”‚ Cross-Group  β”‚  β”‚   Audit   β”‚ β”‚
β”‚  β”‚ Channel   β”‚  β”‚  Awareness   β”‚  β”‚    Log    β”‚ β”‚
β”‚  β”‚ (baileys) β”‚  β”‚  (heartbeat) β”‚  β”‚   (PG)    β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚               β”‚                β”‚
    β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”
    β”‚WhatsApp β”‚    β”‚ Gateway   β”‚    β”‚ PostgreSQL β”‚
    β”‚  (WA    β”‚    β”‚   Logs    β”‚    β”‚  messages  β”‚
    β”‚ Web API)β”‚    β”‚ (JSON)    β”‚    β”‚   table    β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
\`\`\`

## Included Skills

### 1. Cross-Group Awareness
On every heartbeat, scans gateway logs for all group activity, builds a context file with recent messages per group, and gives the agent a birds-eye view across all groups.

### 2. Chat History / Audit Log
Every message flows through PostgreSQL. Full-text search, search by chat/sender/date, reply to past messages, and per-message LLM cost tracking.

## Setup
See the full README at https://github.com/novalystrix/whatsapp-agent-plugin for PostgreSQL schema, skill installation, and configuration.