Back to Eliza

LINE Plugin

packages/docs/plugin-registry/platform/line.md

2.0.11.8 KB
Original Source

The LINE plugin connects Eliza agents to LINE as a bot, enabling message handling in chats and groups.

Package: @elizaos/plugin-line

Installation

bash
eliza plugins install @elizaos/plugin-line

Setup

1. Create a LINE Messaging API Channel

  1. Go to LINE Developers Console
  2. Create a new provider (or use an existing one)
  3. Create a new Messaging API channel
  4. Under the Messaging API tab, issue a Channel access token
  5. Note the Channel secret from the Basic settings tab

2. Configure Eliza

json
{
  "connectors": {
    "line": {
      "channelAccessToken": "YOUR_CHANNEL_ACCESS_TOKEN",
      "channelSecret": "YOUR_CHANNEL_SECRET"
    }
  }
}

Or via environment variables:

bash
export LINE_CHANNEL_ACCESS_TOKEN=YOUR_CHANNEL_ACCESS_TOKEN
export LINE_CHANNEL_SECRET=YOUR_CHANNEL_SECRET

Configuration

FieldRequiredDescription
channelAccessTokenYesLINE Messaging API channel access token
channelSecretNoLINE channel secret (for webhook verification)
enabledNoSet false to disable (default: true)

Environment Variables

VariableRequiredDescription
LINE_CHANNEL_ACCESS_TOKENYesLINE channel access token (primary auto-enable trigger)
LINE_CHANNEL_SECRETNoLINE channel secret for webhook verification
LINE_ENABLEDNoEnable or disable the connector
LINE_DM_POLICYNoDM acceptance policy
LINE_ALLOW_FROMNoComma-separated allowed user IDs
LINE_GROUP_POLICYNoGroup message policy
LINE_WEBHOOK_PATHNoWebhook endpoint path