Preface
Hello everyone, I am Evan Lin, a Tech Evangelist from LINE Taiwan. I am very happy to be invited by the chatbot community to participate in the "Chatbot meetup 聊天機器人小小聚 20 @Online" meetup event and share the LINE API updates and my personal development experience. Here, I would also like to share my experience of participating in this event, and I hope that through the power of community sharing, the development momentum of chatbots can be even more prosperous.
- Community Chatbots Meetup: https://chatbots.kktix.cc/
- This event webpage: Event URL
- This event's collaborative notes: https://hackmd.io/@chatbot-tw/meetups-020
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 quite 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.
This event finally returned to the LINE Taiwan office to be held, and this is also the first offline meetup held by the LINE office after the pandemic. I hope that through this meetup, more friends can understand that creating your own chatbot is such a joyful thing.
Video of the entire sharing:
LINE Platform June 2020 Updates
Slides
06/09: Flex Message Simulator tutorial now available
Flex Message has always been the most commonly used message format for developers to interact with users when developing chatbots. In addition to providing various basic templates, there are also many components that allow developers to unleash their creativity. And the Flex Message Simulator is the best bridge for developers and designers to communicate. Designers can use the Flex Message Simulator to create beautiful Flex Messages, and then provide the JSON data to developers to add to the Chatbot.
But how to develop Flex Messages through the Flex Message Simulator? This month, there is a new document update, through step-by-step teaching, so that people without a programming foundation can also develop a digital business card through the Flex Message Simulator.
If you need more Flex Message templates, you can also refer to this article, which is a template I translated from the LINE API Expert from Thailand.
Reference links:
06/10: Messaging API update for June 2020
Next is the Messaging API new feature update for this month. The main updates this month are all related to Groups and Rooms, mainly around the following three new features:
- Get Group Profile
- Get the total number of members in the group
- Get the total number of members in the chat room
Through these three pieces of information, the author also compiled how to create a simple group/chat room management bot in the content later.
06/15: The setting "Linked OA" in the Developer Console has been moved
Originally, there was a "Linked OA" in the LINE Login Channel, which is the official account Channel linked to the specified LINE Login Channel. After setting the link, you can ask users whether they want to add the official account as a friend while using LINE Login. It's quite useful! The setting location has been moved from the "LINE Login" Tab to the "Basic Setting" location, don't forget everyone.
06/15: LIFF supports Error Code
In the past, for LIFF developers, if the API request failed (or an error occurred). Only Exception will appear and needs to be handled, but often you don't know what the problem is? Is it a parameter setting error? Or is the call method incorrect?
Now, you can get the LiffErr data. Currently, the following APIs are supported:
LINE Group/Room Chatbot Feature Introduction and Tips
Code open source: https://github.com/kkdai/linebot-group
Join the official account directly for testing:
Example description:
This is a Demo Chatbot that integrates all the APIs related to Groups and Rooms, and has the following functions:
- After being invited to (Group/Room), automatically inform how many people are currently in the group and inform the current group name.
- API:
- Get information: https://developers.line.biz/en/reference/messaging-api/#get-group-summary
- Get the total number of chat room members: https://developers.line.biz/en/reference/messaging-api/#get-members-room-count
- Get the total number of group members: https://developers.line.biz/en/reference/messaging-api/#get-members-group-count
- After a member speaks, automatically through the API to get member information
- API:
- Get group member information: https://developers.line.biz/en/reference/messaging-api/#get-group-member-profile
- Get chat room member information: https://developers.line.biz/en/reference/messaging-api/#get-room-member-profile
- Leave (Group/Room)
- API:
- Leave group: https://developers.line.biz/en/reference/messaging-api/#leave-group
- Leave chat room: https://developers.line.biz/en/reference/messaging-api/#leave-room
Tip 1: How to handle Join Event
Group:
After the chatbot is added to the group, it will immediately receive the Join event webhook.
Chat Room:
After the chatbot joins the chat room, it will not immediately receive the join event. It needs members in the chat room to speak, or someone joins or leaves, before it will receive the notification.
Tip 2: How to know which (Group/Room) the message is from
There is an information source in the Webhook, which will show whether the message source is from a group or a chat room. You can use source.groupId or source.roomId to confirm the relevant information.
Summary:
I hope that through this LINE Group/Room Demo Bot, developers can better understand how to use the relevant APIs of groups and chat rooms, and develop more creative chatbots.
About the sharing of other audience members at the event:
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 Taiwan for a long time to hold internal and external, online and offline developer community gatherings, recruitment days, developer conferences, etc., and has held more than 30 events. Readers are welcome to continue to check back for the latest updates. For details, please see:





Top comments (0)