LINE Flex Message

LINE Flex Message: Design a Card Once, Send It from Any Bot Flow

A Flex Message is a card you lay out yourself, with an image, text and buttons. Design it in LINE's Flex Message Simulator, paste the JSON into ChatMaxima, and your LINE Official Account sends it from a bot flow.

Bubbles and carousels from the Flex Message Simulator
Variables inside the card text, no API code
7-day free trial, no credit card
LINE Flex Message card with an image, text and a button sent from a ChatMaxima bot flow
The Basics

What Is a LINE Flex Message?

A Flex Message is a LINE message with a layout you control. The unit is a bubble: one card made of up to four blocks, always stacked in the same order. Put several bubbles side by side and you have a carousel that the customer swipes through.

Header

A short subject line at the top.

Hero

The main image: a product, a dish or a map.

Body

The main message: titles, prices and dates.

Footer

Buttons that open a link or send a text back.

Which One to Use

LINE Flex Message vs a Text Message with Quick Replies

Quick replies are tap answers under a text message, gone once one is tapped. A Flex Message stays in the chat as a card the customer can scroll back to.

 Flex Message bubbleFlex Message carouselText with quick replies
What the customer seesOne card with image, text and buttonsSeveral cards to swipe sidewaysPlain text with tap answers under it
Best forOne thing: a confirmation, a summary, one productA choice between similar things: products, dishesA quick question: yes or no, pick a topic
ButtonsStay on the cardStay on each cardUp to 13, labels up to 20 characters, shown once
How you build it in ChatMaximaLINE Flex Message blockLINE Flex Message blockButtons on a message block
On other channelsAlternative textAlternative textThat channel's own buttons

Quick replies and the rest of the flow builder are covered in the LINE chatbot guide.

Step by Step

How to Send a LINE Flex Message from ChatMaxima

You design the card in LINE's own tool and ChatMaxima sends it. Connect your LINE Official Account first (see the LINE Messaging API guide).

Open the Flex Message Simulator

Go to LINE's Flex Message Simulator and start from a blank bubble.

Design the bubble or carousel

Add the header, hero image, body text and footer buttons you need, and watch the preview.

Copy the JSON

Click View as JSON and copy everything. It starts with the type bubble or carousel.

Add the LINE Flex Message block to your flow

In ChatMaxima Studio, place the LINE Flex Message block where the card should appear and paste the JSON into it.

Write the alternative text

Say what the card is, such as "Your order summary". LINE shows it in the chat list and the notification, and ChatMaxima saves it in the inbox as the message.

Add variables and test

Put variables such as {{name}} inside text values, save, then message your LINE account and check the card on a phone.

Copy and Paste

A LINE Flex Message Example You Can Paste

One bubble with a hero image, two lines of text and a link button. Paste it into the Flex Message Simulator to see it, or into the LINE Flex Message block to send it.

{
  "type": "bubble",
  "hero": {
    "type": "image",
    "url": "https://example.com/latte.jpg",
    "size": "full", "aspectRatio": "20:13", "aspectMode": "cover"
  },
  "body": {
    "type": "box", "layout": "vertical",
    "contents": [
      { "type": "text", "text": "Iced Latte", "weight": "bold", "size": "xl" },
      { "type": "text", "text": "Ready for {{name}} in 10 minutes", "wrap": true }
    ]
  },
  "footer": {
    "type": "box", "layout": "vertical",
    "contents": [
      { "type": "button", "style": "primary",
        "action": { "type": "uri", "label": "Order now", "uri": "https://example.com/order" } }
    ]
  }
}

What to change

  • Image: point the hero url at your own https image.
  • Text: edit the two text values. ChatMaxima fills in {{name}} when the message is sent.
  • Button: set the label and the uri it opens.
  • Carousel: for several cards, the Simulator wraps the bubbles in a container of type carousel.
Card Ideas

Five LINE Flex Message Cards Worth Building First

Product card

A photo in the hero, name and price in the body, and a button to the product page. Put several in a carousel.

Order summary

Items, quantities and total filled in from variables, with a button to the tracking page.

Booking confirmation

Service, date, time and address on one card, with a button that opens the map.

Menu

One bubble per dish in a carousel. A message button such as "Order this" sends the choice into the chat.

Appointment reminder

A header ("Tomorrow at 10:00") and two footer buttons: confirm, or ask for another time.

ChatMaxima Studio flow whose link button reaches LINE as a Flex Message card
No JSON Needed

The Flex Message Your Bot Sends Without Any JSON

When a message in your flow has a link button, ChatMaxima turns it into a Flex Message card for LINE automatically.

  • The full message text is shown on the card
  • An image, if the message has one, sits on top
  • The link button appears under the text and opens your page

Use the LINE Flex Message block when you want your own layout.

Related LINE Guides

Where Flex Messages Fit in Your LINE Setup

LINE Official Account chatbot and shared inbox

Everything ChatMaxima adds to a LINE account.

LINE chatbot

Build the flow that decides when each card is sent.

LINE rich menu

A tap menu at the bottom of the chat.

LINE broadcast

One message to many LINE contacts.

LINE Messaging API

Connect your account before the first card.

Send Your First LINE Flex Message Today

Connect your LINE Official Account, paste a card from the Flex Message Simulator and see it arrive on your phone. 7-day free trial, no credit card.

Start Your Free Trial
FAQs Answered

LINE Flex Message Questions, Answered

No. LINE's Flex Message Simulator is a visual editor that writes the JSON for you. In ChatMaxima you paste that JSON into the LINE Flex Message block, so there is no API call to program. You can try it in the 7-day free trial.

Yes. Variables work inside the text values of the JSON and in the alternative text, for example {{name}} or an order number your flow collected. Avoid values containing a double quote, which would break the JSON.

The block accepts one container that starts with the type bubble or carousel, exactly as the Simulator shows it under View as JSON. If you copied a full API message that starts with the type flex, paste only its contents part.

Like any LINE message: a card sent as a reply shortly after the customer's message does not count; one your business sends first does. See LINE Official Account pricing for how the quota works.

LINE shows it in the chat list and the notification, where a card cannot appear. ChatMaxima also saves it in the inbox as the message and sends it as a normal message when the flow runs on another channel. It is required, up to 400 characters.

LINE allows up to 12 bubbles in one carousel. In practice three to six cards work better, because customers rarely swipe to the end.

A link button opens a web page. A button with a message action sends its text into the chat as if the customer typed it. The LINE Flex Message block does not wait for an answer, so place a question block after it when the flow should react to the tap.

Not today. A LINE broadcast in ChatMaxima sends a free-text message. Flex Message cards go out from a bot flow through the LINE Flex Message block.