Overview
This node sends messages via TikTok's messaging system, supporting both text and image messages. It is useful for automating communication in TikTok conversations, such as sending notifications, replies, or media content. For example, it can send a text message to a specific TikTok conversation or send an image either as binary data or a base64 string.
Use Case Examples
- Sending a text message to a TikTok conversation using conversation ID and short ID.
- Sending an image message by providing the image as binary data from a previous node.
- Sending an image message by providing the image as a base64 encoded string.
Properties
| Name | Meaning |
|---|---|
| Conversation ID | The unique identifier of the TikTok conversation to send the message to. |
| Conversation Short ID | The short identifier of the TikTok conversation to send the message to. |
| Text Value | The text content of the message to send. Can be empty if sending an image. |
| Image Input Type | Specifies how the image is provided: either as binary data from a previous node or as a base64 encoded string. |
| Image Binary Field | The name of the binary property containing the image data when using binary input type. |
| Base64 Image | The base64 encoded image data when using base64 input type. |
Output
JSON
success- Indicates if the message was processed successfully.message- Status message about the processing result.usage- Information about API usage related to the message sent.quota- Information about the remaining quota for sending messages.
Dependencies
- Requires TikTok API credentials including a TikTok session and an API key for authentication.
Troubleshooting
- Error if both text and image are empty: Ensure at least one of text or image is provided.
- Error if conversation ID or short ID is missing: Provide valid conversation identifiers.
- Error if TikTok session or API key is missing or invalid: Check credentials configuration.
- Error retrieving binary data: Verify the binary field name and that the input node provides the binary data correctly.
- WebSocket connection errors: Check network connectivity and TikTok session validity.