跳到主要内容
知仓学习社ZHICANG

channel_message

Use this skill to proactively send a one-way message to a user/session/channel, usually only when the user explicitly asks to send to a channel/sess…

不碰外部(只输出文字)无严重或高危命中agentscope-ai/QwenPaw

它会碰到什么

扫了多少1 个文本文件,6 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Channel Message

When to Use

Use this skill only when the user explicitly asks you to send a message to a channel/session, or when you need to proactively push a notification (e.g., task completion, reminders, alerts).

This is a one-way sendno reply is returned.

Should Use

  • The user explicitly asks to send to a specific channel/session
  • Proactively notifying the user after a task completes
  • Scheduled reminders, alerts, or status updates
  • Pushing async results back to an existing session
  • The user explicitly says "notify me when done"

Should Not Use

  • If you are simply replying in the current session, do not use qwenpaw channels send
  • You need a two-way conversation and expect an immediate reply
  • You do not know which target session to use
  • You are guessing target-user or target-session

Decision Rules

  1. Only use this when the user explicitly asks to send to a channel/session, or proactive notification is needed
  2. You must query sessions before sending
  3. Do not guess target-user or target-session
  4. If multiple sessions are found, prefer the most recently active one
  5. channel send is a one-way push — no user reply is returned

Most Common Commands

1) Query available sessions first

qwenpaw chats list --agent-id <your_agent> --channel <channel>

You can also filter by user:

qwenpaw chats list --agent-id <your_agent> --user-id <user_id>

2) Send a message

qwenpaw channels send \
  --agent-id <your_agent> \
  --channel <channel> \
  --target-user <user_id> \
  --target-session <session_id> \
  --text "..."

Minimal Workflow

1. Determine: is the user explicitly requesting a send, or is proactive notification needed?
2. qwenpaw chats list — query the target session
3. Extract user_id and session_id from the results
4. If multiple sessions exist, prefer the most recently active one
5. qwenpaw channels send — send the message
6. Done (no reply)

Key Rules

Required Parameters

qwenpaw channels send requires all of the following:

  • --agent-id
  • --channel
  • --target-user
  • --target-session
  • --text

Must Query First

Before sending, run:

qwenpaw chats list --agent-id <your_agent> --channel <channel>

Extract from the results:

  • user_id--target-user
  • session_id--target-session

If there are multiple candidate sessions, prefer the one with the most recent updated_at.

One-Way Push

qwenpaw channels send only sends — it does not wait for a reply.


Brief Examples

User explicitly asks to send to a channel

qwenpaw chats list --agent-id notify_bot --channel feishu

qwenpaw channels send \
  --agent-id notify_bot \
  --channel feishu \
  --target-user manager_id \
  --target-session manager_session \
  --text "Weekly report is ready, please review"

Task completion notification

qwenpaw chats list --agent-id task_bot --channel console

qwenpaw channels send \
  --agent-id task_bot \
  --channel console \
  --target-user alice \
  --target-session alice_console_001 \
  --text "Task completed"

Async result push-back

qwenpaw chats list --agent-id analyst_bot --user-id alice

qwenpaw channels send \
  --agent-id analyst_bot \
  --channel console \
  --target-user alice \
  --target-session alice_console_001 \
  --text "Data analysis is complete. Results saved to report.pdf"

Common Mistakes

Mistake 1: Using channel send for a normal reply

If you are replying to the user in the current session, do not use qwenpaw channels send.

Mistake 2: Sending without querying sessions first

Do not guess target-user or target-session. First run:

qwenpaw chats list --agent-id <your_agent> --channel <channel>

Mistake 3: Missing required parameters

All five are required: --agent-id, --channel, --target-user, --target-session, --text.

Mistake 4: Expecting a reply from send

There is no reply. It only pushes the message.

Mistake 5: Picking an arbitrary session when the user has multiple

Prefer the most recently active session.


Optional Commands

List all sessions

qwenpaw chats list --agent-id <your_agent>

List sessions for a specific user

qwenpaw chats list --agent-id <your_agent> --user-id <user_id>

List available channels

qwenpaw channels list --agent-id <your_agent>

Difference from Agent Chat

  • qwenpaw agents chat: sends to another agent, two-way, returns a reply
  • qwenpaw channels send: sends to a user/session/channel, one-way, no reply

Selection principle:

  • Need to collaborate with another agent → qwenpaw agents chat
  • Need to proactively push a message to a user → qwenpaw channels send

Full Parameter Reference

qwenpaw chats list

Required parameters:

  • --agent-id: Agent ID

Optional parameters:

  • --channel: filter by channel
  • --user-id: filter by user
  • --base-url: override API address

qwenpaw channels send

Required parameters (5):

  • --agent-id: sender agent ID
  • --channel: target channel (console/dingtalk/feishu/discord/imessage/qq/...)
  • --target-user: target user ID (obtained from qwenpaw chats list)
  • --target-session: target session ID (obtained from qwenpaw chats list)
  • --text: message content

Optional parameters:

  • --base-url: override API address

Help

Use -h at any time to view detailed help:

qwenpaw channels -h
qwenpaw channels send -h
qwenpaw chats -h
qwenpaw chats list -h

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 35,028
本站分层T1
该仓技能数44
原文件路径src/qwenpaw/agents/skills/channel_message-en/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 44 个技能

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 channel_message 的技能。它们内容并不相同,别混用:

  • agentscope-ai/QwenPaw — 当需要主动向用户、会话或频道单向发送消息时,使用本 skill。通常仅在用户明确要求向某个 channel / 会话发送消息,或需要主动通知时使用。先用 qwenpaw chats