WeChat Message and File Sender for Openclaw

A comprehensive communication skill for Openclaw Skills that enables AI agents to query WeChat sessions and actively send text messages or various file types to contacts.

lianghaoxun
v1.0.0
Apr 4, 2026
0
995
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install wechat-account-send

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install wechat-account-send using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is WeChat Message and File Sender?

The WeChat Message and File Sender is a specialized integration designed for Openclaw Skills that bridges AI agents with the WeChat ecosystem. It provides a robust framework for managing active communication sessions, querying user account information, and executing active delivery of both text and media content. By utilizing this skill, developers can empower their agents to interact with WeChat users in real-time, whether for automated notifications or complex file-sharing tasks.

This skill supports a wide range of media formats including images, videos, audio, and documents. It is architected for versatility, featuring multi-account management and cross-platform compatibility across Windows, Linux, and macOS. It ensures that Openclaw Skills can maintain persistent and organized communication channels with high reliability and detailed debugging feedback.

WeChat Message and File Sender Use Cases

  • Sending automated notifications or status reminders to specific WeChat contacts or group chats.
  • Transferring AI-generated reports, screenshots, or logs directly to a user's mobile device via WeChat.
  • Monitoring active session states to identify the most recent or relevant chat threads for agent response.
  • Building automated file-sharing workflows for team collaboration involving documents, spreadsheets, or media files.

How WeChat Message and File Sender Works

  1. The skill identifies the OpenClaw state directory and locates specific account configuration files using automatic path detection.
  2. When a session query is initiated, it calls the session list tool to retrieve active chat metadata and unique session keys.
  3. For text delivery, the skill constructs a standardized HTTP request containing the message payload and account credentials for the WeChat backend API.
  4. For file transmission, the system validates the local file, prepares encryption parameters, and uploads the content to a secure CDN.
  5. Once the file access parameters are generated, the skill triggers a message delivery API call to the specified recipient or group.
  6. The skill processes the server response to confirm successful delivery or provide detailed error logging for troubleshooting.

WeChat Message and File Sender Setup

To integrate this within your Openclaw Skills environment, follow these steps:

  1. Ensure you have OpenClaw installed and at least one WeChat account logged in.
  2. Install the necessary Python dependencies:
pip install requests uuid pathlib
  1. The skill automatically detects your configuration path. If you use a custom directory, set the environment variable:
# Linux/macOS
export OPENCLAW_STATE_DIR="/path/to/your/openclaw"
# Windows
set OPENCLAW_STATE_DIR="C:\path\to\your\openclaw"
  1. Verify that account IDs are correctly mapped in your .openclaw/openclaw-weixin/accounts directory.

WeChat Message and File Sender Data Schema & Taxonomy

The skill organizes communication data and file metadata according to the following structure:

Attribute Description Data Type
account_id The unique identifier for the sender's WeChat account String
sessionKey A unique key identifying a specific chat or group conversation String
activeMinutes Filtering parameter to find sessions active within N minutes Integer
messageLimit The number of historical messages to retrieve per session Integer
file_path The absolute local path to a file intended for transmission String

File Size Constraints:

  • Images: Up to 10 MB
  • Videos: Up to 20 MB
  • Other Documents: Up to 50 MB

WeChat Message and File Sender Advanced Features

  • Automatic platform-specific path detection for configuration files across Windows, macOS, and Linux.
  • Multi-stage file processing including local validation, encryption, and CDN synchronization for media delivery.
  • Dynamic session filtering that allows agents to target the most recently active users based on timing and message volume.
  • Support for a wide array of file extensions including compressed archives (zip, rar, 7z) and professional documents (pdf, docx, xlsx, pptx).

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*