Segment and push LINE messages

You can send messages to LINE users from a HubSpot "Workflow" tool.


Workflow Actions

1. 「Send LINE Message in Realtime」

This action assumes sending an interactive message according to the activities of LINE friends. Select the LINE User ID of the target contact in the "LINE User ID" field.

Then add the message you want to send. You can deliver up to five messages at a time. Dynamic messages can be created using contact tokens.

The max length of the message is 2,000. Please be careful to keep your message under this limit.


2. 「Send LINE Message」

This action assumes sending an interactive message according to the activities of LINE friends. The target LINE account connection can be selected in the "LINE Account" item.

The message settings are the same as "Reply LINE Message".

3. 「Send LINE Message by Queue」

This action is intended for mass message delivery. Use this action to send a message to many friends at once.

In this action, the delivery of LINE messages is managed in a queue, and the delivery process is performed sequentially. This guarantees the certainty of delivery and enables delivery of up to 500,000 messages.

When delivering a message with this action, you can specify the delivery frequency. By default, it is set to deliver only once an hour. If you want to change the frequency, please set in "delivery frequency" of Little Help App Manager.


Message Formats

You can send a variety of messages by describing a JSON definition. This includes stickers, images, videos, templates, and more! Any kind of messages introduced in the LINE messaging API document should be worked.

If you register the invalid JSON definition, the action will be failed or send a meaningless JSON text to a LINE user. We'd like to recommend using an online JSON validator to confirm your JSON definition is valid or not. This is helpful, especially you are creating a complex configuration.


The followings are sample JSON definitions. Please use them as a template for your message. Also, if you have any issues sending a message, please contact our support team. We are happy to help!

1. Sticker

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

For the detail of "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"
}
}

Your LINE messages had been delivered, those are recorded in the contact's timeline. You can show those records using the "LINE (by Little Help)" filter in the contact activity.


Using LINE Bot Designer

By using the tool "LINE Bot Designer" provided by LINE, the above JSON definition can be automatically generated by GUI settings.

botdesigner

Copy the “JSON” value in the lower right corner of the tool and paste it into the HubSpot workflow action.

Next: One to One Communication