Actions43
- 用户标签 Actions
- 用户 Actions
- 模板 Actions
- 发布 Actions
- 其他 Actions
- 菜单 Actions
- 素材 Actions
- 草稿 Actions
- 评论 Actions
Overview
This node interacts with the WeChat Official Account platform to retrieve comments associated with a specific message. The "查看评论" (View Comments) operation allows users to fetch comments for a given message data ID, including options to specify which article in a multi-article message to query, the starting position of comments to retrieve, the number of comments to fetch, and the type of comments (normal, featured, or both).
Common scenarios where this node is beneficial include:
- Monitoring user engagement by fetching comments on broadcasted messages.
- Moderating or analyzing feedback from followers on specific articles within a multi-article post.
- Integrating comment data into workflows for sentiment analysis or customer support.
Practical example:
- After sending a mass message with multiple articles, use this node to fetch the first 50 normal and featured comments on the second article (index 1) to analyze audience reactions.
Properties
| Name | Meaning |
|---|---|
| 消息数据ID (msg_data_id) | The unique identifier returned after sending a mass message; used to specify which message's comments to retrieve. |
| 图文索引 (index) | Specifies which article in a multi-article message to query comments for, starting at 0. Defaults to 0 if not provided. |
| 起始位置 (begin) | The starting position (offset) from which to begin retrieving comments. Required. |
| 获取数目 (count) | Number of comments to retrieve. Must be less than 50; requests with 50 or more will be rejected. Required. |
| 评论类型 (type) | Type of comments to fetch: - 0: Both normal and featured comments - 1: Normal comments only - 2: Featured comments only |
Output
The node outputs an array of JSON objects representing the retrieved comments. Each object corresponds to a single comment and includes details such as the comment content, author information, timestamp, and possibly metadata indicating whether it is a featured comment.
If the node supports binary data output (not indicated explicitly here), it would typically represent media attachments related to comments, but based on the provided code and properties, the output focuses on JSON comment 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 from the
resourcedirectory, specifically the implementation for the "comment" resource and "comment:list" operation. - No additional external services are explicitly required beyond the WeChat Official Account API.
Troubleshooting
- Error: "未实现方法" (Method not implemented) — This indicates that the requested resource-operation combination is not supported or missing its implementation. Verify that the resource and operation names are correct and that the corresponding module exists.
- Request Rejected for count >= 50 — The API rejects requests asking for 50 or more comments. Ensure the
countproperty is set below 50. - Authentication Errors — If the API key or credentials are invalid or missing, the node will fail to authenticate. Confirm that valid credentials are configured.
- Network or API Errors — Temporary network issues or API rate limits may cause failures. Implement retry logic or check API usage quotas.
- Continue On Fail Behavior — If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.
Links and References
- WeChat Official Account Platform Documentation (general reference for API capabilities)
- n8n Documentation on Creating Custom Nodes (for understanding node structure and development)
Note: The summary is based solely on static analysis of the provided source code and property definitions without runtime execution or dynamic import resolution.