AI Agent Hub
Back to skills
📁

WeCom Messages

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_d8831e99/wecomcli-msg into your AI assistant according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem to Solve

WeCom chats often mix single chats, group chats, text, and attachments, making it hard to trace a recent conversation, locate downloaded files, and send a follow-up reply without context switching. This skill wraps common wecom-cli msg operations into an engineer-friendly workflow for querying chats, pulling messages, saving media, and sending text replies.

Core Capabilities and Flow

The skill centers on four operations:
- Chat lookup: use get_msg_chat_list to find conversations in a time range, then match by chat_name; group chats usually use chat_type=2, otherwise single chat is assumed.
- Message retrieval: use get_message to fetch records for a conversation, supporting text, image, file, voice, and video, limited to the last 7 days.
- Media handling: call get_msg_media to download non-text items, returning local_path, type, and size; the flow reports file locations and asks whether to clean up temporary files.
- Text replies: use send_message to send text to a single or group chat after confirming recipient and content.

Key limits include the required YYYY-MM-DD HH:mm:ss time format, the 7-day message window, the need to verify downloaded files are readable, and the dependency on wecomcli-contact for mapping user IDs to names.

Use Cases

  • Trace colleague feedback by querying a recent 7-day direct chat and locating key text or file attachments.
  • Prepare meeting materials by pulling recent project group messages and downloading images, files, audio, and video.
  • Check cross-team status by finding a group chat, reviewing recent messages, and sending a text confirmation.
  • Organize conversations by listing recent chats, selecting a chatid, pulling messages, and mapping user IDs to names.

Best For

  • Automation engineers building WeCom workflows who need fixed flows for chat lookup, message retrieval, and text sending.
  • Project managers tracking client communication who need recent 7-day records from a person or group plus downloaded attachments.
  • Operations specialists organizing message archives who need to find chats by name, pull records, and verify local file paths.
  • Support engineers reviewing service conversations who need to inspect group or direct chat messages and send text confirmations.