LINE Connect · emploidai Marketplace
emploidai Marketplace
Add-onsAppletsPlugins
Search tools, teams, and capabilitiesPublish
MarketplacePluginsLINE Connect
Plugin
Limited listing

LINE Connect

by suphachok · v0.9.7

Connect any Dify app to LINE Official Account

251 installsUpdated Apr 3, 2026
Publisher information is incomplete

This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.

Capabilities

Data sources

Available inside your emploidai workspace after installation.

Endpoints

Available inside your emploidai workspace after installation.

Category

extension

Version

0.9.7suphachok

Requirements

Maximum memory 256MB

Pricing

Not disclosed by publisher

Security & access

Review before installing

CompatibleRequires emploidai 1.0.0+

Permissions

  • Uses endpoint capability
  • Uses storage capability

Dependencies

No additional dependencies

Resources

Privacy policy
emploidai Marketplace

Discover capabilities. Review access. Install inside your workspace.

DocumentationSecuritySupportPrivacyTerms

LINE

LINE Connect

Dify Endpoint Plugin — Connect any Dify chatbot or agent app to a LINE Official Account in minutes.

Version Python Dify License

English | ไทย | 日本語 | 中文


Overview

LINE Connect bridges LINE Messaging API and Dify's chat API. Users chat on LINE; your Dify app answers automatically — with full conversation persistence, image/file support, and a built-in admin dashboard.

Architecture

                         Webhook (POST)
LINE User  ──message──>  LINE Platform  ──────────>  LINE Connect Plugin
                                                         |
                                                    Dify Chat API
                                                    (stream/block)
                                                         |
LINE User  <──reply────  LINE Platform  <──────────  LINE Connect Plugin
                                                         |
                                              Admin Dashboard (GET)
                                                    Browser UI

Screenshots

Dashboard

Overview of your LINE Connect workspace — total conversations, active users, message activity chart, and system status at a glance.

Conversations

Real-time chat view with message history, bot toggle, tags, notes, and unread indicators.

Analytics

Message volume trends, response time distribution, user growth, and peak hours heatmap.

Settings

Quick reply templates, tag management, bot schedule, broadcast messaging, and storage info.


Features

FeatureDescription
Two-way messagingReceive LINE messages, forward to Dify, reply automatically
Image supportUsers send images via LINE — uploaded to Dify as file variables for vision models
File supportVideo, audio, and documents are uploaded and forwarded to Dify
Image debounceBatch multiple images into a single Dify call (configurable delay)
Display name forwardingInject LINE user's display name as a Dify input variable
Markdown to FlexMessageRender bot replies as rich FlexMessage bubbles with headings, bold, lists, tables, blockquotes
Conversation persistenceEach user/group gets a unique Dify conversation ID
Group & room chatWorks in 1:1, group, and multi-party room chats
Streaming with fallbackStream-first with automatic blocking fallback for reliability
Multi-endpoint isolationEach endpoint has its own isolated storage — fully separated
Admin dashboardPassword-protected web UI for managing all conversations
AnalyticsMessage volume, user growth, response time charts with daily breakdown
Typing indicatorAnimated dots in dashboard while bot is processing
Unread badgesPer-chat unread count with visual indicators
Chat managementCustom names, tags, starred chats, notes, search
BroadcastSend messages to all or starred conversations
ScheduleWorking hours configuration with per-chat override
ScalableOptimized for 1,000+ users with cached index lookups

Requirements

RequirementDetails
Difyv0.7.0+ with plugin support enabled
LINEA LINE Official Account with Messaging API channel
Dify AppA published Chatbot or Agent app with an API key

Quick Start

Step 1 — LINE Developers Console

  1. Go to LINE Developers and create a Messaging API channel (or use an existing one).
  2. Copy the Channel Secret from Basic settings.
  3. Issue a Channel Access Token from the Messaging API tab.

Step 2 — Dify App

  1. Create or open your Dify app (Chatbot or Agent).
  2. Publish the app and go to API Access to copy the API key (starts with app-...).

Step 3 — Install the Plugin

  1. In Dify, go to Plugins and upload the .difypkg file (download from Releases).
  2. Click + to add a new endpoint and fill in the settings:

  

Settings Reference

SettingRequiredDefaultDescription
Endpoint NameYes—A name for this endpoint (e.g. BOT)
Channel SecretYes—LINE Developers > Basic settings
Channel Access TokenYes—LINE Developers > Messaging API
Dify App API KeyYes—Your Dify app's API key (app-...)
Admin Dashboard PasswordYes—Password to access the admin web UI
Dify API URLNohttps://api.dify.ai/v1Change for self-hosted Dify (e.g. http://api:5001/v1)
Pass LINE Display NameNoTrueForward user's LINE name as an input variable
Display Name VariableNodisplayNameVariable name for the display name in your Dify app
Enable Image SupportNoFalseAccept images and files from LINE
Image Variable NameNoimgVariable name for uploaded images in your Dify app
Image PromptNoUser sent an imageQuery text sent to Dify when user sends an image
Image Debounce (seconds)No0Wait time to batch multiple images (0 = disabled, recommended: 3)
Markdown to FlexMessageNoFalseRender replies as rich FlexMessage bubbles
Strip MarkdownNoTrueRemove markdown formatting from bot replies
Debug ModeNoFalseShow error details in LINE replies (for development only)
Welcome MessageNoWelcome!...Message sent when a user adds the bot as friend
Max Stored MediaNo200Max media files kept for admin preview
Max Media Storage (MB)No800Max total size for stored media in MB

Step 4 — Set the Webhook URL

After installing, Dify shows the endpoint URLs:

  1. Copy the POST URL.
  2. In LINE Developers > Messaging API > Webhook URL, paste it.
  3. Enable Use webhook.
  4. Disable Auto-reply messages in the LINE Official Account Manager.

Step 5 — Admin Dashboard

Open the GET endpoint URL in your browser:

Enter the admin password you configured in Step 3 to access the dashboard.


Message Types

LINE MessageBehaviorDify Variable
TextForwarded as query—
ImageUploaded and forwardedimg (configurable)
VideoUploaded and forwardedfiles
AudioUploaded and forwardedfiles
FileUploaded and forwardedfiles
StickerIgnored silently—

Image Debounce

When a user sends multiple images at once, each arrives as a separate webhook event. Without debounce, the bot responds to each individually:

Without debounce (0):              With debounce (3):
  Image 1 --> Bot reply 1           Image 1 --> queued
  Image 2 --> Bot reply 2           Image 2 --> queued
  Image 3 --> Bot reply 3           Image 3 --> wait 3s --> Bot reply (all 3)

Set Image Debounce to 3 seconds for the best experience with multi-image uploads.


User Commands

CommandAction
/clearReset conversation and start fresh
/resetSame as /clear
/newSame as /clear

How It Works

Conversation Flow

  1. LINE webhook arrives at the plugin's POST endpoint
  2. Signature verification using HMAC-SHA256 with Channel Secret
  3. Loading animation shown to the user while processing
  4. Dify API call with streaming (automatic blocking fallback)
  5. Response formatting — strip markdown, split long messages, extract image URLs
  6. Reply via LINE Reply API (free) with Push API fallback

Retry Strategy

1. Stream + conversation_id     (fastest, preserves context)
2. Blocking + conversation_id   (different transport, same context)
3. Stream + new conversation    (only if conversation_id seems stale)
4. Blocking + new conversation  (final fallback)

Storage

All storage keys are namespaced per endpoint using a hash of the Channel Secret, so multiple endpoints in the same plugin installation are fully isolated.

Key PatternDataLimit
{ns}_lc_{userId/groupId}Dify conversation ID1 per chat
hist_{ns}_lc_{...}Chat message history100 messages
{ns}_cidxIndex of all conversations1,000 entries
img_{messageId}Stored media filesconfigurable (default: 200 files / 800 MB)
off_{ns}_lc_{...}Bot disabled flag1 per chat

Total plugin storage quota: 1 GB


Troubleshooting

ProblemSolution
Bot doesn't replyCheck webhook URL is correct and "Use webhook" is enabled in LINE settings
401 error in webhookVerify Channel Secret and Channel Access Token are correct
Images not workingEnable "Image Support" in settings and add a file input variable in your Dify app
Bot replies multiple times for imagesSet Image Debounce to 3 seconds
Admin dashboard won't loadUse the GET endpoint URL (not the POST webhook URL)
Bot not responding in group chatMake sure the bot is invited to the group and has permission to read messages
Conversation seems to resetCheck Dify app logs — the conversation ID may have expired or been invalidated

Changelog

See CHANGELOG.md for the full release history.


License

MIT

Author

suphachok — @DomT00T