Actions9
Overview
This node integrates with the WeChat Official Account API to manage draft articles and their publication. It supports creating drafts from single or multiple articles, including HTML content arrays, retrieving, deleting, and publishing drafts either individually or in batches with delay control. It also handles media uploads and material listing for article thumbnails and content images. This node is useful for automating content management workflows for WeChat Official Accounts, such as scheduling multiple draft publications or batch uploading memes for content enrichment.
Use Case Examples
- Publish a single draft article by specifying its media ID.
- Publish multiple drafts sequentially with a delay between each to avoid rate limits.
- Create drafts from an array of HTML content, automatically inserting images and generating summaries.
- Retrieve the publishing status of a specific article using its publish ID.
Properties
| Name | Meaning |
|---|---|
| Publish Mode | Choose whether to publish a single draft or multiple drafts. |
| Media ID (singleMediaId) | The media ID of the draft to publish when publishing a single draft. |
| Media IDs JSON Array (multipleMediaIds) | A JSON array of media IDs representing multiple drafts to publish sequentially. |
| Publish Delay (multiPublishDelay) | Delay in seconds between publishing each draft when publishing multiple drafts. Recommended to avoid rate limits. |
Output
JSON
publish_mode- Indicates if publishing was done in single or multiple mode.total_drafts- Total number of drafts attempted to publish.success_count- Number of drafts successfully published.failed_count- Number of drafts that failed to publish.total_time_seconds- Total time taken for the publishing operation in seconds.publish_delay_seconds- Configured delay between publishing each draft in seconds.publish_results- Array of results for each draft including media ID, status, publish ID, and timestamps.usage_tip- Summary tip about the publishing operation outcome.
Dependencies
- WeChat Official Account API
Troubleshooting
- Invalid JSON format errors when providing multiple media IDs. Ensure the JSON array is correctly formatted with media_id fields.
- No valid media IDs found error indicates the input array is empty or incorrectly structured; verify the input source.
- Rate limiting issues when publishing multiple drafts too quickly; use the Publish Delay property to set a delay between publishes.
- Errors during publishing individual drafts will be reported in the publish_results array with error messages for troubleshooting.
Links
- WeChat Official Account API Documentation - Official documentation for WeChat Official Account API used by this node.