Hi there, this is @sugyan (Twitter, GitHub) from LINE Kyoto office. This was first time for me to experience Kyoto’s Summer, and boy, was it really hot or what!? (The original post in Japanese was published in August 2018.) In June 2018, a new message type, Flex Message, was introduced in the LINE Message API, allowing more complex […]
A new type of message has been added to the LINE Messaging API, Flex Message. We’ve been using a template-typed message in which you could place plain text, stickers, images, media types like videos, buttons and URLs. This type is quite useful for where the user had to select an option from available options, but there were restrictions such as the maximum number of buttons allowed, which is 4, for the button template, or the order in which you had to arrange the elements for a layout — title, content, and buttons.
What is Flex Message?
The Flex Message type frees you from the old restrictions and enables you to arrange layouts as desired. There is a display frame, but you can change the layout as you do with HTML code, and each component is neatly displayed. Here are a few of the layouts you can compose with Flex Message.