wecomcli-message

Send Markdown, image, file, voice, and video messages to WeCom chats via wecom-cli.

2.0k|291|Updated Jul 24, 2026
One-click install
npx skills add https://github.com/Pinvou/pinvou-agent --skill wecomcli-message-pinvou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wecomcli-message
Source: https://github.com/Pinvou/pinvou-agent/tree/main/pinvou3-app/src-tauri/resources/common/bundle/wecom-skills/wecomcli-message
Command: npx skills add https://github.com/Pinvou/pinvou-agent --skill wecomcli-message-pinvou

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wecom-cli.

What problem does it solve? Sending messages to WeCom (Enterprise WeChat) colleagues or group chats from an AI agent requires resolving the correct chat session, uploading media, and calling the right API commands. This Skill handles that entire flow through the wecom-cli command-line tool, so you can message authorized contacts or recently active chats without manual API work. ## Core Features & Use Cases - Session Discovery: Lists chats the bot can message (single and group chats) sorted by most recent activity, and matches targets by chat name or position. - Multi-format Messaging: Sends Markdown text (up to 20480 UTF-8 bytes), images, files, AMR voice, and video messages with optional titles and descriptions. - Media Integration: Coordinates with the wecomcli-media skill to upload local files and obtain the media_id required for non-text messages. - Use Case: Ask the agent to send a weekly report as a Markdown message to your team group chat, or forward a generated PDF file to a colleague you recently chatted with on WeCom. ## Quick Start Send a Markdown message saying 'deployment complete' to my most recent WeCom group chat.

Frequently Asked Questions about wecomcli-message

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send a message to a WeCom group chat from the command line?

Use wecom-cli message aibot sessions list to find the target group, copy its chat_id, then run wecom-cli message aibot send with msg_type markdown and your content. The chat_id must come from the current sessions list, not from saved or user-provided values.

How to send images or files through WeCom bot messages?

First upload the local file via the media upload interface to get a media_id, then call message aibot send with msg_type image or file and that media_id. The msg_type must match the type returned by the upload response.

Can I message any WeCom user with the bot?

No. You can only message the authorized user (found via identity whoami) or single and group chats that appear in the current sessions list of recently active conversations. Targets outside that list cannot be reached.

What audio formats does WeCom voice messaging support?

Voice messages only support AMR format source files. Renaming another audio file to .amr does not work; the file must be genuinely encoded as AMR before uploading for a media_id.

Why does sending fail with an invalid chat_id error?

The chat_id must be copied verbatim from the current sessions list response. User-supplied IDs, contact userids, or chat_ids from earlier conversation turns are not accepted and must be re-matched against a fresh sessions list.