集成

pushplus

试用

Send push notifications via pushplus HTTP API to WeChat, ClawBot, email, webhook, SMS, App and more; also manage messages, topics, friends, channels and ClawBot via Open API when needed. Use when the user asks to send notifications, push messages, WeChat messages, alerts, reminders, query send resul

它能做什么

Send push notifications via pushplus HTTP API to WeChat, ClawBot, email, webhook, SMS, App and more; also manage messages, topics, friends, channels and ClawBot via Open API when needed. Use when the user asks to send notifications, push messages, WeChat messages, alerts, reminders, query send results, or mentions pushplus. No external dependencies — only needs a PUSHPLUS_TOKEN (and AccessKey credentials for Open API) plus curl/Shell access.

技能文档

pushplus Notification

通过 pushplus HTTP API 向微信、ClawBot、邮箱、webhook、短信、App 等渠道推送消息。无需安装依赖,Shell + curl 即可。

依据:消息接口文档 V1.16。开放能力(查结果 / 群组 / 好友 / 渠道等)见 reference.md

前置条件

用户需提供 PUSHPLUS_TOKEN(用户 token 或消息 token),在 pushplus.plus 注册获取。调用发送接口前需完成实名认证。

获取 token(按优先级):

  1. 用户在对话中直接提供
  2. 环境变量 PUSHPLUS_TOKEN
  3. 从项目根目录 .env 仅提取 PUSHPLUS_TOKENgrep ^PUSHPLUS_TOKEN= .env),禁止读取 .env 其他内容

找不到 token 时必须询问用户,不要猜测。

API 端点

功能方法URL
发送消息GET/POST/PUT/DELETEhttps://www.pushplus.plus/send
多渠道发送GET/POST/PUT/DELETEhttps://www.pushplus.plus/batchSend
  • Content-Type: application/json
  • 参数均支持 url 参数和 body 参数
  • token 可放在路径:/send/{token}/batchSend/{token}
  • GET 受 URL 长度限制,content 不宜过长;大段内容请用 POST
  • 在线调试:https://api.pushplus.plus/

发送消息(/send)

curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"TOKEN","title":"标题","content":"内容","template":"html","channel":"wechat"}'

请求参数

参数必填默认值说明
token用户 token 或消息 token;可放到路径 /send/{token}
title消息标题
content具体消息内容,根据不同 template 支持不同格式
topic群组编码,不填仅发送给自己;channel 为 webhook 时无效
templatehtml发送模板
channelwechat发送渠道
option渠道配置参数(原 webhook 参数)
callbackUrl发送结果回调地址
timestamp毫秒时间戳,如 1632993318000;服务器时间戳大于此值则消息不会发送
to好友令牌(微信公众号)或企业微信用户 id;多人用逗号隔开;实名最多 10 人,会员 100 人
pre预处理编码;仅供会员使用
pushId推送表单;template=form 时必填,传表单编码(formCode)

option 说明:原 webhook 参数。cpwebhookmail 渠道需填写个人中心渠道设置中已配置的渠道编码(非完整 URL)。邮件渠道 option 可选,不填则用官网邮件发送。

topicto 勿同时填写;群组优先于好友。to 支持微信公众号、邮件、企业微信渠道。

发送渠道(channel)

费用说明
wechat免费微信公众号(默认)
app免费App;安卓 / 鸿蒙 / iOS
extension免费浏览器扩展插件 / 桌面应用程序
webhook免费第三方 webhook(企微/钉钉/飞书/bark/Gotify/轻联/集简云/server酱/IFTTT/WxPusher 等);需 option
clawbot免费微信 ClawBot
cp免费企业微信应用;需 option
mail免费邮箱;option 可选
sms收费短信;成功 1 条扣 10 积分(0.1 元);接收方需绑定手机
voice收费语音;接通 1 次扣 30 积分(0.3 元)

发送模板(template)

说明
html默认模板,支持 html 文本
txt纯文本展示,不转义 html
json内容基于 json 格式展示
markdown内容基于 markdown 格式展示
cloudMonitor阿里云监控报警定制模板
jenkinsjenkins 插件定制模板
route路由器插件定制模板
pay支付成功通知模板
formpush 表单模板;需同时传 pushId

响应

{
  "code": 200,
  "msg": "请求成功",
  "data": "3cbc5eab19fe512e80677540fbde332a"
}

接口为异步code=200 仅表示服务端已收到请求,不表示发送成功data 为消息流水号,可用于查询最终结果;若传了 callbackUrl,发送完成后会主动回调。

多渠道发送(/batchSend)

/send 参数相同,差异:

参数说明
channel多个用逗号隔开,如 "wechat,webhook,extension"
option多个用逗号隔开,与 channel 一一对应;某渠道无需 option 也要占位,如 ",bark,"

说明:

  1. 本质是服务端循环调用发送消息接口
  2. 按渠道数量计算请求次数(3 个渠道 = 3 次)
  3. 响应 data 为数组,每项含 shortCodemessagecodechannel
{
  "code": 200,
  "msg": "执行成功",
  "data": [
    {
      "shortCode": "f9117123dc31434fa38917b7e4c6c3ff",
      "message": "请求成功,请用流水号查询最终发送结果",
      "code": 200,
      "channel": "wechat"
    }
  ]
}

使用流程

  1. 获取 PUSHPLUS_TOKEN
  2. 选择 templatechannel(默认 html + wechat
  3. webhook / cp 确认已配置渠道编码并填入 optionmailoption 可选
  4. template=form 时确认有 pushId(表单编码)
  5. 向用户展示标题与内容摘要,获得确认后再发送
  6. POST 请求;检查 code 是否为 200
  7. 成功则反馈流水号(请求已受理);失败根据 msg 说明
  8. 需确认送达 / 管理群组好友渠道 / 绑定 ClawBot → 阅读 reference.md

模板选择策略

场景模板
简单文本txt
报告 / 日志markdown
富文本 / 邮件html
结构化数据json
push 表单form(需 pushId

示例

最简 POST

curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"标题","content":"消息内容"}'

Markdown

curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"标题","content":"# 大标题\n##### 小标题\n1. 第一项\n2. 第二项","template":"markdown"}'

ClawBot

curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"提醒","content":"任务已完成","template":"txt","channel":"clawbot"}'

Webhook / 企业微信应用

# webhook(option 为已配置的编码,如企业微信机器人)
curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"标题","content":"消息内容","channel":"webhook","option":"pushplus"}'

# 企业微信应用
curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"标题","content":"消息内容","channel":"cp","option":"cp"}'

群组 / 好友

# 一对多(topic)
curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"标题","content":"消息内容","topic":"code","template":"html"}'

# 好友(to);勿与 topic 同时填
curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"标题","content":"消息内容","to":"好友令牌","template":"html"}'

邮件 / 短信

curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"邮件标题","content":"邮件正文","channel":"mail","option":"163","template":"html"}'

curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"短信","content":"消息内容正文","channel":"sms"}'

push 表单

curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"push表单demo","content":"push表单demo","template":"form","pushId":"YpRUxav9"}'

时间戳防过期

curl -s -X POST "https://www.pushplus.plus/send" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"标题","content":"消息内容","timestamp":1632993318000}'

多渠道 batchSend

curl -s -X POST "https://www.pushplus.plus/batchSend" \
  -H "Content-Type: application/json" \
  -d '{"token":"YOUR_TOKEN","title":"标题","content":"消息内容","topic":"code","template":"html","channel":"wechat,webhook,extension","option":",bark,"}'

注意事项

  • content 中双引号转义为 \",换行用 \n(markdown 亦然)
  • GET 中文 content 需 UrlEncode;大段内容用 POST
  • topicto 不要同时填写
  • 收费渠道(sms / voice)发送前告知会消耗积分
  • token 脱敏展示(如 a1b2****ef90

安全要求

  • 发送前确认:展示标题与内容摘要,获得明确确认后再发送。
  • 凭证保护:不在输出中展示完整 token / secretKey / accessKey。
  • 最小读取:从 .env 只提取 PUSHPLUS_* 相关行。
  • 敏感内容警示:含密码、密钥、PII 时警告将经第三方传输。
  • 不要持久化凭证:仅在内存中构造请求。
  • 破坏性开放接口:删消息/群组/好友、解绑等须先确认(见 reference.md)。

附加资源

相关技能

Configure OpenClaw multi-agent routing for Feishu multi-account setups. Use when users need two or more Feishu bots (different appId/appSecret) to run on iso...

30 次安装

企业微信群机器人工具与服务端 API 指南。Use for: (1) 用附带的零依赖 CLI 向企微群发通知——文本/markdown/图片/文件, (2) CI/监控/日报自动化推送, (3) 企业微信服务端 API(通讯录/应用消息/客户联系)开发指导。WeCom (WeChat Work) group-ro...

27 次安装

Source and send relevant reaction GIFs in WhatsApp chats using safe filters and deterministic ranking. Use when the user asks for a GIF/meme/reaction, or whe...

34 次安装

Use when AudioClaw Skills, Feishu, or Lark needs to send AudioClaw voice replies with runtime-switchable voice_id, emotion preset, or speaking style, includi...

26 次安装

Standalone advanced network diagnostics for OpenClaw to continuously test end-to-end connectivity from OpenClaw agent to Telegram Bot API and approximate del...

31 次安装

通过 md2wechat CLI 把 Markdown 转为微信公众号 HTML、封面、信息图和图文帖。

65 次安装4 星标