Overview
This node constructs various types of messages compatible with the LINE Messaging API, including text, image, video, audio, location, sticker, and flex messages. It is useful for automating the creation of LINE messages in workflows, such as sending multimedia content, location information, or interactive flex messages to users.
Use Case Examples
- Sending a video message with a preview image and tracking ID to monitor video play completion.
- Creating an audio message with a specified duration and content URL.
- Building a flex message with custom JSON content for rich interactive messaging.
Properties
| Name | Meaning |
|---|---|
| Original Content URL | URL of the content to be sent (e.g., video, image, or audio). For audio, only M4A format is supported. |
| Preview Image URL | URL of the preview image for image or video messages. |
| Tracking ID | ID used for tracking video play completion statistics, applicable to video messages. |
Output
JSON
messagetype- Type of the message (e.g., video, image, text).originalContentUrl- URL of the original content for media messages.previewImageUrl- URL of the preview image for image or video messages.trackingId- Tracking ID for video messages to monitor play completion.
Troubleshooting
- Ensure URLs for content and preview images use HTTPS and do not exceed 1000 characters to avoid errors.
- For audio messages, only M4A format is supported; using other formats may cause message failures.
- Flex message contents must be valid JSON; invalid JSON will cause an error with a message indicating the problematic item.
Links
- LINE Messaging API Message Types - Official documentation on different message types supported by the LINE Messaging API.
- Flex Message Documentation - Details on the structure and elements of Flex Messages for LINE.