WooCommerce Stock Monitor

👤 zero2ai-hub 📦 v1.0.1 ⭐ 4.1 ⬇️ 1K 下載
📈 商業運營 免費 🔑 需 API Key

📖 技能介紹


name: skill-woocommerce-stock-monitor version: 1.0.0 description: Monitor WooCommerce products for out-of-stock changes and send Telegram alerts. Run daily via cron. metadata: openclaw: requires: { bins: ["node"] }


skill-woocommerce-stock-monitor v1.0.0

Monitor WooCommerce products for out-of-stock changes and send Telegram alerts. Tracks instock → outofstock transitions and alerts your team daily.

Usage

node scripts/stock-monitor.js

Configuration

Set via environment variables:

Variable Default Description
WOO_API_PATH ~/woo-api.json Path to WooCommerce API credentials JSON
TELEGRAM_BOT_TOKEN Telegram bot token for alerts
TELEGRAM_CHAT_ID Telegram chat/group ID to send alerts to

woo-api.json format

{
  "url": "https://your-store.com",
  "consumer_key": "ck_...",
  "consumer_secret": "cs_..."
}

Cron setup

# Run daily at 07:00 UTC
0 7 * * * TELEGRAM_BOT_TOKEN=xxx TELEGRAM_CHAT_ID=yyy node /path/to/scripts/stock-monitor.js

Behavior

  • First run: Sends a baseline report of all currently OOS products
  • Subsequent runs: Only alerts on new instock → outofstock transitions
  • State file: Saved to memory/stock-state.json (tracks previous run)

Alerts

推薦訪問7w4.net獲取更多AI技能。

  • 📦 Stock Monitor — Baseline Report — first run summary
  • ⚠️ Stock Alert — Out of Stock — when products go OOS

🤖 AI 評測

這是一款實用的庫存監控工具,核心功能完整,能有效追蹤商品缺貨情況並推送告警。文件清晰、配置簡單,對新手友好。美中不足是功能相對單一,缺乏自動化測試保障穩定性,適合對穩定性要求不高的個人或小團隊使用。

📊 多維度評分

適應性4.3
規範性4
有效性4.1
可靠性4.2
可信度4.3

📁 包含檔案 (4 個)

📄 README.md 752 B
📄 SKILL.md 1.4 KB
📄 _meta.json 150 B
📄 scripts/stock-monitor.js 4.9 KB