Actions43
- 用户标签 Actions
- 用户 Actions
- 模板 Actions
- 发布 Actions
- 其他 Actions
- 菜单 Actions
- 素材 Actions
- 草稿 Actions
- 评论 Actions
Overview
This node interacts with the Wechat Official Account platform, specifically handling comments on posts. The "标记精选" (Mark as Featured) operation under the "评论" (Comment) resource allows users to mark a specific user comment as featured for a given message data ID and optionally specify which article in a multi-article post the comment belongs to.
Common scenarios include:
- Highlighting important or valuable user comments on official account posts.
- Managing community engagement by featuring selected comments.
- Automating moderation workflows where certain comments are marked as featured based on criteria external to this node.
Example use case:
- After retrieving comments from a Wechat Official Account post, you can use this node to mark a particular comment as featured by providing the message data ID, the index of the article (if multiple), and the user comment ID.
Properties
| Name | Meaning |
|---|---|
| 消息数据ID | The msg_data_id returned from a mass send operation; identifies the message data. |
| 图文索引 | The index specifying which article in a multi-article post to target, starting at 0. Defaults to 0 if not provided. |
| 用户评论ID | The user_comment_id identifying the specific user comment to be marked as featured. |
Output
The node outputs JSON data representing the result of the "mark as featured" operation for each input item processed. Each output item corresponds to an input item and contains either the success response or an error object if the operation failed.
No binary data is produced by this node.
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 from the
resourcedirectory, which implement the actual API calls. - Proper configuration of the Wechat Official Account credentials within n8n is necessary.
Troubleshooting
Common issues:
- Providing an invalid or expired
msg_data_idoruser_comment_idwill cause the operation to fail. - Incorrect
indexvalues (e.g., out of range for the number of articles) may lead to errors or unexpected behavior. - Missing required properties (
msg_data_idoruser_comment_id) will prevent execution.
- Providing an invalid or expired
Error messages:
"未实现方法: 评论.标记精选"indicates that the requested resource-operation combination is not implemented or recognized; verify the resource and operation names.- API errors returned from Wechat, such as authentication failures or invalid parameters, will be surfaced as error messages in the node output.
Resolution tips:
- Double-check all input property values for correctness.
- Ensure the API credentials are valid and have sufficient permissions.
- Use the node's "Continue On Fail" option to handle errors gracefully during batch processing.
Links and References
- Wechat Official Account Platform Documentation (official API docs)
- n8n documentation on Creating Custom Nodes