-
An HTTPS Endpoint to your bot
- Set the externalUrl field in botpress.config.json
- Create an HTTPS tunnel to your machine using Ngrok.
- Using Nginx and Let's Encrypt.
-
Create a LINE account and create a channel with Messaging API
- Go to LINE Developers console of your channel
- Go to the Basic settings tab
- Scroll down and copy your Channel secret
- Go to the Messaging API tab
- Scroll down and issue your Channel access token
- Edit data/bots/YOUR_BOT_ID/config/channel-line.json (or create it) and set
- enabled: Set to true
- channelAccessToken: Paste your Channel access token
- channelSecret: Paste your Channel secret
- Restart Botpress
- You should see your webhook endpoint in the console on startup
- Go to LINE Developers console of your channel
- Go to the Messaging API tab
- Scroll down to the webhook settings section
- Click Edit button and set it to
EXTERNAL_URL/api/v1/bots/YOUR_BOT_ID/mod/channel-line/webhook