LINE
Use LINE when you need a supported bot path for direct chats, groups, and richer message cards in the LINE ecosystem. The gateway receives inbound events on a webhook endpoint and signs outbound calls with your channel credentials. Status: bundled channel extension. DMs, groups, media, locations, Flex messages, template messages, and quick replies are supported. Reactions and threads are not.Setup from Agent > Channels
LINE ships with Fased as a local bundled channel extension. You do not need to download an npm package in a normal install. Open Agents, select the Agent, then use Agent > Channels > LINE. Enter the channel access token and secret, save the channel, then restart the gateway if the UI reports that the runtime still needs to load.Setup
You need one Messaging API channel in the LINE Developers console and one HTTPS endpoint that LINE can call back into on the Fased gateway.- Create a LINE Developers account and open the Console: https://developers.line.biz/console/
- Create (or pick) a Provider and add a Messaging API channel.
- Copy the Channel access token and Channel secret from the channel settings.
- Enable Use webhook in the Messaging API settings.
- Enter the token and secret in Agent > Channels > LINE and save.
- Set the webhook URL to your gateway endpoint (HTTPS required):
channels.line.webhookPath or
channels.line.accounts.<id>.webhookPath and update the URL accordingly.
Configure
Minimal config:LINE_CHANNEL_ACCESS_TOKENLINE_CHANNEL_SECRET
Access control
Direct messages default to pairing. Unknown senders get a pairing code and their messages are ignored until approved.channels.line.dmPolicy:pairing | allowlist | open | disabledchannels.line.allowFrom: allowlisted LINE user IDs for DMschannels.line.groupPolicy:allowlist | open | disabledchannels.line.groupAllowFrom: allowlisted LINE user IDs for groups- Per-group overrides:
channels.line.groups.<groupId>.allowFrom - Runtime note: if
channels.lineis completely missing, runtime falls back togroupPolicy="allowlist"for group checks (even ifchannels.defaults.groupPolicyis set).
- User:
U+ 32 hex chars - Group:
C+ 32 hex chars - Room:
R+ 32 hex chars
Message behavior
- Text is chunked at 5000 characters.
- Markdown formatting is stripped; code blocks and tables are converted into Flex cards when possible.
- Streaming responses are buffered; LINE receives full chunks with a loading animation while the agent works.
- Media downloads are capped by
channels.line.mediaMaxMb(default 10).
Channel data (rich messages)
UsechannelData.line to send quick replies, locations, Flex cards, or template
messages.
/card command for Flex message presets:
Troubleshooting
- Webhook verification fails: ensure the webhook URL is HTTPS and the
channelSecretmatches the LINE console. - No inbound events: confirm the webhook path matches
channels.line.webhookPathand that the gateway is reachable from LINE. - Media download errors: raise
channels.line.mediaMaxMbif media exceeds the default limit.