LINE continues to be one of the go‑to messaging apps in Asia, so adding it to MaviBot unlocks access to a massive user base. Here’s a simple step‑by‑step guide to get you from setup to your first messages.

Connection

To successfully set up the integration, you’ll need to complete a few required steps:

  • Business ID — created in the LINE Business Center
  • LINE Official Account — created via the LINE Official Account Manager.

  • Messenger API — you’ll need to enable it in your Official Account settings.

After that, go to the Response settings section and make sure Webhooks are enabled — without this, LINE won’t be able to send events to MaviBot.

Channel ID & Channel Secret

Go to the Messaging API section — this is where the two key parameters are located.

  • Channel ID
  • Channel Secret

They’re required to connect your bot to MaviBot.

Connecting LINE to MaviBot

Now let’s move on to connecting LINE to MaviBot:

  • Open the Channels section in MaviBot.
  • Select LINE.
  • Paste your Channel ID and Channel Secret.
  • Click Done.

If the details are correct, the bot will connect instantly.

Variables

When a user messages your bot, MaviBot automatically stores key data in varibles:

  • line_source_type — can be one of three types: user (direct chat), group (group chat), room (legacy group chat type).
  • line_quote_token — a token for replying to a specific message. MaviBot always stores the token from the latest incoming message. Can be used in line_send_message().
  • line_request — the full webhook payload, saved when the save_webhook variable is enabled.
  • latitude, longitude — coordinates, saved when the user sends a location.
  • line_address — a readable address, saved when the user shares a location.

These variables allow you to build flexible flows and deliver highly personalized responses.

Which events LINE sends to MaviBot

Possible callbacks:

  • line_follow — the user added the bot as a friend / unblocked it
  • line_sticker — a sticker was sent
  • client_unsubscribed — the user blocked the bot
  • line_join — the bot was added to a group chat
  • line_leave — the bot left a group chat
  • line_memberJoined — a new member joined the group chat
  • line_memberLeft — a member left the group chat

Each event can be used for automation — greetings, triggers, and logging.

LINE attachments

LINE supports three media types:

  • images
  • videos
  • audio/voice messages

Please note!

LINE has a strict limit: you can send no more than 5 objects at a time.

  • Each attachment counts as one object.
  • Message text is also a separate object.
  • A button set is another separate object.

So if you send media + text + buttons, keep the 5‑object limit in mind.

Action buttons

Keyboard (quick replies)

Appear above the input field. Up to 13 buttons.

Buttons in text

Displayed below the message. Up to 4 buttons, and the message text can contain up to 160 characters.

Please note!

Available button types

  • Default
  • Callback button
  • Request geolocation (keyboard only)

Connecting to a group

To allow your bot to be added to group chats, you need to enable this feature in the LINE Official Account Manager