WeChat GZH Management for Openclaw

A comprehensive API wrapper and CLI tool for managing WeChat Official Account assets, drafts, and publication workflows.

enihsago
v1.0.0
Mar 30, 2026
0
723
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install wechat-gzh

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-gzh 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 GZH Management?

This skill provides a robust interface for interacting with the WeChat Official Account (GZH) API. By leveraging Openclaw Skills, developers can automate repetitive tasks such as credential management, uploading permanent materials (images, videos, voice), and managing the complete lifecycle of article publishing. It bridges the gap between local content development and the WeChat ecosystem, allowing for seamless integration into broader automation pipelines.

The tool is designed for technical users who need reliable access to the WeChat GZH backend without manual intervention in the web portal. It ensures that stable access tokens are handled correctly and provides clear pathways for creating drafts and monitoring publication status, significantly enhancing the efficiency of digital marketing operations.

WeChat GZH Management Use Cases

  • Automating the upload of media assets to the permanent material library for future use.
  • Programmatic creation of article drafts from local content sources.
  • Scheduled publishing of articles and tracking of publication success status.
  • Retrieving and managing lists of previously published articles for archival or audit purposes.
  • Integrating WeChat content management into custom internal dashboards or CI/CD pipelines.

How WeChat GZH Management Works

  1. The skill initializes by reading the AppID and AppSecret from a local configuration file to authenticate with the WeChat API.
  2. It retrieves or refreshes a stable Access Token required for all subsequent API requests.
  3. Users can upload media files (images, videos, or audio) which the skill converts into permanent Media IDs.
  4. Using these Media IDs, the skill can create article drafts with specific titles and body content.
  5. Once a draft is ready, the skill submits a publication request and provides a unique publication ID.
  6. The skill monitors the publication task until the content is live, allowing for automated verification.

WeChat GZH Management Setup

To get started with this skill in your Openclaw Skills environment, you must first configure your credentials. Create a configuration file in your home directory:

cat > ~/.wechat_gzh_config.json << EOF
{
  "appid": "your_appid_here",
  "secret": "your_appsecret_here"
}
EOF

# Secure the configuration file
chmod 600 ~/.wechat_gzh_config.json

Ensure that your server's IP address is added to the IP Whitelist in the WeChat Official Account admin backend to allow API access.

WeChat GZH Management Data Schema & Taxonomy

The skill manages data through a local JSON configuration and interacts with the WeChat API schema as follows:

Component Type Description
Credentials JSON Stores appid and secret in ~/.wechat_gzh_config.json
Materials API Object Maps local files to WeChat media_id identifiers
Drafts API Object Consists of title, content, and thumb_media_id
Publication API Object Tracks publish_id and the resulting status of the release

WeChat GZH Management Advanced Features

  • Support for high-frequency API calls with built-in token caching and refresh logic.
  • Detailed video material support including title and description metadata handling.
  • Full CLI support for terminal-based management of materials and publishing status.
  • Comprehensive error handling for common WeChat API issues like invalid credentials or unauthorized access.
  • Ability to retrieve batch lists of published messages for data analysis and reporting.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*