LINE Notifications
Get a LINE message every time one of your bot orders fills. This is the preferred notification channel for users in Thailand, Japan, and Taiwan.
Requirements
LINE notifications require your GridFlow server to have a valid HTTPS domain (e.g. https://gridflowbot.com) because LINE webhooks only work over HTTPS. If you're running on a plain IP address without a domain and SSL, use Telegram instead.
Step 1 — Create a LINE Messaging API channel
- Go to developers.line.biz
- Log in with your LINE account
- Click Create → Create a new provider (name it anything, e.g.
GridFlow) - Click Create a new channel → Messaging API
- Fill in:
- Channel name:
GridFlow Alerts(or anything you like) - Channel description: A short description
- Category / Subcategory: Choose any
- Channel name:
- Agree to terms and click Create
Step 2 — Get your credentials
Inside the channel settings:
Channel Secret (Basic settings tab):
- Copy the value under Channel secret
Channel Access Token (Messaging API tab):
- Scroll down to Channel access token (long-lived)
- Click Issue if no token exists
- Copy the token
Step 3 — Set the webhook URL
Still in the Messaging API tab:
- Under Webhook settings, click Edit
- Set the webhook URL to:
Replace
https://yourdomain.com/line/webhookyourdomain.comwith your actual domain. - Click Update, then Verify — you should see "Success"
- Toggle Use webhook to ON
Also under LINE Official Account features:
- Set Auto-reply messages → Disabled
- Set Greeting messages → Disabled
Step 4 — Add credentials to your server
SSH into your server:
cd /root/gridflow
nano .env
Add your credentials:
LINE_CHANNEL_ACCESS_TOKEN=your-long-access-token-here
LINE_CHANNEL_SECRET=your-channel-secret-here
Restart the backend:
docker compose restart backend
Step 5 — Connect your LINE account in the dashboard
- Open your GridFlow dashboard → Settings → Notifications
- Under LINE, click Connect LINE
- You'll see a 6-character code (e.g.
GF7X3K) - Open LINE on your phone and find your bot (search by its LINE ID shown on the channel page)
- Send the 6-character code to the bot
- The dashboard will refresh and show Connected
Test it
Click Send test notification. You should receive a LINE message within a few seconds.
Troubleshooting
"Webhook verification failed" — Make sure your domain has valid HTTPS (via Cloudflare or Let's Encrypt). LINE rejects plain HTTP.
Bot doesn't respond to my code — Make sure you sent the exact code shown (all caps, no spaces) and that the webhook is enabled and verified in the LINE console.
I restarted the server and my code expired — Codes expire after 10 minutes. Go back to the dashboard and get a new code.