Install
openclaw skills install wechat-mp-article-publisherComplete 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.
openclaw skills install wechat-mp-article-publisherOperate the WeChat Official Account platform backend through browser automation (xbrowser skill) to complete the full workflow of article creation, editing, and publishing.
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.
browser navigate https://mp.weixin.qq.com
browser snapshot refs=aria to get page elementsLocate and operate on the backend dashboard:
browser snapshot refs=aria # Get page structure
browser act ref=<ref> kind=click # Click "New Creation"
browser snapshot refs=aria # Get the dropdown menu
browser act ref=<ref> kind=click # Click "Article"
Wait for the editor page to fully load.
After the editor loads, fill in the following content in order. Use snapshot to confirm element references before each operation.
browser act ref=<title-input-ref> kind=type text="<Article Title>"
browser act ref=<author-area-ref> kind=click # Click the author input area
browser snapshot refs=aria # Confirm the author list that pops up
browser act ref=<first-item-ref> kind=click # Select the first item
# Locate the cover image area
browser snapshot refs=aria
# Click the cover image area, select "AI Illustration"
browser act ref=<cover-area-ref> kind=click
browser snapshot refs=aria
browser act ref=<ai-illustration-button-ref> kind=click
# Enter an illustration description (auto-generated prompt based on article topic)
browser act ref=<description-input-ref> kind=type text="<AI Illustration Description>"
# Click "Start Creation"
browser act ref=<start-creation-ref> kind=click
# Wait for generation to complete, select the first image
browser snapshot refs=aria
browser act ref=<first-image-ref> kind=click
# Click "Use" to confirm
browser act ref=<use-button-ref> kind=click
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=<abstract-input-ref> kind=type text="<Auto-generated abstract>"
browser snapshot refs=aria # Locate the editor area
browser act ref=<editor-ref> kind=type text="<Article body content>"
The body supports rich text. If the content includes complex formatting or images, operations can be performed in segments.
browser snapshot refs=aria # Locate the "Original" button
browser act ref=<original-button-ref> kind=click
# Confirm the dialog
browser snapshot refs=aria
browser act ref=<confirm-button-ref> kind=click
browser snapshot refs=aria # Locate the "Preview" button
browser act ref=<preview-button-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.
browser snapshot refs=aria # Locate the "Publish" button
browser act ref=<publish-button-ref> kind=click
browser snapshot refs=aria # Confirm the publishing options panel
In the publishing options panel:
After confirming, execute publishing:
browser act ref=<publish-confirm-ref> kind=click # Click "Publish"
browser snapshot refs=aria
browser act ref=<continue-publish-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.
browser snapshot refs=aria to confirm element references before each operation. Do not rely on old refs from memory.User: "Help me publish this article to the Official Account"
Execution flow:
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.