WeChat MP Publisher for Openclaw

A comprehensive toolset for AI agents to programmatically manage and publish articles to WeChat Official Accounts.

ryan32382
v0.1.0
Mar 12, 2026
0
983
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install ryan-wechat-mp

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 ryan-wechat-mp 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 MP Publisher?

WeChat MP Publisher is a powerful extension for Openclaw Skills that bridges the gap between AI agents and the WeChat ecosystem. It enables developers to automate the complex process of publishing articles to WeChat Official Accounts by handling API authentication, media asset management, and content delivery through a standardized interface. By leveraging this skill, teams can streamline their social media workflows and ensure consistent content distribution in the Chinese market.

This skill is built to handle the intricacies of the WeChat Official Account API, including the management of AccessTokens with automatic caching and refresh cycles. Whether you are building an automated news feed or an AI-driven marketing assistant, this integration provides the necessary tools to interact with WeChat's platform reliably and efficiently.

WeChat MP Publisher Use Cases

  • Automating the publication of AI-generated content to WeChat followers.
  • Synchronizing blog posts from external CMS platforms to WeChat Official Account drafts.
  • Programmatic management of media assets like cover images and videos for social media campaigns.
  • Monitoring publication status and handling errors for high-volume content distribution pipelines.

How WeChat MP Publisher Works

  1. The skill authenticates with the WeChat API using the provided App ID and App Secret, managing a local AccessToken cache to optimize request limits.
  2. Media assets such as covers or article images are uploaded to the WeChat servers to generate required media_ids.
  3. Article content is formatted in HTML and combined with metadata like author, summary, and the cover media_id.
  4. The article is submitted to the WeChat platform as either a persistent draft or a direct publication task.
  5. The skill provides a task ID that the agent can use to poll for the final publication status and confirm successful delivery.

WeChat MP Publisher Setup

To get started with this skill, install the dependencies and build the project:

npm install
npm run build

Configure your credentials in ~/.openclaw/config/wechat-mp.json:

{
  "app_id": "your-wechat-app-id",
  "app_secret": "your-wechat-app-secret",
  "default_author": "Default Name",
  "access_token_cache_file": "~/.openclaw/.wechat_mp_token.json"
}

Ensure your server's IP is added to the whitelist in the WeChat MP Admin Portal.

WeChat MP Publisher Data Schema & Taxonomy

The skill organizes its data and responses using the following structure:

Attribute Description Data Type
media_id Unique identifier for images, videos, or drafts on WeChat servers String
publish_id Reference ID for tracking the status of a publication task String
publish_status Numerical status (0: Success, 1: Publishing, 2: Review Failed, 3: Failed) Number
access_token Cached credential stored locally to prevent frequent re-auth String
file_path Local path reference for media asset uploads String

WeChat MP Publisher Advanced Features

  • Automatic AccessToken lifecycle management with persistent file-based caching.
  • Multi-type media support allowing agents to handle images, thumbnails, voices, and videos within a single workflow.
  • Flexible publication logic supporting both immediate 'send' actions and 'save as draft' operations for human review.
  • Integrated error handling providing standardized JSON responses for seamless integration into multi-agent Openclaw Skills environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*