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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/mupengi-bot/auto-replyInstagram 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 "<username>" -l 5
3. Reply
node scripts/v2.js reply "<username>" "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
Metadata
Not sure this is the right skill?
Describe what you want to build â we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-mupengi-bot-auto-reply": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
appointment-scheduler
Automated appointment management for beauty salons, clinics, studios, and photo booths. Handles booking requests, calendar sync, conflict detection, reminders, no-show tracking, and waitlist management.
Mupeng Social Postcjo
Skill by mupengi-bot
data-scraper
Web page data collection and structured text extraction
brand-voice
Manage brand tone/style for all writing skills
prompt-engineer
Expert prompt engineer specializing in advanced prompting techniques, LLM optimization, and AI system design. Masters chain-of-thought, constitutional AI, and production prompt strategies. Use when building AI features, improving agent performance, or crafting system prompts.