Package Information
Released: 11/18/2025
Downloads: 4 weeklyΒ /Β 2,108 monthly
Latest Version: 0.7.1
Author: warnyin
Documentation
π± LINE Messaging API for n8n
Powerful LINE Messaging API integration for n8n workflows
Send messages, manage users, and automate your LINE Official Account with ease
Installation β’ Features β’ Usage β’ Examples β’ Documentation
π Installation
Option 1: Via n8n UI (Recommended)
- Open your n8n instance
- Navigate to Settings β Community Nodes
- Click "Install a community node"
- Enter:
@warnyin/n8n-nodes-line-messaging-api - Click Install
Option 2: Manual Installation
npm install @warnyin/n8n-nodes-line-messaging-api
Option 3: Docker
Add to your environment variables:
N8N_COMMUNITY_PACKAGES=@warnyin/n8n-nodes-line-messaging-api
βοΈ Configuration
1. Create a LINE Messaging API Channel
- Visit LINE Developers Console
- Create a new Provider or select an existing one
- Create a Messaging API Channel
- Navigate to Messaging API tab
- Copy your Channel Access Token (issue one if needed)
- Copy your Channel Secret
2. Configure Credentials in n8n
- In n8n, go to Credentials β New Credential
- Search for LINE Messaging API
- Paste your Channel Access Token
- Paste your Channel Secret
- Click Save to test the connection
3. Set Up Webhook (Optional - for receiving messages)
π Click to expand webhook setup instructions
To receive messages from LINE users:
- In n8n, create a new workflow
- Add a Webhook node
- Set HTTP Method to
POST - Set Path to something like
line-webhook - Copy the Production URL (e.g.,
https://your-n8n.com/webhook/line-webhook) - Go to LINE Developers Console
- Select your channel β Messaging API tab
- Under Webhook settings, click Edit
- Paste your n8n webhook URL
- Toggle Use webhook to Enabled
- Click Verify to test
β¨ Features
π¨ Message Operations
| Operation | Description | Max Recipients |
|---|---|---|
| Push | Send message to a specific user | 1 user |
| Reply | Reply to user messages (requires reply token) | 1 user |
| Multicast | Send message to multiple users | 500 users |
| Broadcast | Send message to all followers | All followers |
π¬ Message Types
|
Basic Messages
|
Rich Messages
|
π€ Profile Operations
- Get User Profile: Retrieve user information (display name, picture URL, status message)
π Usage
Basic Text Message
βββββββββββββββ
β LINE Node β
βββββββββββββββ€
β Resource: Message
β Operation: Push
β User ID: U1234567890abcdef
β Message Type: Text
β Text: Hello from n8n! π
βββββββββββββββ
Reply to User Message
ββββββββββββββββ βββββββββββββββ
β Webhook Node ββββββΆβ LINE Node β
ββββββββββββββββ€ βββββββββββββββ€
β Receive LINE β β Resource: Message
β events β β Operation: Reply
ββββββββββββββββ β Reply Token: {{$json.replyToken}}
β Message Type: Text
β Text: Thanks for your message!
βββββββββββββββ
Send Image Message
βββββββββββββββ
β LINE Node β
βββββββββββββββ€
β Resource: Message
β Operation: Push
β User ID: U1234567890abcdef
β Message Type: Image
β Original Content URL: https://example.com/image.jpg
β Preview Image URL: https://example.com/preview.jpg
βββββββββββββββ
Send Flex Message
βββββββββββββββ
β LINE Node β
βββββββββββββββ€
β Resource: Message
β Operation: Push
β User ID: U1234567890abcdef
β Message Type: Flex
β Alt Text: Product Information
β Flex Contents: {
β "type": "bubble",
β "body": {
β "type": "box",
β "layout": "vertical",
β "contents": [...]
β }
β }
βββββββββββββββ
π Workflow Examples
Example 1: Auto-Reply Bot
Webhook (LINE) β Code (Extract message) β LINE (Reply)
Code Node:
const event = $input.item.json.events[0];
return {
replyToken: event.replyToken,
userMessage: event.message.text,
userId: event.source.userId
};
Example 2: Broadcast Daily Updates
Schedule Trigger β HTTP Request (Get data) β LINE (Broadcast)
Example 3: User Info Lookup
Manual Trigger β LINE (Get Profile) β Set Node β ...
π οΈ Development
Prerequisites
- Node.js β₯ 14
- npm or yarn
Local Setup
# Clone the repository
git clone https://github.com/warnyin/n8n-nodes-line-messaging-api.git
cd n8n-nodes-line-messaging-api
# Install dependencies
npm install
# Build the project
npm run build
# Link for local testing
npm link
# In your n8n directory
npm link @warnyin/n8n-nodes-line-messaging-api
Available Scripts
| Command | Description |
|---|---|
npm run build |
Compile TypeScript and copy assets |
npm run dev |
Watch mode for development |
npm run lint |
Run ESLint |
npm run lintfix |
Fix ESLint issues automatically |
npm run format |
Format code with Prettier |
π Documentation
Official Resources
- π LINE Messaging API Reference
- π¨ Flex Message Simulator
- π§ n8n Community Nodes
- π¬ LINE Developers Community
Useful Links
π Troubleshooting
Authentication failed - please check your credentials
- Verify your Channel Access Token is correct
- Ensure the token is a long-lived token (not short-lived)
- Check that the token hasn't expired
- Make sure you copied the token from the correct channel
The error message in v0.1.4+ will show detailed API responses to help debug.
Webhook not receiving messages
- Ensure webhook URL is publicly accessible (https required)
- Verify "Use webhook" is enabled in LINE console
- Check webhook URL matches exactly in LINE console
- Test webhook verification in LINE console
- Ensure n8n workflow is activated
Message sending fails
- Check User ID format is correct (starts with
U) - For replies, ensure reply token is valid (only usable once, expires in 1 minute)
- Verify message content meets LINE's requirements (e.g., URLs must be HTTPS)
- Check rate limits haven't been exceeded
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
- Built with n8n - Fair-code workflow automation
- Powered by LINE Messaging API
- Developed by @warnyin
Made with β€οΈ for the n8n community