LINE

OA-Worker Console

Next.js Webhook Server & Developer Dashboard

🛡️ Configuration StatusSandbox Mode

Channel SecretPlaceholder
Access TokenPlaceholder
LINE Webhook URL Endpoint

⚠️ Configure credentials in .env.local to enable real LINE API events.

🤖 Webhook Simulator

Preset Quick Commands

✉️ Direct Push Message Sender

📊 Live Event Console Logs

Console is empty

Trigger simulated webhooks on the left panel or link a live LINE webhook to see messages populate here.

⚙️ Deployment & Setup Instructions

1. Expose your local port (default 3000) using a tunneling service like ngrok:

ngrok http 3000

2. Update the NEXT_PUBLIC_APP_URL environment variable in your .env.local file to point to your new public HTTPS address. Restart Next.js dev server.

3. Create a channel under the **Messaging API** in the LINE Developers Console.

4. Set the **Webhook URL** in the Messaging API tab to your public URL suffixed with /api/line/webhook (e.g. https://xxxx.ngrok-free.app/api/line/webhook), verify it, and enable **Use Webhook**.

5. Grab the **Channel Secret** and **Channel Access Token** from the console and paste them in .env.local. Restart the server.