Contact Us
LINE Integration

How to Connect LINE to NIVA — Messaging API Integration Guide

10–15 minutes Easy 7 steps

Connect NIVA to LINE so your AI bot automatically responds to messages in private chats, groups, and rooms. NIVA uses LINE's Messaging API with HMAC-SHA256 webhook verification and automatically falls back from Reply API to Push API when response time exceeds 30 seconds.

Before you begin
NIVA botmaster account with a bot configured
LINE account
LINE Developers account (free at developers.line.biz)
Step-by-step setup

Create a LINE Developers Account and Provider

  • Go to https://developers.line.biz and log in with your LINE account
  • Click Create a new provider
  • Enter a provider name (e.g. your company name) and click Create

Create a Messaging API Channel

  • Inside your provider click Create a new channel
  • Select Messaging API
  • Fill in channel name, description, category, and subcategory
  • Accept terms and click Create

Get Channel Credentials

  • Open your channel → Basic settings tab
  • Copy the Channel Secret
  • Go to Messaging API tab
  • Scroll to Channel access token → click Issue
  • Copy the Channel access token

Configure in NIVA Botmaster

  • Open your NIVA botmaster → Omnichannel
  • Click Configure on the LINE card
  • Paste Channel Access Token and Channel Secret
  • Click Save & Activate
  • Copy the Webhook URL

Set Webhook URL in LINE

  • Back in LINE Developers Console → your channel → Messaging API tab
  • Under Webhook settings → click Edit
  • Paste your NIVA Webhook URL
  • Click Update
  • Toggle Use webhook ON
  • Click Verify to test the connection — should show Success

Disable Auto-Reply (Optional but Recommended)

  • In the same Messaging API tab scroll to LINE Official Account features
  • Click Edit next to Auto-reply messages
  • Set Auto-reply to Disabled (otherwise LINE sends generic auto-replies too)
Disabling auto-reply ensures only NIVA responds to messages.

Test the Integration

  • Scan the QR code shown in the Messaging API tab to add your bot on LINE
  • Send a message — the bot should reply within 2–3 seconds
Troubleshooting
Webhook verify fails
Server not reachable via HTTPS. Use ngrok for local dev.
403 on webhook POST
Channel Secret wrong — re-copy from Basic settings.
Bot and LINE both reply
Disable Auto-reply messages in LINE Official Account features.
Reply after 30s uses push — fails on free plan
Upgrade to a paid LINE plan for push messages, or optimize AI response time.
Ready to connect LINE?
Open your NIVA botmaster → Omnichannel → Configure
Open Omnichannel