Actions43
- 用户标签 Actions
- 用户 Actions
- 模板 Actions
- 发布 Actions
- 其他 Actions
- 菜单 Actions
- 素材 Actions
- 草稿 Actions
- 评论 Actions
Overview
This node integrates with the Wechat Official Account platform to manage various media resources. Specifically, for the resource "素材" (media material), it supports the operation "新增其他类型永久素材" (add other types of permanent media materials). This operation allows users to upload permanent media files such as images, voice recordings, videos, or thumbnails to their Wechat Official Account.
Common scenarios where this node is beneficial include:
- Uploading marketing images or promotional videos to a Wechat Official Account.
- Adding voice messages or audio clips as permanent media.
- Managing thumbnail images associated with other media content.
For example, a user can upload a video file along with its title and introduction to be permanently stored and used in their official account campaigns.
Properties
| Name | Meaning |
|---|---|
| 媒体文件类型 (type) | The type of media file to upload. Options: 图片 (image), 语音 (voice), 视频 (video), 缩略图 (thumb) |
| 文件 (inputDataFieldName) | The name of the input field containing the binary data of the file to upload. Typically refers to the binary property name holding the media content. |
| 视频素材的标题 (videoTitle) | The title of the video media. Required only when uploading a video. Maximum length: 30 characters. |
| 视频素材的介绍 (videoIntroduction) | An optional description/introduction for the video media. Only applicable when uploading a video. |
Output
The node outputs an array of JSON objects representing the result of the upload operation for each input item. Each output JSON typically contains metadata about the uploaded media, such as media IDs or URLs assigned by the Wechat platform.
If the node handles binary data input, it does not output binary data itself but processes the binary input to upload the media.
Dependencies
- Requires valid API credentials for the Wechat Official Account platform (an API key or token).
- The node depends on the Wechat Official Account API to perform media uploads.
- Proper configuration of credentials within n8n is necessary to authenticate requests.
Troubleshooting
Common issues:
- Incorrect or missing binary data field name will cause upload failures.
- Providing invalid or expired API credentials will result in authentication errors.
- Video title exceeding 30 characters may cause validation errors.
- Unsupported media types or corrupted files might lead to upload rejection.
Error messages:
"未实现方法: 素材.新增其他类型永久素材"indicates the operation is not implemented or incorrectly referenced.- Authentication errors suggest checking API credentials.
- File-related errors often require verifying the binary input field and file integrity.
To resolve these, ensure the binary input field name matches the actual input, credentials are valid, and media files conform to Wechat's requirements.
Links and References
- Wechat Official Account API Documentation
- Wechat Media Management API (for reference on media upload endpoints)