WeChat Official Account Draft Manager for Openclaw

A developer-focused CLI tool for managing WeChat Official Account drafts, including automated image uploads and article publishing.

manifoldor
v1.0.6
Mar 12, 2026
3
2.7k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install channel

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 channel 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 Official Account Draft Manager?

The WeChat Official Account Draft Manager is a robust integration designed for Openclaw Skills to simplify content administration on the WeChat platform. It provides a programmatic interface to the WeChat API, allowing developers and AI agents to create graphic draft articles, manage image assets, and execute publishing workflows without manual intervention in the WeChat backend.

By leveraging this tool within Openclaw Skills, users can bridge the gap between AI-generated content and official distribution channels. It handles the technical complexities of the WeChat ecosystem, such as token management, media ID tracking, and content formatting, making it a vital asset for automated digital marketing pipelines.

WeChat Official Account Draft Manager Use Cases

  • Automating the delivery of AI-generated daily reports or news summaries to WeChat subscribers.
  • Bulk importing legacy Markdown documentation or blog posts into the WeChat draft system for final review.
  • Integrating WeChat publishing into a centralized content management system using Openclaw Skills.
  • Rapidly deleting or listing drafts to maintain a clean workspace within the WeChat backend limit of 100 drafts.

How WeChat Official Account Draft Manager Works

  1. The tool authenticates with the WeChat API using the provided AppID and AppSecret to obtain a temporary Access Token.
  2. When creating a draft, it parses the input content (Markdown or HTML) and identifies local image paths.
  3. Local images are automatically uploaded to WeChat permanent material storage to retrieve server-side URLs.
  4. If no cover image is provided, the tool generates a professional gradient cover automatically.
  5. The tool assembles the article metadata (title, author, summary) and content into a JSON payload and sends it to the WeChat draft box API.
  6. A Media ID is returned, which can be used to list, preview, or publish the article instantly.

WeChat Official Account Draft Manager Setup

To use this within Openclaw Skills, you must first configure your developer credentials from the WeChat Official Account platform.

# Set your environment variables
export WECHAT_APPID="your-app-id"
export WECHAT_APPSECRET="your-app-secret"

# Refresh your shell environment
source ~/.zshrc

Ensure your server IP is added to the IP Whitelist in the WeChat Developer settings.

WeChat Official Account Draft Manager Data Schema & Taxonomy

The skill manages content using the following metadata taxonomy and data structure:

Attribute Type Description
Media ID String Unique identifier for the draft or published article.
Title String The headline of the article (required).
Digest String A short summary, automatically extracted from the first paragraph if not provided.
Content HTML/MD The body of the article including uploaded image links.
Author String Optional author field for article attribution.
Cover File Path Local path to the cover image or auto-generated gradient.

WeChat Official Account Draft Manager Advanced Features

  • Smart Summary Extraction: Automatically strips HTML tags and truncates the first paragraph to 120 characters for the article digest.
  • Automatic Cover Generation: Creates a 900x500 JPEG with a blue-purple gradient if a cover image is missing.
  • Markdown to WeChat HTML: Supports native Markdown syntax for bold, italics, and images with automatic media hosting conversion.
  • Multi-format Support: Accepts content via direct CLI arguments or by reading from local text and Markdown files.
  • Publish Authorization: Supports the direct 'publish' command for accounts with API publishing permissions.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*