npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@openclaw-china/wecom-kf

v2026.3.29

Published

OpenClaw WeCom Customer Service (微信客服) channel plugin

Downloads

3,429

Readme

@openclaw-china/wecom-kf

wecom-kf 是一个独立的微信客服渠道插件,用于把外部微信用户的客服会话接入 OpenClaw/Moltbot。

基础版范围:

  • 单账号配置
  • 回调 GET/POST 验证
  • sync_msg 拉取真实消息
  • cursor 持久化和短期 msgid 去重
  • 客户文本消息入站
  • Agent 文本回复回发
  • enter_session 欢迎语
  • 基础状态与日志

不在基础版范围内:

  • 多账号运行
  • 图片/语音/文件收发
  • 客服账号管理、客户资料增强、第三方代运营模式

配置示例

{
  "channels": {
    "wecom-kf": {
      "enabled": true,
      "webhookPath": "/wecom-kf",
      "token": "your-callback-token",
      "encodingAESKey": "your-43-char-encoding-aes-key",
      "corpId": "ww1234567890abcdef",
      "corpSecret": "your-wecom-kf-secret",
      "openKfId": "wkABCDEF1234567890",
      "welcomeText": "你好,我是 AI 客服,请问有什么可以帮你?",
      "dmPolicy": "open"
    }
  }
}

后台前置条件

  1. 在微信客服管理后台开启 API。
  2. 将某个自建应用配置成“可调用接口的应用”。
  3. 将具体客服账号授权给该应用。
  4. 确保接待成员在该应用的可见范围内。
  5. 回调 URL 支持 GETPOST,且可被公网访问。

已知限制

  • 微信客服回调只发通知,不直接携带完整消息体。
  • 文本回发受 48 小时窗口和最多 5 条消息限制。
  • 单条文本最多 2048 字节,因此插件会做纯文本降级和分片。
  • 欢迎语依赖 welcome_code,需在事件触发后 20 秒内调用一次。