Wechat Official Account Node icon

Wechat Official Account Node

Wechat Official Account Node

Overview

This node integrates with the WeChat Official Account platform, specifically enabling users to create new draft articles within their official account's draft box. It is useful for automating content management workflows where drafts need to be programmatically created and managed before publishing. For example, marketing teams can use this node to batch upload multiple draft articles prepared in advance, or developers can integrate it into content pipelines that generate article drafts dynamically.

Properties

Name Meaning
草稿文章对象内容(Articles) JSON array representing the draft article objects to be created. Each object should follow the structure defined by the WeChat Official Account API for adding drafts. Reference: https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Add_draft.html

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output JSON contains the response from the WeChat Official Account API after attempting to create a draft article. If an error occurs during processing an item, the output for that item will contain an error field describing the issue.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the WeChat Official Account platform.
  • The node depends on the WeChat Official Account API endpoint for managing draft articles.
  • Proper configuration of the API credentials within n8n is necessary to authorize requests.

Troubleshooting

  • Common issues:
    • Invalid or missing API credentials will cause authentication failures.
    • Incorrectly formatted draft article JSON objects may result in API errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:
    • Errors returned from the WeChat API are captured and included in the output under the error field for each failed item.
    • If the node is set not to continue on failure, any error will stop execution and throw a detailed error message indicating the resource, operation, and item index.
  • Resolution tips:
    • Verify that the API credentials are correctly configured and have sufficient permissions.
    • Validate the JSON structure of the draft articles against the official WeChat documentation.
    • Enable "Continue On Fail" option if you want the node to process all items even if some fail.

Links and References

Discussion