Actions43
- 用户标签 Actions
- 用户 Actions
- 模板 Actions
- 发布 Actions
- 其他 Actions
- 菜单 Actions
- 素材 Actions
- 草稿 Actions
- 评论 Actions
Overview
This node interacts with the Wechat Official Account platform, specifically to manage and retrieve data related to drafts. The "获取草稿列表" (Get Draft List) operation fetches a list of draft materials from the user's Wechat Official Account. This is useful for scenarios where users want to programmatically access their saved draft messages or articles, for example, to review, edit, or publish them later.
Practical examples include:
- Automatically retrieving the latest drafts to display in a custom dashboard.
- Integrating draft content into other workflows for approval or further processing.
- Backing up draft content regularly by exporting it through this node.
Properties
| Name | Meaning |
|---|---|
| 偏移位置 | Offset position to start returning drafts from; 0 means starting from the first draft. |
| 返回数量 | Number of drafts to return; valid values are between 1 and 20. |
| 是否返回内容 | Whether to return the full content of the drafts (true or false). |
Output
The output JSON contains an array of draft items retrieved from the Wechat Official Account. Each item represents a draft material, including metadata such as its ID, title, creation date, and optionally its full content if requested.
If the "是否返回内容" property is set to true, the draft's full content will be included in the output; otherwise, only summary information is returned.
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the Wechat Official Account platform.
- The node depends on internal resource and operation modules dynamically loaded at runtime.
- No additional external dependencies are explicitly required beyond the configured credentials.
Troubleshooting
Common issues:
- Invalid offset or count values may result in empty results or errors. Ensure "偏移位置" is non-negative and "返回数量" is between 1 and 20.
- Authentication failures due to missing or incorrect API credentials.
- Network or API rate limiting errors from the Wechat platform.
Error messages:
"未实现方法: 草稿.获取草稿列表"indicates that the requested resource-operation combination is not implemented. Verify the resource and operation names.- Errors during API calls will be logged with details; enabling "Continue On Fail" allows partial success without stopping the workflow.
Links and References
- Wechat Official Account Platform Documentation
- n8n documentation on Creating Custom Nodes