Sending other types of messages

By using JSON data, you can deliver messages in various formats. A tool called "LINE Bot Designer" provided by LINE is useful for data generation.



After setting the necessary items, copy the JSON data generated at the bottom right of the tool and paste it into the HubSpot workflow action to use.

The following is a sample JSON data of various messages.

1. Sticker

  {
"type": "sticker",
"packageId": "1",
"stickerId": "2"
}

For details on "packageId" and "stickerId", please refer to this PDF file.

2. Image

  {
"type": "image",
"originalContentUrl": "",
"previewImageUrl": "https://littlehelp.co.jp/images/hero.jpg"
}

3. Video

  {
"type": "video",
"originalContentUrl": "https://storage.googleapis.com/littlehelp-app-storage/lineapp.mp4",
"previewImageUrl": "https://storage.googleapis.com/littlehelp-app-storage/lineapp.png"
}

4. Location

  {
"type": "location",
"title": "my location",
"address": "2-21-1, Shibuya, Shibuya Ku, Tokyo To, 150-0002, Japan",
"latitude": 35.65910807942215,
"longitude": 139.70372892916203
}

5. Button Template

  {
"type": "template",
"altText": "This is a buttons template",
"template": {
"type": "buttons",
"thumbnailImageUrl": "https://littlehelp.co.jp/images/hero.jpg",
"imageAspectRatio": "rectangle",
"imageSize": "cover",
"imageBackgroundColor": "#FFFFFF",
"title": "Little Help Agency LLC",
"text": "HubSpot LINE Integration",
"defaultAction": {
"type": "uri",
"label": "View detail",
"uri": "https://littlehelp.co.jp/line/"
},
"actions": [
{
"type": "uri",
"label": "View detail",
"uri": "https://littlehelp.co.jp/line/"
},
{
"type": "postback",
"label": "Free Trial",
"data": "action=trial&itemid=123"
},
{
"type": "postback",
"label": "Contact Us",
"data": "action=contact&itemid=123"
}
]
}
}

6. Confirm Template

  {
"type": "template",
"altText": "this is a confirm template",
"template": {
"type": "confirm",
"text": "Are you sure?",
"actions": [
{
"type": "message",
"label": "Yes",
"text": "yes"
},
{
"type": "message",
"label": "No",
"text": "no"
}
]
}
}

7. Carousel Template

  {
"type": "template",
"altText": "this is a carousel template",
"template": {
"type": "carousel",
"columns": [
{
"thumbnailImageUrl": "https://littlehelp.co.jp/images/hero.jpg",
"imageBackgroundColor": "#FFFFFF",
"title": "Little Help Agency LLC",
"text": "HubSpot LINE Integration",
"defaultAction": {
"type": "uri",
"label": "View detail",
"uri": "https://littlehelp.co.jp/line/"
},
"actions": [
{
"type": "uri",
"label": "View detail",
"uri": "https://littlehelp.co.jp/line/"
},
{
"type": "postback",
"label": "Free Trial",
"data": "action=trial&itemid=123"
},
{
"type": "postback",
"label": "Contact Us",
"data": "action=contact&itemid=123"
}
]
},
{
"thumbnailImageUrl": "https://littlehelp.co.jp/images/hero.jpg",
"imageBackgroundColor": "#FFFFFF",
"title": "Little Help Agency LLC",
"text": "HubSpot LINE Integration",
"defaultAction": {
"type": "uri",
"label": "View detail",
"uri": "https://littlehelp.co.jp/line/"
},
"actions": [
{
"type": "uri",
"label": "View detail",
"uri": "https://littlehelp.co.jp/line/"
},
{
"type": "postback",
"label": "Free Trial",
"data": "action=trial&itemid=123"
},
{
"type": "postback",
"label": "Contact Us",
"data": "action=contact&itemid=123"
}
]
}
],
"imageAspectRatio": "rectangle",
"imageSize": "cover"
}
}


The JSON data specifications conform to the LINE Messaging API. For details, please refer to the LINE Developers documentation.

Next: About Traffic Analytics