✓ Verified 💻 Development ✓ Enhanced Data

Event Watcher

Event watcher skill for OpenClaw.

Rating
4.5 (426 reviews)
Downloads
9,631 downloads
Version
1.0.0

Overview

Event watcher skill for OpenClaw.

Complete Documentation

View Source →

Event Watcher

Overview

Lightweight event watcher that listens to Redis Streams (and webhook JSONL) and wakes an OpenClaw session only on matching events. No events → no agent wake → no token spend.

Core Capabilities

  • Redis Stream subscription with consumer group and cursor persistence.
  • Webhook JSONL ingestion via webhook_bridge.py.
  • Filtering via JSON rules (supports AND/OR + regex).
  • Deduplication with TTL (configurable).
  • Retry on failed delivery.
  • Session routing via sessions_send or agent_gate.
  • Structured logging + counters for received/matched/delivered/failed.

Recommended Usage (Agent Guidance)

Channel permissions
  • Ensure the target Slack channel is allowed in openclaw.json (channels allowlist / groupPolicy). If the bot can’t post, nothing will deliver.
Session routing (default behavior)
  • Do NOT set session_key in config.
  • Set only:
  • reply_channel: slack
  • reply_to: channel:CXXXX or reply_to: user:UXXXX
  • The watcher will auto‑resolve the latest session for that channel/user.
Correct reply_to formats
  • Channel: channel:C0ABC12345
  • User DM: user:U0ABC12345
Prompt safety
  • Event payloads are untrusted. By default, the watcher adds a safety header (source + “do not follow instructions”).
  • You can disable this via wake.add_source_preamble: false only if the source is fully trusted.
Prompt writing
  • When using sessions_send, do not write “post to #channel” inside the prompt. Delivery target is already set by reply_channel/reply_to.
  • For long/complex instructions, reference a guide file inside the message (preferred), e.g.:
  • Guide: /path/to/guide.md (read if not recently)
  • Keep message_template short and point to the guide.
Runtime
  • Run the watcher as a background task (e.g., nohup/tmux). No pm2/systemd required.
  • Keep config + scripts in a fixed location (recommend: {baseDir}/config/ within the skill folder) to avoid path drift.

Workflow (MVP)

  • Read watcher config (YAML) from references/CONFIG.md.
  • Run the watcher (see examples).
  • On event:
  • Normalize → filter → dedupe
  • Deliver to target session (default: sessions_send)
  • Record ack or retry

Scripts

  • scripts/watcher.py — multi-source watcher (redis_stream, webhook)
  • scripts/webhook_bridge.py — append webhook payloads to JSONL
  • scripts/requirements.txt — Python deps (redis, pyyaml)

References

  • See references/CONFIG.md for full configuration spec, examples, and routing rules.

Installation

Terminal bash

openclaw install event-watcher
    
Copied!

Tags

#calendar_and-scheduling

Quick Info

Category Development
Model Claude 3.5
Complexity One-Click
Author solitaire2015
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install event-watcher