返回顶部
a

auto-reply自动回复

Instagram DM auto-reply system. DM monitoring, reading, replying, security check (injection rejection). Use when checking Instagram DMs, reading unread messages, replying to DMs, setting up DM monitoring cron jobs, or handling DM auto-reply workflows. Triggers on: Instagram DM, DM check, DM reply, DM auto-reply, dm-alert.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
870
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

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
  • INLINECODE0 npm package (npm i -g ws or local)

Script List

ScriptPurpose
INLINECODE2DM CLI (inbox, unread, check, read, reply)
INLINECODE3
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

CODEBLOCK0

2. Read Messages

CODEBLOCK1

3. Reply

CODEBLOCK2

On API failure, returns JSON with method: "use_browser" + threadUrl → fallback to browser tool.

4. Notification Check (cron integration)

CODEBLOCK3

  • - If new DMs: outputs INLINECODE8
  • If none: outputs INLINECODE9
  • Uses state file dm-state.json to prevent duplicates

5. Auto-Reply Flow

CODEBLOCK4

  1. 1. Read dm-alert.json (created by dm-watcher)
  2. Run security check on each DM
  3. Return results: needs_reply / security_alert / INLINECODE14
  4. AI generates replies for needs_reply DMs → send via INLINECODE16

6. Real-time Detection Daemon

CODEBLOCK5

Polls v2.js check every 15s. On new DM detection, writes dm-alert.json + Discord DM notification.

Security Check (Injection Rejection)

INLINECODE19'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

CODEBLOCK6

Token Efficiency

  • - inbox/check: exec 1 call (~500 tokens)
  • reply: exec 1 call (~200 tokens)
  • browser snapshots: 0

🐧 Built by 무펭이Mupengism ecosystem skill

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 auto-reply-1776419951 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 auto-reply-1776419951 技能

通过命令行安装

skillhub install auto-reply-1776419951

下载

⬇ 下载 auto-reply v1.0.0(免费)

文件大小: 13.09 KB | 发布时间: 2026-4-17 20:10

v1.0.0 最新 2026-4-17 20:10
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部