Overview
This node builds a message object for the LINE Messaging API, supporting various message types 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 audio messages with specified duration and content URL, or creating rich flex messages with custom JSON content.
Use Case Examples
- Sending an audio message with a specified M4A file URL and duration.
- Creating a text message with user mentions or emojis.
- Building a flex message with custom JSON content for rich formatting.
Properties
| Name | Meaning |
|---|---|
| Original Content URL | URL of the content to be sent. For audio messages, only M4A format is supported. Used for image, video, and audio message types. |
| Duration | Length of the audio file in milliseconds. Used only for audio messages. |
Output
JSON
messagetype- The type of the LINE message (e.g., audio).originalContentUrl- The URL of the original content for media messages like audio.duration- Duration of the audio message in milliseconds.
Dependencies
- Requires an API key credential for LINE Messaging API to send the constructed message.
Troubleshooting
- Ensure the Original Content URL uses HTTPS and for audio messages, the file format must be M4A.
- If the Flex message contents JSON is invalid, the node throws an error indicating invalid JSON input.
- Duration must be a valid number representing milliseconds for audio messages.
Links
- LINE Messaging API Documentation - Official documentation for the LINE Messaging API, detailing message types and formats.