Line

Lineで利用できる変数です。
Lineのリファレンス Messaging Object を適宜参照してください。
また、管理画面には LINE説明用テンプレート テンプレートがあるので、そちらも参考にして下さい。

共通の変数と、送信したいメッセージ(text, image, imagemap, buttons, confirm, carousel)ごとの変数を以下で説明します。
メッセージでは5個までが一度に送信可能です。

Common variables

NameTypeRequiredDescription
app_nameString○line
lineVersionString○v2

Text Message

NameTypeRequiredDescription
textString○Text
Max: 2000 characters
🚧

テキスト内URLのクリック計測

現状テキスト内のURLはクリックの計測はされません。自動的な短縮化も行いません。

Image Message

NameTypeRequiredDescription
imageString○Image URL
Max: 1000 characters
HTTPS
JPEG
Max: 1024 x 1024
Max: 1 MB

imagemap Message

NameTypeRequiredDescription
imagemapObject (Folder)○
imagemap.altTextString○Alternative text
Max: 400 characters
imagemap.baseUrlString○Base URL of the image
Max: 1000 characters
HTTPS
imagemap.baseSizeObject (Folder)○
imagemap.baseSize.widthNumber○Width of base image in pixels. Set to 1040.
imagemap.baseSize.heightNumber○Height of base image. Set to the height that corresponds to a width of 1040 pixels.
imagemap.actions[]Array (List)○Action when tapped
Max: 50
imagemap.actions[].typeString○uri
imagemap.actions[].linkUriString○Webpage URL
Max: 1000 characters
Automatically convert this field into https://s.karte.io/xxx formats for click tracking.
imagemap.actions[].areaObject (Folder)○Defined tappable area
imagemap.actions[].area.xNumber○Horizontal position relative to the top-left corner of the area
imagemap.actions[].area.yNumber○Vertical position relative to the top-left corner of the area
imagemap.actions[].area.widthNumber○Width of the tappable area
imagemap.actions[].area.heightNumber○Height of the tappable area

buttons Message

NameTypeRequiredDescription
buttonsObject (Folder)○
buttons.altTextString○Alternative text.
Max: 400 characters
buttons.titleStringTitle
Max: 40 characters
buttons.textString○Message text
Max: 160 characters (no image or title)
Max: 60 characters (message with an image or title)
buttons.thumbnailImageUrlStringImage URL (Max: 1000 characters)
HTTPS
JPEG or PNG
Max width: 1024px
Max: 1 MB
buttons.actions[]Array (List)○

Action when tapped
Max: 4

See Action Object

confirm Message

NameTypeRequiredDescription
confirmObject (Folder)○
confirm.altTextString○Alternative text.
Max: 400 characters
confirm.textString○Message text
Max: 240 characters
confirm.actions[]Array (List)○

Action when tapped
Set 2 actions for the 2 buttons

See Action Object

carousel Message

NameTypeRequiredDescription
carouselObject (Folder)○
carousel.altTextString○Alternative text.
Max: 400 characters
carousel.columns[]Array (List)○Array of columns
Max: 10
carousel.columns[].thumbnailImageUrlStringImage URL (Max: 1000 characters)
HTTPS
JPEG or PNG
Max width: 1024px
Max: 1 MB
carousel.columns[].titleStringTitle
Max: 40 characters
carousel.columns[].textString○Message text
Max: 120 characters (no image or title)
Max: 60 characters (message with an image or title)
carousel.columns[].actions[]Array (List)○

Action when tapped
Max: 3

See Action Object

Action Object

NameTypeRequiredDescription
typeString○message or uri
labelString○Label for the action
Required for templates other than image carousel. Max: 20 characters.
Optional for image carousel templates. Max: 12 characters.
Optional for rich menus. Spoken when the accessibility feature is enabled on the client device. Max: 20 characters. Supported on LINE 8.2.0 and later for iOS.
Required for quick reply buttons. Max: 20 characters. Supported on LINE 8.11.0 and later for iOS and Android.
Requird for the button component of Flex Message. This property can be specified for the box, image, and text components but its value is not displayed. Max: 20 characters.
textString○ (if type is message)Text sent when the action is performed
Max: 300 characters
uriString○ (if type is uri)

URI opened when the action is performed (Max: 1000 characters)
The available schemes are http, https, line, and tel.

Automatically convert this field into https://s.karte.io/xxx formats for click tracking.