Message → Broadcast
AI-generatedOverview
This node interacts with the LINE Messaging API to send broadcast messages to all users of a LINE bot. It supports sending various types of messages including text, image, video, audio, location, sticker, and flex messages. Users can also add quick reply buttons to the broadcast messages for enhanced interactivity. This node is useful for scenarios where a message needs to be sent to all subscribers of a LINE bot, such as announcements, promotions, or updates.
Use Case Examples
- Broadcast a text message to all users announcing a new product launch.
- Send a broadcast image message with a preview to all users for a marketing campaign.
- Broadcast a location message to share the venue of an upcoming event with all users.
Properties
| Name | Meaning |
|---|---|
| Message Type | The type of message to send (text, image, video, audio, location, sticker, flex). |
| Text | The text message to send (required if message type is text). |
| Original Content URL | URL of the original content for image, video, or audio messages (must be HTTPS). |
| Preview Image URL | URL of the preview image for image or video messages (must be HTTPS). |
| Title | The title of the location (required if message type is location). |
| Address | The address of the location (required if message type is location). |
| Latitude | The latitude of the location (required if message type is location). |
| Longitude | The longitude of the location (required if message type is location). |
| Package ID | The package ID of the sticker (required if message type is sticker). |
| Sticker ID | The sticker ID (required if message type is sticker). |
| Alt Text | Alternative text for devices that do not support flex messages (required if message type is flex). |
| Flex Contents | The flex message container in JSON format (required if message type is flex). |
| Add Quick Reply | Whether to add quick reply buttons to the message (max 13 items). |
| Quick Reply Mode | Choose how to configure quick reply buttons (builder or JSON). |
| Quick Reply JSON | Quick reply configuration in JSON format, must contain an 'items' array (used if Quick Reply Mode is JSON). |
| Quick Reply Items | Quick reply button items configured via the visual builder (used if Quick Reply Mode is builder). |
Output
JSON
json- Response data from the LINE Messaging API or error information.
Dependencies
- LINE Messaging API
- an API key credential for authentication
Troubleshooting
- Ensure the API key credential is correctly configured and has the necessary permissions to send broadcast messages.
- Verify that URLs for original content and preview images use HTTPS as required by the LINE API.
- If the node throws errors related to message formatting, check that required fields for the selected message type are provided and correctly formatted.
- Quick reply buttons must not exceed 13 items; exceeding this limit may cause errors.
Links
- LINE Messaging API Message Types - Official documentation on different message types supported by the LINE Messaging API.
- Send Broadcast Message - LINE Messaging API - Official API reference for sending broadcast messages to all users.