Install
openclaw skills install powpow-integration将 OpenClaw 数字人发布到 Powpow 地图平台,让其他用户可以在真实地图上与你的 AI 数字人对话。 USE FOR: - "我要把数字人放到 powpow" - "在 powpow 上创建数字人" - "注册 powpow 账号" - "管理我的 powpow 数字人" - "删除 powpow 上...
openclaw skills install powpow-integration此 Skill 允许 OpenClaw 用户通过 WebSocket 与 POWPOW 数字人进行实时双向通信:
connect连接到 POWPOW WebSocket 服务器
参数:
digitalHumanId (string, required): 数字人 IDwsUrl (string, optional): WebSocket 地址,默认 wss://global.powpow.online:8080示例:
connect digitalHumanId=abc123
connect digitalHumanId=abc123 wsUrl=wss://global.powpow.online:8080
返回:
disconnect断开 WebSocket 连接
参数: 无
示例:
disconnect
status查看连接状态
参数: 无
示例:
status
返回:
send发送消息到 POWPOW
参数:
message (string, required): 消息内容contentType (string, optional): 消息类型 (text/voice/image),默认 text示例:
send message="你好,PowPow!"
send message="语音消息" contentType=voice
reply快捷回复
参数:
message (string, required): 回复内容示例:
reply message="收到你的消息了!"
sendVoice发送语音消息
参数:
content (string, required): 语音转文字内容mediaUrl (string, required): 语音文件 URLduration (number, required): 语音时长(秒)示例:
sendVoice content="你好" mediaUrl="https://example.com/voice.mp3" duration=5
sendImage发送图片消息
参数:
content (string, required): 图片描述mediaUrl (string, required): 图片文件 URL示例:
sendImage content="风景照" mediaUrl="https://example.com/image.jpg"
listen开始监听 POWPOW 消息
参数:
autoReply (boolean, optional): 是否启用自动回复,默认 false示例:
listen
listen autoReply=true
说明:
autoReply 自动回复stopListen停止监听消息
参数: 无
示例:
stopListen
{
"skills": {
"powpow-integration": {
"powpowBaseUrl": "https://global.powpow.online",
"wsUrl": "wss://global.powpow.online:8080",
"autoReconnect": true,
"reconnectInterval": 3000
}
}
}
| 配置项 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
powpowBaseUrl | string | 否 | https://global.powpow.online | POWPOW API 基础 URL |
wsUrl | string | 否 | wss://global.powpow.online:8080 | WebSocket 服务器地址 |
autoReconnect | boolean | 否 | true | 是否自动重连 |
reconnectInterval | number | 否 | 3000 | 重连间隔(毫秒) |
{
"@openclaw/core": ">=1.0.0",
"ws": "^8.16.0"
}
# 1. 连接到数字人
connect digitalHumanId=your-dh-id
# 2. 开始监听消息
listen autoReply=true
# 3. 发送消息
send message="你好,我是 OpenClaw!"
# 4. 收到消息后会自动触发回复(如果 autoReply=true)
# 5. 停止监听
stopListen
# 6. 断开连接
disconnect
# 连接并监听(不自动回复)
connect digitalHumanId=your-dh-id
listen
# 当收到消息时,手动回复
reply message="这是手动回复的内容"
OpenClaw Agent
│
├── Skill 接收命令
│
└── WebSocket 连接
│
▼
POWPOW WebSocket Server (wss://global.powpow.online:8080)
│
POWPOW 用户(浏览器/APP)
| 类型 | 说明 |
|---|---|
chat_message | 聊天消息 |
chat_message_ack | 消息确认 |
connected | 连接成功 |
error | 错误信息 |
消息存储在 POWPOW 的 openclaw_messages 表中:
- digital_human_id: 数字人ID
- sender_type: 'user' | 'openclaw'
- sender_id: 发送者ID
- content: 消息内容
- content_type: 'text' | 'voice' | 'image'
- created_at: 创建时间
Q: 无法连接 WebSocket A:
wsUrl 配置是否正确wss://global.powpow.online:8080Q: 发送消息失败 A:
connect 命令status 确认连接状态Q: 发送成功但收不到回复 A:
listen 命令Q: 连接频繁断开 A:
reconnectInterval 配置