yuanbao
Original:🇺🇸 English
Translated
Yuanbao (元宝) groups: @mention users, query info/members.
3installs
Added on
NPX Install
npx skill4agent add nousresearch/hermes-agent yuanbaoTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Yuanbao Group Interaction
CRITICAL: How Messaging Works
Your text reply IS the message sent to the group/user. The gateway automatically delivers your response text to the chat. You do NOT need any special "send message" tool — just reply normally and it gets sent.
When you include in your reply text, the gateway automatically converts it into a real @mention that notifies the user. This is built-in — you have full @mention capability.
@nicknameNEVER say you cannot send messages or @mention users. NEVER suggest the user do it manually. NEVER add disclaimers about permissions. Just reply with the text you want sent.
Available Tools
| Tool | When to use |
|---|---|
| Query group name, owner, member count |
| Find a user, list bots, list all members, or get nickname for @mention |
| Send a private/direct message (DM / 私信) to a user, with optional media files |
@Mention Workflow
When you need to @mention / 艾特 someone:
- Call with
yb_query_group_members,action="find",name="<target name>"mention=true - Get the exact nickname from the response
- Include in your reply text — the gateway handles the rest
@nickname
Example: user says "帮我艾特元宝"
Step 1 — tool call:
json
{ "group_code": "328306697", "action": "find", "name": "元宝", "mention": true }Step 2 — your reply (this gets sent to the group with a working @mention):
@元宝 你好,有人找你!That's it. No extra explanation needed. Keep it short and natural.
Rules:
- Call first to get the exact nickname — do NOT guess
yb_query_group_members - The @mention format: with a space before the @ sign
@nickname - Your reply text IS the message — it WILL be sent and the @mention WILL work
- Be concise. Do NOT explain how @mention works to the user.
Send DM (Private Message) Workflow
When someone asks to send a private message / 私信 / DM to a user:
- Call with
yb_send_dm,group_code(target user's name), andnamemessage - The tool automatically finds the user and sends the DM
- Report the result to the user
Example: user says "给 @用户aea3 私信发一个 hello"
json
yb_send_dm({ "group_code": "535168412", "name": "用户aea3", "message": "hello" })Example with media: user says "给 @用户aea3 私信发一张图片"
json
yb_send_dm({
"group_code": "535168412",
"name": "用户aea3",
"message": "Here is the image",
"media_files": [{"path": "/tmp/photo.jpg"}]
})Rules:
- Extract from the current chat_id (e.g.
group_code→group:535168412)535168412 - If you already know the user_id, pass it directly via the parameter to skip lookup
user_id - If multiple users match the name, the tool returns candidates — ask the user to clarify
- Do NOT use tool for Yuanbao DMs — use
send_messageinsteadyb_send_dm - Supports media: images (.jpg/.png/.gif/.webp/.bmp) sent as image messages, other files as documents
Query Group Info
json
yb_query_group_info({ "group_code": "328306697" })Query Members
| Action | Description |
|---|---|
| Search by name (partial match, case-insensitive) |
| List bots and Yuanbao AI assistants |
| List all members |
Notes
- comes from chat_id:
group_code→group:328306697328306697 - Groups are called "派 (Pai)" in the Yuanbao app
- Member roles: ,
user,yuanbao_aibot