LINE Integration

Connect OpenClaw to LINE Messenger

LINE dominates messaging in Japan, Taiwan, Thailand, and Indonesia with over 200 million monthly active users. OpenClaw integrates with LINE's Messaging API to deliver AI-powered chatbot experiences. Access rich message types, Flex Messages for beautiful layouts, LINE Login for user identity, and LIFF mini-apps - all powered by intelligent conversation.

LINE
Messaging

LINE

Visit Website

How OpenClaw LINE Integration Works

We Create Your LINE Channel

We register your LINE developer account and create a Messaging API channel in the LINE Developers Console. This establishes your bot's identity and provides the credentials needed to send and receive messages.

We Configure Your Webhook

We set up the webhook URL where LINE will send message events and configure which events to receive - messages, follows, unfollows, joins, and more. LINE calls your webhook in real-time when users interact.

We Connect the OpenClaw Bridge

We link your LINE channel credentials to OpenClaw's LINE bridge module. The bridge handles LINE's message format, signature verification, and rich message construction. We configure AI response behavior for your needs.

We Launch and Test Your Bot

We set up your bot so users can add it as a friend via QR code, LINE ID search, or links. We build rich experiences with Flex Messages, carousels, and quick replies tailored to your business.

Why Connect OpenClaw to {page.integration.name}

Regional Market Leader

LINE is the dominant messaging platform in Japan (95M users), Thailand (54M), Taiwan (21M), and Indonesia (90M). For businesses targeting these markets, LINE is essential infrastructure. OpenClaw gives you AI-powered presence where your customers already are.

Flex Messages

Create stunning message layouts with Flex Messages - LINE's powerful visual messaging system. Design custom cards, carousels, receipts, and interfaces that look native to LINE. AI responses become beautiful, branded experiences.

Rich Menu System

Configure persistent menus with custom images and tap regions. Create visual navigation that users can access anytime. Combine menu navigation with conversational AI for intuitive user experiences.

LINE Login Integration

Authenticate users through LINE Login to personalize AI interactions. Access user profiles, link to your systems, and provide customized responses based on user identity and history.

LIFF Mini-Apps

Extend your bot with LINE Front-end Framework (LIFF) applications. Create web apps that run inside LINE for complex interactions - forms, product catalogs, booking systems - seamlessly integrated with your chatbot.

Stickers and Emoji

LINE's famous sticker culture means rich emotional expression. Your bot can send and receive stickers, understand emoji sentiment, and respond with personality that feels native to LINE's playful communication style.

Setup Guide

1

Create LINE Developer Account

Register for a LINE developer account if you don't have one. Then create a provider (represents you or your company) and a Messaging API channel (represents your bot).

# 1. Go to LINE Developers Console
#    https://developers.line.biz/console/

# 2. Log in with LINE account or business account

# 3. Create a Provider
#    - Click 'Create New Provider'
#    - Enter provider name (your company name)

# 4. Create Messaging API Channel
#    - Select your provider
#    - Click 'Create a new channel'
#    - Choose 'Messaging API'
#    - Fill in channel details:
#      - Channel name: OpenClaw AI
#      - Channel description: AI-powered assistant
#      - Category: Select appropriate
#      - Subcategory: Select appropriate

# 5. Note your credentials:
#    - Channel ID
#    - Channel Secret
#    - Channel Access Token (generate long-lived token)
2

Configure Webhook Settings

Set up the webhook URL where LINE will send events. Enable webhook and disable auto-reply (you'll handle replies through OpenClaw).

# In LINE Developers Console > Your Channel > Messaging API:

# 1. Webhook settings:
#    Webhook URL: https://yourdomain.com/line/webhook
#    
#    Enable 'Use webhook'
#    Verify webhook (LINE will send test request)

# 2. Auto-reply messages:
#    Disable 'Auto-reply messages' (greeting message)
#    Disable 'Greeting messages' if using custom welcome

# 3. LINE Official Account features:
#    Response mode: Bot
#    
#    Go to LINE Official Account Manager if needed:
#    https://manager.line.biz/

# 4. Issue Channel Access Token:
#    Click 'Issue' for long-lived token
#    Copy and save securely
3

Install LINE Bridge Module

Add the LINE bridge to your OpenClaw installation. The bridge handles LINE's message format, webhook signature verification, and rich message construction.

# Using OpenClaw CLI
openclaw install line-bridge

# Or manual installation
cd /path/to/openclaw
npm install @openclaw/line-bridge

# This installs LINE SDK
npm install @line/bot-sdk

# Verify installation
openclaw plugins list | grep line
4

Configure LINE Connection

Create your LINE configuration file with channel credentials and message handling settings. Configure how OpenClaw responds to different event types.

# config/line.yaml
line:
  enabled: true
  
  # Channel credentials
  channel_id: "YOUR_CHANNEL_ID"
  channel_secret: "YOUR_CHANNEL_SECRET"
  channel_access_token: "YOUR_CHANNEL_ACCESS_TOKEN"
  
  # Webhook settings
  webhook:
    path: "/line/webhook"
    port: 443
  
  # Message handling
  messages:
    reply_timeout_ms: 1000  # Soft limit before async
    use_push_for_slow: true  # Push instead of reply if slow
  
  # Event types to handle
  events:
    message: true
    follow: true
    unfollow: true
    join: true
    leave: true
    postback: true
5

Configure Rich Messages

Set up Flex Message templates and quick reply options. Create visually appealing responses that take advantage of LINE's rich messaging capabilities.

# config/line-templates.yaml
templates:
  # Flex Message for AI responses
  ai_response:
    type: flex
    altText: "AI Response"
    contents:
      type: bubble
      body:
        type: box
        layout: vertical
        contents:
          - type: text
            text: "${response}"
            wrap: true
            size: md
      footer:
        type: box
        layout: horizontal
        contents:
          - type: button
            style: primary
            action:
              type: postback
              label: "Helpful"
              data: "feedback=helpful"
          - type: button
            style: secondary
            action:
              type: postback
              label: "Not Helpful"
              data: "feedback=not_helpful"
  
  # Quick replies
  quick_replies:
    suggestions:
      type: text
      text: "What would you like to know?"
      quickReply:
        items:
          - type: action
            action:
              type: message
              label: "Help"
              text: "Help"
          - type: action
            action:
              type: message
              label: "Menu"
              text: "Show menu"
6

Configure Rich Menu

Create a rich menu that appears at the bottom of the chat. Design custom images with tap regions that trigger different bot actions.

# config/line-richmenu.yaml
rich_menu:
  enabled: true
  default: main_menu
  
  menus:
    main_menu:
      size:
        width: 2500
        height: 843
      selected: true
      name: "Main Menu"
      chatBarText: "Menu"
      areas:
        # Left third - Ask AI
        - bounds:
            x: 0
            y: 0
            width: 833
            height: 843
          action:
            type: message
            text: "I have a question"
        
        # Middle third - Services
        - bounds:
            x: 833
            y: 0
            width: 834
            height: 843
          action:
            type: uri
            uri: "https://yourwebsite.com/services"
        
        # Right third - Help
        - bounds:
            x: 1667
            y: 0
            width: 833
            height: 843
          action:
            type: postback
            data: "action=help"
      
      # Image file path
      image: "./assets/line-rich-menu.png"

# Deploy rich menu:
openclaw line richmenu deploy
7

Configure AI Response Behavior

Set up how OpenClaw processes LINE messages and handles different content types. Configure personality and response formatting for LINE's unique communication style.

# config/line-ai.yaml
ai_responses:
  # LINE-specific personality
  personality: friendly_assistant
  tone: casual_helpful  # LINE culture is more casual
  
  # Emoji and sticker handling
  expression:
    use_emoji: true
    suggest_stickers: false  # Can't send stickers as bot
    emoji_style: unicode
  
  # Message type handlers
  handlers:
    text: ai_response
    image: analyze_and_respond
    video: describe_and_respond
    audio: transcribe_and_respond
    location: contextual_response
    sticker: acknowledge_with_text
  
  # Response formatting
  format:
    max_length: 5000  # LINE limit
    use_flex_messages: true
    break_into_bubbles: true  # Multiple bubbles for long responses
  
  # Event handlers
  events:
    follow: welcome_new_user
    unfollow: log_only
    join: group_welcome
    leave: log_only
    postback: handle_postback
8

Test and Deploy

Test your LINE bot by adding it as a friend and sending messages. Verify all message types and rich features work correctly.

# Start the LINE bridge
openclaw line start

# Check status
openclaw line status

# View logs
openclaw logs line --follow

# Get bot QR code / LINE ID
openclaw line info

# Test by adding bot as friend:
# 1. Open LINE app
# 2. Add friend by QR code or LINE ID
# 3. Send a message
# 4. Verify AI response

# Test specific features:
openclaw line test --feature flex-message
openclaw line test --feature rich-menu

What You Can Do

Customer Service Japan

Provide customer support in Japanese through LINE, the preferred communication channel for Japanese consumers. Handle inquiries, process orders, and resolve issues with AI that understands Japanese language and culture.

E-commerce Integration

Create shopping experiences within LINE. Browse products, get recommendations, ask questions, and complete purchases. Integrate with LINE Pay for seamless transactions in supported markets.

Appointment Booking

Let customers book appointments through conversational AI. Salons, clinics, restaurants, and service businesses use LINE bots to manage reservations. Send reminders and handle rescheduling automatically.

Food Delivery Assistance

Food delivery is huge on LINE. Help users browse menus, customize orders, track deliveries, and handle issues. Integrate with delivery platforms popular in Asian markets.

Travel Concierge

Assist travelers with itinerary planning, local recommendations, translation help, and booking services. Popular for both inbound tourism to Japan and outbound travel from LINE markets.

Entertainment and Media

Distribute content, run interactive campaigns, and engage fans through LINE. Media companies use AI bots for news delivery, personalized content, and audience interaction.

Financial Services

Banks and fintech companies provide account information, transaction support, and financial advice through LINE. Secure authentication through LINE Login enables personalized service.

Education Support

Language learning apps, tutoring services, and educational institutions use LINE bots for lesson delivery, practice exercises, and student support. Interactive AI makes learning engaging.

Healthcare Assistance

Healthcare providers use LINE for appointment scheduling, medication reminders, health information, and patient communication. AI handles routine queries while escalating medical concerns appropriately.

Known Limitations

  • Reply tokens expire after 30 seconds - must respond quickly or use push messages
  • Push messages have monthly limits based on your LINE Official Account plan
  • Bots cannot send LINE stickers (only receive and interpret them)
  • Rich menus require image creation - cannot be generated dynamically
  • Group chat functionality requires separate permissions and has different limitations
  • User profile access limited - detailed info requires LINE Login integration
  • Flex Messages have size limits (~50KB) for complex layouts
  • LIFF apps require separate development and deployment
  • Some features vary by country (LINE Pay availability, etc.)
  • Free plan limited to 500 messages/month - business use requires paid plans
  • Our team can help you work around these limitations with custom configurations

Frequently Asked Questions

What's the difference between LINE Official Account and Messaging API?

LINE Official Account is the brand presence layer - your profile, name, and how users find you. Messaging API is the technical layer for programmatic messaging. You need both: create a LINE Official Account first, then enable Messaging API in developer settings. The Official Account is what users add as a friend; the Messaging API is what your bot uses to communicate.

How much do push messages cost?

LINE Official Account plans: Free Plan gives 500 messages/month (200 in Japan). Light Plan varies by region but typically ~$50/month for 5,000 messages. Standard Plan ~$150/month for 30,000 messages. Additional messages cost ~$0.005-0.02 each depending on region. Reply messages (responding to user messages) are unlimited and free. Push messages (proactive messages) count against your quota.

What's the difference between reply and push messages?

Reply messages respond to user actions within 30 seconds using a reply token - they're free and unlimited. Push messages are proactive messages you send anytime without user action - they count against your monthly quota. For AI bots, most responses should be replies. Use push for notifications, scheduled messages, and re-engagement. The reply token expires quickly, so respond fast.

Can my bot work in group chats?

Yes, with configuration. In the developer console, enable 'Allow bot to join group chats'. Your bot receives messages in groups but should be configured to respond appropriately (perhaps only when mentioned). Group events include join, leave, and member events. Be careful with chatty AI in groups - it can be disruptive. Consider requiring @mention to respond.

How do Flex Messages work?

Flex Messages are JSON-defined layouts that render beautifully in LINE. You define containers (bubbles or carousels), components (boxes, text, images, buttons), and styles. They're powerful for product cards, receipts, forms, and structured information. LINE provides a Flex Message Simulator for visual design. OpenClaw templates convert AI responses into Flex Messages automatically.

What is LIFF and when should I use it?

LIFF (LINE Front-end Framework) lets you build web apps that run inside LINE. Use LIFF for complex interactions that don't fit chat well: forms, catalogs, account linking, rich interfaces. LIFF apps can access user info (with permission), send messages, and close to return to chat. Combine chatbot for conversation and LIFF for structured tasks.

How do I handle multiple languages?

LINE is popular across different language markets - Japanese, Thai, Chinese (Taiwan), Indonesian. Detect user language from profile or message content. Configure AI responses in appropriate languages. Consider separate LINE Official Accounts per market for country-specific branding. OpenClaw can route to different AI configurations based on detected language.

Can I integrate LINE Login with the bot?

Yes, this is powerful. Create a LINE Login channel linked to your Messaging API channel. When users interact with your bot, you can prompt them to authenticate via LINE Login (using LIFF). This gives you their LINE user ID consistently, email (if permitted), and links their LINE identity to your user database. Essential for personalized experiences.

How do I migrate from the old LINE@ system?

LINE@ was deprecated and merged into LINE Official Accounts. If you have an old LINE@ account, migrate it in the LINE Official Account Manager. Your followers transfer automatically. The Messaging API capabilities are the same or better in the new system. After migration, follow the standard setup process for connecting to OpenClaw.

What about LINE for Business vs personal LINE accounts?

LINE Official Accounts (for business) have Messaging API access and can message followers. Personal LINE accounts cannot be automated. Your bot needs a LINE Official Account. Users interact with your Official Account through their personal LINE app. LINE for Business also includes LINE Ads, LINE Points, and other marketing features beyond messaging.

Professional Services

Need Help with OpenClaw?

Let our experts handle the setup, configuration, and ongoing management so you can focus on your business.

Free assessment • No commitment required

Ready to Reach 200 Million LINE Users?

Let our team handle the integration. Book a free consultation and we'll deploy OpenClaw on LINE to provide AI-powered experiences that resonate with Asian consumers.