LINE
LINE requires HTTPS for webhooks (use a reverse proxy or tunnel like ngrok).
Setup
1. Create a LINE Official Account
- Go to LINE Developers Console
- Create a provider → Create a Messaging API channel
- Copy Channel Secret and Channel Access Token
2. Configure PicoClaw
{
"channels": {
"line": {
"enabled": true,
"channel_secret": "YOUR_CHANNEL_SECRET",
"channel_access_token": "YOUR_CHANNEL_ACCESS_TOKEN",
"webhook_host": "0.0.0.0",
"webhook_port": 18791,
"webhook_path": "/webhook/line",
"allow_from": []
}
}
}
3. Set Up HTTPS Webhook
LINE requires HTTPS. Use a reverse proxy or tunnel:
# Example with ngrok
ngrok http 18791
Set the Webhook URL in LINE Developers Console to https://your-domain/webhook/line and enable Use webhook.
4. Run
picoclaw gateway
Docker
Add ports: ["18791:18791"] to the picoclaw-gateway service to expose the webhook port.
Notes
- In group chats, the bot responds only when @mentioned
- Replies quote the original message