This is an n8n Line support. It lets you create a line chatbot with n8n without any coding.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
- Go to Settings > Community Nodes.
- Select Install.
- Enter n8n-nodes-linewebhook in Enter npm package name.
- Agree to the risks of using community nodes: select I understand the risks of installing unverified code from a public source.
- Select Install. After installing the node, you can use it like any other node. n8n displays the node in search results in the Nodes panel.
To get started install the package in your n8n root directory:
npm install n8n-nodes-linewebhook
For Docker-based deployments, add the following line before the font installation command in your n8n Dockerfile:
RUN cd /usr/local/lib/node_modules/n8n && npm install n8n-nodes-linewebhook
Supported event types:
-
message
- text
- audio
- sticker
- image
- video
- location
-
postback
-
join
-
leave
-
member join
-
member leave
Specify either replyToken to reply message or targetRecipient to send message to a group or a user. You can link the output of the previouse message node to be the content of message property of this node.
When receive multimedia message from webhook, you need to use this node to retrieve the content of the file. For example, if user sends you an image, you can use this node to retrieve the image, and send it to AWS S3.
Retrieve the group chat summary with a group chat id.
Retrieve the user's profile with a user id.
- Sign up on Line Developer Console
- Create a messaging API channel, and then copy the channel secret
- Paste the channel secret in node's credential setting
- Configure the Webhook URL in the messaging API settings
- Go to page "Messaging API" setting page in the line developer console.
- Copy
Channel access token
. Create a new credential in the messaging api node and paste this access token in the "Channel Access Token" property.