$cd ../integrations/
πŸ’¬ Messaging
$ cat line-integration.md

openclaw.integrate('line-messenger')

/** "Remind me to call Mom when I get home" β€” sent via LINE message */

step_01_line_dev.md

Step 1: Setup LINE Developer Console

1.
Create a Provider & Channel
Go to LINE Developers Console, create a new Provider, then create a 'Messaging API' channel.
2.
Get Access Token
Under the 'Messaging API' tab, scroll down to issue a long-lived 'Channel access token'.
3.
Get Channel Secret
Under the 'Basic settings' tab, copy the 'Channel secret'.
4.
Webhook Setup
Set the webhook URL to your OpenClaw public endpoint (e.g., https://your-server.com/webhooks/line) and enable 'Use webhook'.
config.yaml

Step 2: Configure OpenClaw

# openclaw/config.yaml
integrations:
line:
enabled: true
channel_secret: "your_channel_secret_here"
channel_access_token: "your_very_long_access_token_here"

// πŸ”” Security Note: To prevent strangers from using your bot, OpenClaw will only respond to the User IDs listed in your 'allowed_users' configuration.

❓ FAQ

Q1. Is LINE free to use with OpenClaw?

Yes. LINE Messaging API has a free tier (200 messages/month). For personal use, this is usually sufficient. Paid plans increase limits.

Q2. Can multiple users share the same bot?

Yes, but you should configure 'allowed_users' to restrict access. Without it, anyone who adds your bot could interact with your OpenClaw instance.

Q3. Does it support LINE groups?

Yes. OpenClaw can respond in group chats when mentioned. Configure 'group_mode: mention_only' to avoid spam.
← Back to Integrations