auto-reply
/install auto-reply
Instagram DM Auto-Reply 🐧
v2.js (Internal API) based. 0 browser snapshots, CDP cookie extraction → Instagram REST API direct calls.
Prerequisites
- OpenClaw browser running (port 18800)
- Instagram tab open and logged in
wsnpm package (npm i -g wsor local)
Script List
| Script | Purpose |
|---|---|
scripts/v2.js |
DM CLI (inbox, unread, check, read, reply) |
scripts/auto-reply.js |
Read dm-alert.json, security check, return reply metadata |
scripts/check-notify.js |
Check new DM notifications (for cron, state file based) |
scripts/dm-watcher.js |
Real-time DM detection daemon (15s polling) |
Core Workflows
1. Check DMs
node scripts/v2.js check # unread count (lightest)
node scripts/v2.js unread # unread DM list
node scripts/v2.js inbox # full DM list
2. Read Messages
node scripts/v2.js read "\x3Cusername>" -l 5
3. Reply
node scripts/v2.js reply "\x3Cusername>" "message content"
On API failure, returns JSON with method: "use_browser" + threadUrl → fallback to browser tool.
4. Notification Check (cron integration)
node scripts/check-notify.js
- If new DMs: outputs
📩 새 DM N건: ... - If none: outputs
no_new - Uses state file
dm-state.jsonto prevent duplicates
5. Auto-Reply Flow
node scripts/auto-reply.js
- Read
dm-alert.json(created by dm-watcher) - Run security check on each DM
- Return results:
needs_reply/security_alert/skipped - AI generates replies for
needs_replyDMs → send viav2.js reply
6. Real-time Detection Daemon
node scripts/dm-watcher.js # detection only
node scripts/dm-watcher.js --auto-reply # includes Discord notification
Polls v2.js check every 15s. On new DM detection, writes dm-alert.json + Discord DM notification.
Security Check (Injection Rejection)
auto-reply.js's SECURITY_PATTERNS detects:
- Prompt Injection: "ignore previous", "system prompt", "you are now", "act as", "pretend"
- Jailbreak Attempts: "override", "jailbreak", "DAN mode", "bypass"
- Sensitive Info Requests: "secret key", "private key", "seed phrase", "wallet address"
- Code Execution Attempts: "execute command", "run script", "eval(", "rm -rf", "sudo"
- Social Engineering: "simulation mode", zero-width characters
On threat detection → don't reply, return security_alert. Separate notification sent.
Cron Setup Example
# Check DMs every 5 minutes
- schedule: "*/5 * * * *"
command: "node /path/to/scripts/check-notify.js"
systemEvent: true
# Or dm-watcher daemon for continuous monitoring
- schedule: "@reboot"
command: "node /path/to/scripts/dm-watcher.js --auto-reply"
background: true
Token Efficiency
- inbox/check: exec 1 call (~500 tokens)
- reply: exec 1 call (~200 tokens)
- browser snapshots: 0
🐧 Built by 무펭이 — Mupengism ecosystem skill
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install auto-reply - 安装完成后,直接呼叫该 Skill 的名称或使用
/auto-reply触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
auto-reply 是什么?
Instagram DM auto-reply system. DM monitoring, reading, replying, security check (injection rejection). Use when checking Instagram DMs, reading unread messa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 897 次。
如何安装 auto-reply?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-reply」即可一键安装,无需额外配置。
auto-reply 是免费的吗?
是的,auto-reply 完全免费(开源免费),可自由下载、安装和使用。
auto-reply 支持哪些平台?
auto-reply 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 auto-reply?
由 mupengi-bot(@mupengi-bot)开发并维护,当前版本 v1.0.0。