Example: send LINE message

We will demonstrate steps according to scenarios to show the convenience the "Automation" feature brings to enterprises and how powerful integrations can extend FIRST LINE's capabilities.

1. Add a new Webhook script

Because sending LINE notifications requires using the LINE Message API, we need to call the API URL via a "Webhook script", and related information can be found at https://developers.line.biz/en/reference/messaging-api/ the official documentation.

Request URL: https://api.line.me/v2/bot/message/push Request method: POST Headers: Select Authorization and fill in Bearer {channel access token}

2. Configure LINE Message API parameters

Next, according to LINE's required format, you should have at least the following 2 fields

  1. to: ID of the target recipient. Use a userId, groupId, or roomId value returned in a webhook event object. Do not use the LINE ID found on LINE.

  2. messages: Messages to send.

Example of LIFF cooperating with real-time chat notifications to users

3. Add automation

Finally, after adding the "Send LINE Notification" Webhook script, it will not run automatically, so we need to set the desired conditions via the "Automation" feature and select this "Webhook" in the "Actions". Then just wait for the event to occur to enjoy the benefits of automation.

Design use cases

You can decide when to send LINE notifications based on different use cases and add corresponding conditions and triggers, such as the following situations:

  • When there is an urgent ticket, send a LINE notification to alert the relevant department.

  • When integrating real-time chat in LIFF, if the agent replies but the customer hasn't opened the chat window, send a LINE notification informing them of the content and the LIFF URL.

  • When a ticket is reassigned to a specified supervisor, also send a notification reminder.

Send LINE notification to alert the relevant department

Last updated