Skip to main content

Back to README

Line

PicoClaw supports LINE through the LINE Messaging API with webhook callbacks.

Configuration​

{
"channel_list": {
"line": {
"enabled": true,
"type": "line",
"channel_secret": "YOUR_CHANNEL_SECRET",
"channel_access_token": "YOUR_CHANNEL_ACCESS_TOKEN",
"webhook_path": "/webhook/line",
"allow_from": [],
"placeholder": { "enabled": true, "text": ["Thinking..."] },
"group_trigger": { "mention_only": false },
"reasoning_channel_id": ""
}
}
}
FieldTypeRequiredDescription
enabledboolYesWhether to enable the LINE channel
channel_secretstringYesChannel Secret for the LINE Messaging API
channel_access_tokenstringYesChannel Access Token for the LINE Messaging API
webhook_pathstringNoWebhook path (default: /webhook/line)
allow_fromarrayNoUser ID whitelist; empty means all users are allowed
placeholderobjectNoPlaceholder message shown while the agent is working
group_triggerobjectNoGroup trigger settings (e.g. { "mention_only": true })
reasoning_channel_idstringNoOptional ID to route reasoning/thinking output to a separate chat

Setup​

  1. Go to the LINE Developers Console and create a provider and a Messaging API channel
  2. Obtain the Channel Secret and Channel Access Token
  3. Configure the webhook:
    • LINE requires webhooks to use HTTPS, so you need to deploy a server with HTTPS support, or use a reverse proxy tool like ngrok to expose your local server to the internet
    • PicoClaw uses a shared Gateway HTTP server to receive webhook callbacks for all channels, listening on 127.0.0.1:18790 by default
    • Set the Webhook URL to https://your-domain.com/webhook/line, then reverse-proxy your external domain to the local Gateway (default port 18790)
    • Enable the webhook and verify the URL
  4. Fill in the Channel Secret and Channel Access Token in the configuration file