Connect a chatbot to LINE so people can ask it questions inside the LINE app. You create a Messaging API channel in the LINE Developers console, paste two values into Aimy, then paste one URL back into LINE. Pro plan only.
1. Create a provider. In the LINE Developers console, click Create a new provider and give it any name (your company works). A provider is just a container.
2. Create the channel. Inside the provider, click Create a Messaging API channel. Fill in the channel name and description — the channel name is what users see as the bot's display name.
3. Open the Messaging API tab. Scroll to Channel access token (long-lived) and click Issue. Copy the long string it produces.
4. Open the Basic settings tab. Find Channel secret and copy it. This is a different, shorter value — do not confuse the two.
5. Open the integration. Go to Integrations, click the LINE card, then pick the chatbot you want to answer from using the tabs.
6. Paste both values. Put the long token into Channel access token and the shorter one into Channel secret, then click Connect.
Verify: Aimy calls LINE to check the token before storing anything. On success the status pill shows your bot's display name. If you see "That channel access token was rejected by LINE", you have pasted the wrong value or an expired token.
7. Copy the URL. After connecting, a Webhook URL box appears. Click Copy. It looks like:
https://aimy.com.my/chat/apps/chatbot_service/public/api/integrations/line_webhook.php?integration_id=12
8. Paste it into LINE. Back in the console, on the Messaging API tab, paste it into Webhook URL and click Update.
9. Turn the webhook on. Toggle Use webhook to enabled. This is easy to miss and nothing arrives without it.
Verify: click Verify next to the webhook URL. LINE sends an empty event and expects a 200 — you should see Success. If not, check the error log for line_webhook.
10. Disable the greeting and auto-reply. Still on the Messaging API tab, find Auto-reply messages and Greeting messages and disable both.
If you skip this, LINE answers with its own canned message as well as your chatbot's answer, and you will get two replies to every question.
11. Add the bot. On the Messaging API tab there is a QR code. Scan it in the LINE app to add the bot as a friend.
12. Ask a real question. Send it something your uploaded documents can answer — not "hello". A greeting proves nothing about retrieval.
Verify: the answer should arrive within a few seconds. Then check Chat History in the admin panel — the conversation should be there, and usage should appear under LINE on the usage breakdown.
Each LINE user gets their own conversation, keyed by a hash of their LINE user ID. Answers are sent using LINE's reply token when possible, which is free and does not count against your monthly message quota. If an answer takes longer than LINE's reply window allows — which happens on large spreadsheet questions — Aimy falls back to a push message, which does count against the quota.
Long answers are split into up to five messages of about 4,900 characters each.
integration_id changes if you disconnect and reconnect.line_webhook. "bad signature" means the channel secret is wrong.