WeChat Official Account Article Auto-Publisher
by @openlark
Complete the creation, editing, and publishing of WeChat Official Account articles through browser automation simulating manual operation. No API key require...
clawhub install wechat-mp-article-publisherπ About This Skill
name: wechat-mp-article-publisher description: Complete the creation, editing, and publishing of WeChat Official Account articles through browser automation simulating manual operation. No API key required; operates directly on the Official Account platform backend.
WeChat Official Account Article Auto-Publisher
Operate the WeChat Official Account platform backend through browser automation (xbrowser skill) to complete the full workflow of article creation, editing, and publishing.
Use Cases
Dependencies
This skill depends on the xbrowser skill for browser automation. Ensure the browser is launched and logged in or ready for QR code login before execution.
Workflow
1. Log into the Official Account Platform
browser navigate https://mp.weixin.qq.com
browser snapshot refs=aria to get page elements2. Create an Article
Locate and operate on the backend dashboard:
browser snapshot refs=aria # Get page structure
browser act ref= kind=click # Click "New Creation"
browser snapshot refs=aria # Get the dropdown menu
browser act ref= kind=click # Click "Article"
Wait for the editor page to fully load.
3. Populate Article Content
After the editor loads, fill in the following content in order. Use snapshot to confirm element references before each operation.
#### Title (Required, max 64 characters)
browser act ref= kind=type text=""
#### Author (Required)
browser act ref= kind=click # Click the author input area
browser snapshot refs=aria # Confirm the author list that pops up
browser act ref= kind=click # Select the first item
#### Cover Image β Auto-generate via AI Illustration
# Locate the cover image area
browser snapshot refs=aria
Click the cover image area, select "AI Illustration"
browser act ref= kind=click
browser snapshot refs=aria
browser act ref= kind=click
Enter an illustration description (auto-generated prompt based on article topic)
browser act ref= kind=type text=""
Click "Start Creation"
browser act ref= kind=click
Wait for generation to complete, select the first image
browser snapshot refs=aria
browser act ref= kind=click
Click "Use" to confirm
browser act ref= kind=click
#### Abstract (Optional, max 120 characters)
Automatically generate an abstract based on the body content and fill it into the abstract input:
browser snapshot refs=aria # Locate the abstract input
browser act ref= kind=type text=""
#### Body
browser snapshot refs=aria # Locate the editor area
browser act ref= kind=type text=""
The body supports rich text. If the content includes complex formatting or images, operations can be performed in segments.
4. Claim Originality
browser snapshot refs=aria # Locate the "Original" button
browser act ref= kind=click
Confirm the dialog
browser snapshot refs=aria
browser act ref= kind=click
5. Preview and Check
browser snapshot refs=aria # Locate the "Preview" button
browser act ref= kind=click
A QR code will pop up for preview. Prompt the user to scan with WeChat on their phone to view the effect and confirm that layout, images, and links are correct.
6. Publish Article
browser snapshot refs=aria # Locate the "Publish" button
browser act ref= kind=click
browser snapshot refs=aria # Confirm the publishing options panel
In the publishing options panel:
After confirming, execute publishing:
browser act ref= kind=click # Click "Publish"
browser snapshot refs=aria
browser act ref= kind=click # Click "Continue to Publish"
A WeChat QR code verification box will then pop up. Prompt the user to scan the QR code with the admin WeChat account to confirm publishing.
Key Constraints
browser snapshot refs=aria to confirm element references before each operation. Do not rely on old refs from memory.Usage Examples
User: "Help me publish this article to the Official Account"
Execution flow:
1. Open mp.weixin.qq.com, prompt the user to scan the QR code to log in 2. Go to the article creation page (New Creation β Article) 3. Fill in the title and body; auto-generate the cover image (AI Illustration) and abstract 4. Claim originality 5. Prompt the user to preview and confirm 6. Complete publishing, wait for the user to scan the QR code for verification
User: "Schedule this article to publish on the Official Account tomorrow at 8 AM"
Execution flow: Same as steps 1-5 above. In step 6, first enable "Scheduled Publishing," select tomorrow at 8:00 AM, then execute publishing.