🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Whatsapp Memory

by @netanel-abergel

Maintain separate memory contexts per WhatsApp conversation — both groups and direct messages (DMs). Use when: tracking what was discussed with a specific pe...

Versionv1.0.0
⚙️ Configuration

init_whatsapp_memory() {
  TYPE="$1"       # "group" or "dm"
  ID="$2"         # JID or phone number
  NAME="$3"       # Human-readable name

# Sanitize the ID for use as a directory name SAFE_ID=$(echo "$ID" | tr '@.+' '---')

if [ "$TYPE" = "group" ]; then DIR="$HOME/.openclaw/workspace/memory/whatsapp/groups/$SAFE_ID" mkdir -p "$DIR" # Write metadata file cat > "$DIR/meta.json" << EOF {"type": "group", "jid": "$ID", "name": "$NAME", "created": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"} EOF # Create empty log files touch "$DIR/context.md" "$DIR/decisions.md" "$DIR/people.md" else DIR="$HOME/.openclaw/workspace/memory/whatsapp/dms/$SAFE_ID" mkdir -p "$DIR" # Write metadata file cat > "$DIR/meta.json" << EOF {"type": "dm", "phone": "$ID", "name": "$NAME", "created": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"} EOF # Create empty log files touch "$DIR/context.md" "$DIR/notes.md" fi

echo "Initialized WhatsApp memory: $NAME" }

Examples:

init_whatsapp_memory "group" "120363422865795623@g.us" "PA Team"

init_whatsapp_memory "dm" "+PHONE_NUMBER" "Contact Name"


View on ClawHub
TERMINAL
clawhub install whatsapp-memory

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →