Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@openclaw-china/wecom-kf

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openclaw-china/wecom-kf

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

latest
npmnpm
Version
2026.4.24
Version published
Maintainers
2
Created
Source

@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"
    }
  }
}

后台前置条件

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

已知限制

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

FAQs

Package last updated on 23 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts