
cnproduct/workbuddy-wechat-publisher
API developmentThis page was translated automatically. Technical details may differ from the original. View the original
WorkBuddy WeChat Official Account Fully Automated Publishing Skill Pack: Writing → Image Illustration → Layout → Publishing Draft Box
Overview
When users provide article topics or commands, the entire process of "writing - > image description - > layout - > publishing" is automatically executed, ultimately producing public account articles that are richly illustrated and beautifully formatted. 1. - Get AppID and AppSecret on the WeChat public platform - Add server IP to WeChat whitelist - Enable Draft Box permissions (WeChat authentication required) Currently, two methods are supported: 1. : Call raw image APIs such as DALL-E or Midjourney 2. : Search from free image libraries like Unsplash and Pexels - WeChat authentication (subscription or service account) is required - IP whitelist must be configured on public platforms - permission to create a draft box is required Modify the CSS section in wechat-html-formatter/SKILL.md. - Cover image: 900x383 (2.35:1) - Article image: 1080x608 (16:9) or 1080x1080 (1:1)
Overview (machine translated)
Fully automated public account publishing skills kit – from writing to publishing, complete with one click.
Feature Overview
When users provide article topics or commands, the entire process of “writing - > image description - > layout - > publishing” is automatically executed, ultimately producing public account articles that are richly illustrated and beautifully formatted.
Skill Pack Structure
Four Sub-Skills
1. wechat-content-writer
Function: Write articles that match the style of viral public accounts based on user instructions
Trigger words: Write official account articles, official account content, and official account copy
Output: Markdown articles with [配图: 描述] placeholders
2. WeChat-Illustrator (Image Generation)
Function: Analyze article content and generate or match images at designated locations
Trigger words: Image placement, generate images, public account images
Output: List of image URLs
3. wechat-html-formatter (HTML Formatting)
Features: Convert Markdown into beautiful WeChat Official Account HTML
Trigger Keywords: Official Account layout, HTML layout, WeChat layout
Output: Can be directly pasted into the WeChat editor’s HTML file
4. wechat-draft-publisher
Function: Call the WeChat Official Account API to publish articles into the draft box
Trigger Words: Publish on the official account, draft box, or public account release
Output: Draft ID and preview link
Prerequisites for use
- WeChat Official Platform Configuration
- Get
AppIDand [[T2] on the WeChat Official Accounts platform - Add the server IP to the WeChat whitelist
- Requires Draft Box permissions (WeChat authentication required)
- Install Dependencies (Python script)
Get Started Quickly
Step 1: Configure WeChat parameters
Copy the configuration file and fill in your WeChat information:
Edit wechat_config.json:
Step 2: Use skills
Method 1: Complete Workflow (Recommended)
Method 2: Use Sub-Skills Alone
Step 3: Review the results
After successful release, the following information will be returned:
- Draft ID
- Preview link
- Edit the link
Workflow Connection
Master Workflow (AGENT Mode)
Code Call Example
Style Theme
HTML formatting supports multiple theme color schemes:
Tech Blue (Default)
Vitality Orange
Fresh Green
Frequently Asked Questions
Q1: How to generate accompanying images?
Currently, two methods are supported:
- API Generation: Call image generation APIs such as DALL-E and Midjourney
- Stock Matching: Search for free stock images on platforms like Unsplash and Pexels
Q2: What permissions are required to publish to the draft box?
- WeChat authentication required (subscription account or service account)
- Requires configuring an IP whitelist on public platforms
- Permission to create drafts is required
Q3: How to customize styles?
This page was translated automatically. Technical details may differ from the original.
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add cnproduct/workbuddy-wechat-publisher