Overview
This node constructs a message object specifically 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, enabling users to send rich content such as flex messages with custom layouts, multimedia messages, or simple text messages. For example, it can be used to send a flex message with a custom JSON layout or a text message with user mentions.
Use Case Examples
- Sending a flex message with a custom JSON structure to create rich interactive content.
- Sending a text message with user mentions or emojis.
- Sending an image or video message with URLs to multimedia content.
Properties
| Name | Meaning |
|---|---|
| Alt Text | Alternative text for the Flex Message (Max: 400 characters) |
| Contents (JSON) | The Flex Message container object in JSON format defining the layout and contents of the flex message. |
Output
JSON
messagetype- The type of the LINE message (e.g., flex)altText- Alternative text for the flex message, used when the flex message cannot be displayedcontents- The JSON object representing the flex message layout and contents
Dependencies
- Requires an API key credential for LINE Messaging API to send messages.
Troubleshooting
- If the 'contents' JSON for the flex message is invalid, the node throws an error indicating the JSON is not valid. Users should verify the JSON structure according to the LINE Flex Message documentation.
- Ensure the 'altText' is provided and does not exceed 400 characters to avoid message sending errors.
- Check that URLs for multimedia messages (if used) are HTTPS and accessible.
Links
- LINE Flex Message Documentation - Official documentation for the structure and elements of LINE Flex Messages.