push_flex_message
Send customizable flex messages to LINE users with bubble or carousel layouts for enhanced visual communication.
Instructions
Push a highly customizable flex message to a user via LINE. Supports both bubble (single container) and carousel (multiple swipeable bubbles) layouts.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
message | Yes | ||
userId | No | The user ID to receive a message. Defaults to DESTINATION_USER_ID. | U1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p |
Input Schema (JSON Schema)
{
"properties": {
"message": {
"additionalProperties": false,
"properties": {
"altText": {
"description": "Alternative text shown when flex message cannot be displayed.",
"type": "string"
},
"contents": {
"additionalProperties": true,
"description": "Flexible container structure following LINE Flex Message format. For 'bubble' type, can include header, hero, body, footer, and styles sections. For 'carousel' type, includes an array of bubble containers in the 'contents' property.",
"properties": {
"type": {
"description": "Type of the container. 'bubble' for single container, 'carousel' for multiple swipeable bubbles.",
"enum": [
"bubble",
"carousel"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"type": {
"const": "flex",
"default": "flex",
"type": "string"
}
},
"required": [
"altText",
"contents"
],
"type": "object"
},
"userId": {
"default": "U1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p",
"description": "The user ID to receive a message. Defaults to DESTINATION_USER_ID.",
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
}