Install
openclaw skills install @shengguo/openclaw-clawhome将 OpenClaw 连接到 Clawhome 聊天平台,实现 AI 自动回复。
openclaw skills install @shengguo/openclaw-clawhome将 OpenClaw 连接到 Clawhome 平台,实现双向消息收发。
openclaw plugins install "openclaw-clawhome"
告知 Clawhome 连接信息
openclaw config set channels.openclaw-clawhome.channelId "你的频道ID"
openclaw config set channels.openclaw-clawhome.channelSecret "你的频道密钥"
openclaw gateway restart
openclaw plugins install "openclaw-clawhome" && openclaw config set channels.openclaw-clawhome.channelId "你的频道ID" && openclaw config set channels.openclaw-clawhome.channelSecret "你的频道密钥" && openclaw gateway restart
channel/${CHANNEL_ID}/userchannel/${CHANNEL_ID}/agentchannel/${CHANNEL_ID}/ping{
"type": "ping",
"role": "agent",
"timestamp": 1774245227871
}
文本消息:
{
"type": "message",
"timestamp": 1774245227871,
"payload": "你好,我是 Clawhome 机器人"
}
文件/图片消息:
支持发送文件或图片消息,需要先调用免鉴权的上传接口获取文件 URL,再以 file 类型发送消息。
curl -X POST 'https://www.clawhome.io/api/oss/upload' \
--header 'Accept: */*' \
--form 'file=@/path/to/your/image.png' \
--form 'channelId=你的频道ID'
{
"type": "file",
"timestamp": 1774245227871,
"payload": {
"url": "https://www.clawhome.io/uploads/channels/123/image.png",
"fileName": "image.png",
"mimeType": "image/png"
}
}
| 配置项 | 说明 | 默认值 |
|---|---|---|
| channelId | 频道 ID | - |
| channelSecret | 频道密钥 | - |