Flex Message is a feature that allows you to freely design the layout of messages displayed in LINE chat screens. By combining text and images and placing buttons, you can encourage users to take the next action, making it effective for marketing and acquiring inquiries or leads. However, because the display changes depending on the device's screen width, font size, and other factors, careful design is essential. This article provides a comprehensive explanation of the basic structure of Flex Messages, how to define them in JSON, how to send them via the Messaging API, how to create layouts that are resilient to differences in character count, screen width, and font size, settings for when layouts do not display, button text, version-specific features, and how to verify them on actual devices. This content is useful not only for those in charge of implementation but also for those designing marketing strategies and those considering LINE marketing. Please be sure to read until the end.
1. What is a Flex Message?
A Flex Message is a message format that allows you to create richer and more interactive layouts than standard LINE messages.
You can combine text and images and place buttons to encourage users to take the next action.
For example,
✅ Product delivery status notifications
✅ Restaurant reservation confirmations
✅ Event participation guides
✅ Invoice notifications
and more, allowing you to create messages that enable the recipient to immediately grasp the content and take the next step.
Since you can guide users to websites or application forms via buttons, it is easier to lead to inquiries and lead acquisition.
Flex Messages are delivered to the user's LINE by sending content defined in JSON via the Messaging API.
While you can freely design the appearance, the display changes depending on the device and settings, so careful design is essential.
This content is useful for understanding the mechanism of Flex Messages, not only for those in charge of implementation but also for those designing marketing strategies.
2. Understanding the Basic Structure
Flex Messages are composed of a hierarchy of containers, bubbles, blocks, and components.
A container is the top-level structure that wraps the entire message and can contain one or more bubbles.
A bubble is composed of blocks, and blocks are composed of components such as text or images.
Being aware of this hierarchy makes it easier to design and modify layouts.
Flex Messages are written in JSON format, and the definition is specified when sending the message.
Additionally, you can specify the text writing direction as left-to-right or right-to-left.
3. Defining Flex Messages in JSON
Flex Messages are written in JSON format.
If one message bubble is sufficient, use a bubble container. For the bubble, set the body as the block required for displaying the message, and place a box within the body. In the box, specify the layout direction (horizontal or vertical) and the components (such as text) to be placed inside.
For example, the following is a description example for placing two pieces of text, "Hello," and "World!", side by side.
In this way, you specify the type and settings of each element in order while being aware of the hierarchy of containers, bubbles, blocks, and components.
4. Sending via Messaging API
Flex Messages are sent using the message sending function of the Messaging API.
The sending request specifies the recipient user and the message to be sent.
For the message, specify the type as Flex Message, and set the alternative text (altText) to be displayed when the layout cannot be rendered, as well as the content definition (contents).
For the content definition, specify the bubble and box structure explained earlier as is.
The sending method varies depending on the type of message being delivered, such as push messages.
Note that for the alternative text (altText), you should set specific wording that conveys the content of the message.
5. Display Varies by Device Environment
Even with the same Flex Message, the rendering result differs depending on the environment of the receiving device.
Factors that influence this include the OS, LINE app version, device resolution, language settings, and fonts. While Flex Messages can be used on all versions of LINE, some features (such as video display, bubble size specification, and font scaling) are limited to specific LINE versions.
Therefore, design that assumes multiple environments is required, rather than checking only on specific devices.
6. Understanding Version-Specific Features
While Flex Messages can be used on all versions of LINE, some features are limited to specific versions.
Video display, box maximum width/height, and text line spacing settings are available on mobile LINE version 11.22.0 or higher and PC LINE version 7.7.0 or higher.
Also, bubble size specification and text/button/icon scaling settings are available on mobile LINE version 13.6.0 or higher and PC LINE version 7.17.0 or higher.
In versions where video cannot be displayed, specifying an alternative image will display that image instead of the video.
Also, in versions where bubble size cannot be specified, it will be displayed at the standard size.
It is important to check in advance whether the features you intend to use are supported and to be prepared for the possibility of display breakage.
7. Layouts That Do Not Break When Character Counts Change
Character counts for product names, store names, etc., vary depending on the data.
If you design using only short samples, text may be cut off or crowd adjacent elements with actual data.
For data where character counts are not constant, it is important to check the display by inserting actual data.
Enable the setting to wrap text, and if it becomes too long, limit the number of lines displayed.
If the wrapping setting is not enabled, the text will not wrap.
However, limiting the number of lines does not guarantee the number of characters displayed.
Note that because the number of characters that fit on one line changes depending on the device screen width and font, the line break position may differ even with the same settings.
8. Layouts That Do Not Break When Screen Width Changes
In horizontal layouts, text may wrap earlier on devices with narrow screen widths, changing the overall height.
By combining settings to fix the width for short labels and settings to use the remaining width for variable-length text along with wrapping settings, it becomes easier to display information even when the screen width changes.
Be aware that if you set a fixed width for variable-length text, the end may not be displayed on devices with narrow screen widths.
9. Layouts that remain readable even when font sizes change
If a user has set a larger font size in their LINE app, the text wrapping positions and element heights may change. Enabling settings that scale fonts and icons according to the font size will make them easier to read even with larger fonts. There are also settings for buttons and text to shrink characters so they fit within the display area, but the behavior may vary depending on the device. Aim for a layout where important information remains readable even if the font size changes.
10. Convey important information using independent elements
Important information such as payment deadlines, reservation dates and times, and order statuses should be placed as independent text rather than being included within long product names or descriptions. For example, if you include the scheduled delivery date and time within a long product name, that important information might become invisible if the product name is truncated. This ensures that important information is displayed reliably even if the product name or similar text is cut off. Also, if you fix the width of elements in pixels, the number of characters that can be displayed will decrease depending on the screen width. It is recommended to avoid placement methods where elements might overlap and instead place important information within a standard layout.
11. Convey content even in situations where the layout is not displayed
For Flex Messages, you need to set text that will be displayed in situations where the layout itself is not shown. Including information about what the message is, its current status, and the next action the user should take in this text—which appears in device notifications, the LINE app chat list, and quoted messages—makes the content easier to understand. Since this text is also read aloud by screen readers, it is considerate of users who rely on non-visual methods to check content. For example, for a message notifying a user of a delivery status, specifically include the store name, product name, and scheduled arrival date and time. For event information, include the event name, date and time, and entry method; for billing notifications, include the amount and deadline so the recipient can grasp the content immediately.
12. Clarify the next action with button text
It is important that the text set for buttons specifically indicates what will happen when they are tapped. Generic wording like "Confirm" or "Click here" makes it difficult to understand the action that will follow. It is clearer to include the target and the operation, such as "Check delivery status" or "Change reservation date and time." For example, if you only write "Details," it is unclear what will happen after tapping. By clearly stating the target and operation, such as "Check order details," users can operate without hesitation. When arranging multiple buttons, organize the wording so that the difference between primary and auxiliary operations is clear. Also, since button text is read aloud by screen readers, this is considerate of users who operate without relying on visuals.
13. Improve quality by checking on actual devices
You can check the display of the Flex Messages you create in the simulator. However, the display may differ between the simulator and the actual LINE app depending on the device screen width, OS, LINE app version, language settings, and fonts. Send a test message and check the actual display on multiple devices. ✅ Can the content be inferred from notifications and the chat list? ✅ Is long text not being truncated? ✅ Is side-by-side text not overlapping or being cut off? ✅ Is it readable even when the font size is increased? ✅ Is the button text not being truncated? Check if tappable elements are in easy-to-understand positions.
14. Summary: Leading to inquiries and lead acquisition
Flex Messages are defined in JSON and sent via the Messaging API. Because they offer a high degree of freedom, it is important to consider not just the appearance, but also how the content and operations will be conveyed in any environment. Design layouts that are resilient to differences in character count, screen width, and font size; set up the text for situations where the layout is not displayed; refine the button wording; and check on actual devices. In addition, understanding the differences in features based on the version of LINE being used will prevent unexpected display issues. If you use videos or certain layout features, check the supported versions and prepare alternative displays. By following this sequence, you can create messages that are easy for users to understand, which will lead to more inquiries and lead acquisition.
Thank you for reading to the end. If you have any questions or inquiries regarding this article, please feel free to send them via the banner below or to our question box (https://note.com/qa/fourglobe_uz).
■ Leave your LINE marketing consultations to Fourglobe!
Fourglobe has acquired certifications in both the LINE Technology Partner Communication category and the LINE Mini App category, and possesses advanced knowledge and know-how for implementing LINE services. We have a wealth of experience in supporting digital marketing over many years and have particularly advanced knowledge and know-how for implementing LINE marketing. Please feel free to consult with us regarding improvement proposals for marketing measures, as well as the introduction of tools such as advertisements and LINE Mini Apps that are tailored to your business operations!