Skip to content

LINE

  • 1:1 chat and group message support
  • Flex Messages (LINE’s rich card format) for structured replies
  • Compatible with any LINE account (Japan, Taiwan, Thailand, Indonesia, etc.)
  • Works via the official LINE Messaging API (no unofficial scraping)
  1. Go to the LINE Developers Console
  2. Sign in with your LINE account (or create one)
  3. Create a new Provider if you don’t have one
  4. Create a new Messaging API channel inside the provider

From your channel’s settings:

  • Channel access token (long-lived) — under Messaging API → Channel access token → Issue
  • Channel secret — under Basic settings
  1. In your channel’s Messaging API tab, set:
    • Webhook URL: https://your-host/webhook/line
    • Use webhook: Enabled
    • Auto-reply messages: Disabled (so Butler handles all replies)
    • Greeting messages: Optional — your welcome text shown on follow
Terminal window
aibutler vault set line_channel_access_token YOUR_CHANNEL_ACCESS_TOKEN
aibutler vault set line_channel_secret YOUR_CHANNEL_SECRET
configurations:
channels:
active:
- line
Terminal window
aibutler run

You should see line: tools registered and line: webhook listening in the logs.

Scan your channel’s QR code (shown in the LINE Developer Console under Messaging API → QR code) from the LINE app to add the bot as a friend. Once added, send a message and Butler should respond.

FeatureSupported
1:1 chatsYes
Group chatsYes (requires Allow bot to join groups enabled)
Flex MessagesYes
Image messagesYes (send + receive)
Voice messagesYes (transcribed via STT)
StickersYes (received as sticker metadata)
Streaming repliesNo (LINE is edit-based)

401 Unauthorized when sending replies. The channel access token expired or was copied wrong. Regenerate it in the Developer Console.

Webhook verification fails. LINE sends a signed request with the X-Line-Signature header — your channel secret must match what’s in the vault. Double-check there’s no trailing whitespace when you ran aibutler vault set.

Bot doesn’t receive messages in groups. LINE requires the Allow bot to join groups and multi-person chats setting to be enabled in your channel’s Messaging API tab.