DEV Community

Evan Lin
Evan Lin

Posted on • Originally published at evanlin.com on

Chatbots 19 @online and May 2020 LINE Platform Updates: Conference Notes

Preface

Hello everyone, I am Evan Lin, a Tech Evangelist at LINE Taiwan. I am very happy to be invited by the chatbot community to participate in the "Chatbot meetup 聊天機器人小小聚 19 @Online" meetup event and share the LINE API updates and my personal development experience. Here, I would also like to share my experience in participating in this event, and I hope that through the power of community sharing, the development momentum of chatbots can be even more prosperous.

Since Chatbots Meetup itself is a community-driven event, there are also many lightning talks sponsored by community friends. All the content inside is also very rare and interesting. I also hope that through this article, everyone can get a little understanding of the charm of the Chatbots Meetup community lightning talks.

Due to the requirements of epidemic prevention, this time I participated in this meetup event online. I am very grateful to every friend who participated for their questions, and I hope that through online and video recording, more friends can understand.

LINE Platform Update 202005 / Senior Development Technology Promotion Engineer Evan Lin

Slides

04/30: liff.getLineVersion() and liff.id added to LIFF v2

Although LIFF previously provided the liff.isApiAvailable() function to check whether the API can be supported. However, many times, developers need to obtain the user's LINE App version for the purpose of problem reproduction and debugging. At this time, you can use LIFF's liff.getLineVersion() to get the LINE App version number that is currently running this LIFF. Of course, if the user uses an External Browser to open LIFF, this will return null.

05/08: LIFF Versioning policy and life cycle have been released

Next, this part discusses the LIFF Versioning policy, which will adopt Semantic Versioning, that is, for version number management, it will follow the following principles: MAJOR.MINOR.PATCH. As for what MAJOR, MINOR, and PATCH represent, please refer to the relevant information.

In addition, this announcement also stated that after the version is no longer supported (End-of-life), the related SDK will also be removed from the CDN, and there will be no API available.

Finally, and most importantly, is the LIFF support cycle that developers are concerned about: LIFF v1 will be supported until September 2021.

I hope that all developers can remember this time and prepare to migrate the LIFF App to LIFF v2 as soon as possible.

05/12: Messaging API update for May 2020

Message character limit and media file usage conditions have been changed

It's time for the monthly platform update explanation. The May platform update. The first part of the update is about the Messaging API, and there are some message quotas that need to be increased. There are related Image Message, Video Message, and Text Message limits that have been increased. Those who need it can check this part.

Getting LINE emoji information from the text object of a webhook event

The second part of the update is the addition of LINE Emoji webhook support, which allows developers to receive LINE Emoji message data sent by users. For details, please check: Some details about LINE Emoji (taking Golang as an example).

Safely retrying a failed API request

Many developers may not receive the correct response from the platform when sending Broadcast or Multicast messages because the message volume is too large. It is also possible that the platform's response is not normal due to certain unexpected situations, which prevents developers from confirming whether users have received the correct messages. In the past, the situation was to ensure that users could receive messages by repeatedly sending them, but in this way, many duplicate users may receive duplicate messages, which in turn leads to repeated calculation of fees.

This May update provides a "Safely retrying" mechanism. It allows developers to test whether the last message was sent successfully and also ensures whether any users were missed. The relevant usage scenarios are as follows:

  • If you don't know if the last message was sent successfully, calling "Safely retrying" can resend the same message. Those who have received it will not receive duplicate messages, and those who have not received it can be sure to receive it.
  • If the last sending encountered an accident where the platform could not complete the command, you can use "Safely retrying" to confirm the status of the last time with the platform. If the last time was completely sent, there will be no concerns about repeated billing.

05/19 OGP tags are now available in the LIFF app

OGP (Open Graph Protocol) was originally a protocol for SNS or browsers to capture thumbnails and related information. However, due to the redirection of http://liff.line.me, OGP could not operate correctly on LIFF. Now it is also supported normally, no matter what kind of LIFF information, you can get the correct information and thumbnails on other SNS (or LINE App) by filling in the correct OGP information.

05/21: Publish API documentation to get a permanent link

Previously, after entering a certain page through LIFF, it was not possible to correctly obtain the URL of a subpage for transmission and sharing. Now, you can use the new API liff.permanentLink.createUrl() to share the LIFF page with other users. You can also use liff.permanentLink.setExtraQueryParams() to help combine the user's current environment parameters to create relevant information and become a shareable URL.

Introduction to LINE Beacon:

Finally, I would also like to share with developers that the current LINE Beacon has officially started operations. Developers (or businesses) with any development needs are welcome to contact sales through LINE for Business. The main difference is that in addition to using Beacon Banner, you can also deploy and promote it on a large scale. There are also related platforms that allow you to set up many useful message promotions.

Using lotify + Swagger to build a shared LINE Notify bot / LINE API Expert - NiJia

Video

Slides

The second speaker is NiJia, a LINE API Expert, who brought an explanation of the LINE Notify package (lotify). lotify (https://github.com/louis70109/lotify) is a Python-developed LINE Notify SDK that can help developers get started quickly and allows developers to generate URLs and change tokens in addition to sending. And it also has the following features:

  • Quick deployment of Heroku
  • Client library
  • Swagger documentation
  • Openapi generator
  • JS usage examples

github: https://github.com/louis70109/lotify

How to send hidden data to the bot in LIFF / Microprogram Co., Ltd. - Junmin

Video

Slides

The speaker shared how to use liff.sendMessage() to send a 2x1 transparent image to embed different information to the LINE Bot's Webhook end. By doing this, information can be brought from the LIFF front end to the LINE Bot, and because it is a way of sending messages, there is a replyToken that can be replied to the user.

Related blog articles: https://taichunmin.idv.tw/blog/2020-04-07-line-liff-send-hidden-data.html

Lightning Talk - LINEBOT Learning Map】 - #Jeffrey

Video

Slides

Speaker Jeffrey recently shared a series of LINE Bot learning map videos in the community, talking about LINE Bot through the sharing of hand-drawn pictures, analyzing the types of LINE Bot interaction behavior, and also sharing how to solve user needs in terms of design.

It is recommended that anyone can listen, and gain a broader and deeper understanding of LINE Bot from UX and design aspects.

Event Summary

Community sharing is always the best way to spark creativity, and Chatbots Meetup is a very enthusiastic and creative community organization. I also hope that more creative developers are willing to join the LINE Chatbot development ranks, and I hope to enthusiastically participate in community activities and share together.

Join the "LINE Developer Official Community" official account immediately, and you can receive push notifications of the latest Meetup events or the latest news related to the developer program. ▼

"LINE Developer Official Community" Official Account ID: @line_tw_dev

About the "LINE Developer Community Program"

LINE launched the "LINE Developer Community Program" in Taiwan at the beginning of this year, and will invest manpower and resources in the long term to hold developer community gatherings, recruitment days, developer conferences, etc., both internally and externally, online and offline, in Taiwan, and has already held more than 30 events. Readers are welcome to continue to check back for the latest updates. For details, please see:

Top comments (0)