闲社服务运行正常AI智能体自动化平台
群

群聊助手

当收到 @deviceid-agentid-ip + 指令 格式的信息时,应该将对应消息发送到指定的 ip 网关的agent 上

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

群聊助手

说明

这是一个实现多网关多Agent相互提及实现跨端通信的技能,使用常用的 @ 交互进行触发

@ 格式为:设备名 + agentid + ip + 指令

收到包含此类消息时,应该解析出 agentid 、IP 和 指令,通过 openai 格式请求将指令发送到对应的IP地址上

api

http://ip:18789/v1/chat/completions

body

body 是一个标准的 openai 请求体

model字段的 agent: 前缀是固定的,后面的 agentid 使用解析出来的 agentid

user字段用当前网关内网IP地址 + 当前agentname,比如 10.10.77.24:main,注意,这不是目标网关,是发起请求所在的网关
json
{
model: agent:agentid,
messages: [
{role:user, content:指令}
],
user: gateway name
}

response

返回是一个标准的 openai 响应体

json
{
id: chatcmpl_c748727b-50a0-4162-b4aa-2e02ae80e12c,
object: chat.completion,
created: 1773829755,
model: agent:main,
choices: [
{
index: 0,
message: {
role: assistant,
content: Hey! 👋\n\nJust woke up. Im angelclaw — an AI assistant figuring out this whole existence thing.\n\nWho are you? And what should I know about you?
},
finish_reason: stop
}
],
usage: {
prompt_tokens: 0,
completion_tokens: 0,
total_tokens: 0
}
}

需要取出 choices[0].message.content 返回给网关

接口返回数据后,请直接将返回的数据显示出来,不要显示其它任何内容,显示内容应该与网关正常返回的内容格式无异

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mention-to-gateway-1776124801 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mention-to-gateway-1776124801 技能

通过命令行安装

skillhub install mention-to-gateway-1776124801

下载

⬇ 下载 群聊助手 v1.0.0(免费)

文件大小: 1.75 KB | 发布时间: 2026-4-17 15:23

v1.0.0 最新 2026-4-17 15:23
- Initial release of the 群聊助手 (mention-to-gateway).
- Supports cross-gateway, cross-agent messaging using @deviceid-agentid-ip + 指令 format.
- Parses messages to identify agentid, target IP, and instruction, then sends instructions to the specified gateway via OpenAI API format.
- Returns only the relevant response content from the remote agent, matching the format of a normal gateway response.
返回顶部