通常只有在用户明确要求向某个 channel / 会话发送消息,或你需要主动推送通知(如任务完成、提醒、告警)时,使用本 skill。
这是单向发送,不会返回回复。
qwenpaw channels send
target-user 或 target-session
target-user 和 target-session
channel send 是单向推送,不会返回用户回复
qwenpaw chats list --agent-id <your_agent> --channel <channel>
也可以按用户筛选:
qwenpaw chats list --agent-id <your_agent> --user-id <user_id>
qwenpaw channels send \
--agent-id <your_agent> \
--channel <channel> \
--target-user <user_id> \
--target-session <session_id> \
--text "..."
1. 判断:是否为用户明确要求发送,或是否需要主动通知
2. qwenpaw chats list 查询目标 session
3. 从结果中获取 user_id 和 session_id
4. 若有多个 session,优先选最近活跃的
5. qwenpaw channels send 发送消息
6. 结束(无回复)
qwenpaw channels send 必须同时提供:
--agent-id
--channel
--target-user
--target-session
--text
发送前先执行:
qwenpaw chats list --agent-id <your_agent> --channel <channel>
从结果中获取:
user_id → --target-user
session_id → --target-session
如果有多个候选 session,优先选择 updated_at 最近的会话。
qwenpaw channels send 只负责发送,不等待回复。
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 "周报已生成,请查收"
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 "✅ 任务已完成"
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 "数据分析已完成,结果已保存到 report.pdf"
如果你正在当前会话里直接回复用户,不要使用 qwenpaw channels send。
不要猜 target-user 或 target-session,先执行:
qwenpaw chats list --agent-id <your_agent> --channel <channel>
--agent-id、--channel、--target-user、--target-session、--text 五个都必填。
不会。它只是推送消息。
应优先选择最近活跃的 session。
qwenpaw chats list --agent-id <your_agent>
qwenpaw chats list --agent-id <your_agent> --user-id <user_id>
qwenpaw channels list --agent-id <your_agent>
选择原则:
qwenpaw agents chat
qwenpaw channels send
必填参数:
--agent-id:Agent ID可选参数:
--channel:按频道筛选--user-id:按用户筛选--base-url:覆盖API地址必填参数(5个):
--agent-id:发送方agent ID--channel:目标频道(console/dingtalk/feishu/discord/imessage/qq/...)--target-user:目标用户ID(从 qwenpaw chats list 获取)--target-session:目标会话ID(从 qwenpaw chats list 获取)--text:消息内容可选参数:
--base-url:覆盖API地址随时使用 -h 查看详细帮助:
qwenpaw channels -h
qwenpaw channels send -h
qwenpaw chats -h
qwenpaw chats list -h