Block 1 - Line : Reply with token
- Type / Role
- n8n-nodes-base.httpRequest - httpRequest
- Config choices
- Version 4.2
This workflow is provided as-is. Please review and test before using in production.
Workflow Description This workflow demonstrates how to use the LINE Messaging API to handle two scenarios: 1. Replying to a user's message using a reply token . 2. Sending a push message to a speci...
n8n-nodes-base.httprequest, n8n-nodes-base.webhook, n8n-nodes-base.stickynote, n8n-nodes-base.if, n8n-nodes-base.manualtrigger, n8n-nodes-base.set
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by darrell_tw.
Original n8n.io sourceThis workflow demonstrates how to use the LINE Messaging API to handle two scenarios:
To simplify the setup process, create a Header Auth credential in n8n:
AuthorizationBearer {line token}POST{n8n-webhook-page}message.{{ $json.body.events[0].type }} equals "message"POSThttps://api.line.me/v2/bot/message/reply{
"replyToken": "{{ $('Webhook from Line Message').item.json.body.events[0].replyToken }}",
"messages": [
{
"type": "text",
"text": "收到您的訊息 : {{ $('Webhook from Line Message').item.json.body.events[0].message.text }}"
}
]
}
line_uid: UxxxxxxxxxxxxPOSThttps://api.line.me/v2/bot/message/push{
"to": "{{ $json.line_uid }}",
"messages": [
{
"type": "text",
"text": "推播測試"
}
]
}
此工作流程展示如何使用 LINE Messaging API 處理兩種情境:
為簡化設定流程,請在 n8n 中建立 Header Auth 憑證:
AuthorizationBearer {line token}POST{n8n-webhook-page}message。{{ $json.body.events[0].type }} 等於 "message"POSThttps://api.line.me/v2/bot/message/reply{
"replyToken": "{{ $('Webhook from Line Message').item.json.body.events[0].replyToken }}",
"messages": [
{
"type": "text",
"text": "收到您的訊息 : {{ $('Webhook from Line Message').item.json.body.events[0].message.text }}"
}
]
}
line_uid:UxxxxxxxxxxxxPOSThttps://api.line.me/v2/bot/message/push{
"to": "{{ $json.line_uid }}",
"messages": [
{
"type": "text",
"text": "推播測試"
}
]
}
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Line Message API : push message & reply |
|---|---|
| Complexity | intermediate |
| Nodes | 11 |
| Categories | Support Chatbot |
| Author | darrell_tw |
| Published | 15 Jan 2025 |
Use the JSON export at /data/workflows/2733/2733.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Workflow Description This workflow demonstrates how to use the LINE Messaging API to handle two scenarios: 1. Replying to a user's message using a reply token . 2. Sending a push message to a speci...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot use case.