wechat-automation

Send text messages, images, and local files via Windows WeChat UI automation.

167|41|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/LAVARONG/wechat-automation-api --skill wechat-automation-lavarong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wechat-automation
Source: https://github.com/LAVARONG/wechat-automation-api/tree/main
Command: npx skills add https://github.com/LAVARONG/wechat-automation-api --skill wechat-automation-lavarong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires flask, requests, uiautomation, Pillow, pywin32, pyperclip, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the tedious manual work of copying and pasting content into the WeChat desktop client by automating the sending of text messages, images, and local files directly through Windows UI automation. It enables AI agents to deliver information, notifications, or generated artifacts to specific contacts or groups without requiring the user to manually operate the WeChat interface.

Core Features & Use Cases

  • Multi-Format Messaging: Send text, image URLs, or local files (documents, images, archives) to any WeChat contact or group by exact name match.
  • Dual Execution Modes: Runs as a synchronous CLI command for immediate, reliable feedback, or automatically falls back to a background HTTP API queue when available to prevent window conflicts during concurrent requests.
  • Robust Error Reporting: Returns explicit error codes for common failures such as missing WeChat windows, unmatched contact names, or clipboard issues, allowing agents to provide precise, actionable feedback to users.

Quick Start

Use the wechat-automation skill to send a text message to the contact "文件传输助手" with the content "Hello from the AI agent".

Frequently Asked Questions about wechat-automation

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

FAQPage Schema
How do I automate sending WeChat messages on Windows desktop?

You can automate sending WeChat messages on Windows desktop by using a Python script with the uiautomation library to control the WeChat window and clipboard operations. This allows AI agents to send text, images, and local files to specific contacts or groups without manual intervention.

What do I need to set up before automating WeChat file transfers with Python?

To automate WeChat file transfers with Python, you need Windows 10/11, Python 3.7+, and the uiautomation library. You also need the desktop WeChat client running, as the automation script controls the application window directly to send messages and local files.

Can I use UI automation to send images and local files to WeChat contacts?

Yes, you can use UI automation to send images and local files to WeChat contacts. By leveraging the uiautomation library and clipboard operations on Windows, the script matches exact contact names and delivers various message formats, including documents and archives, directly through the desktop client.

Does WeChat automation support concurrent messaging requests without window conflicts?

WeChat automation handles concurrent messaging requests by falling back to a background HTTP API queue when available. This prevents window conflicts during simultaneous operations, while a synchronous CLI command mode is used for immediate, reliable feedback on individual messages.

Why does my WeChat automation script fail to find a contact or send messages?

WeChat automation scripts fail to find contacts or send messages when the WeChat window is missing, the contact name does not match exactly, or clipboard issues occur. The script returns explicit error codes for these common failures to help identify and resolve the problem.