Line 메시지 API 데모
중급
이것은Building Blocks분야의자동화 워크플로우로, 8개의 노드를 포함합니다.주로 If, Set, Webhook, HttpRequest, ManualTrigger 등의 노드를 사용하며. Line 메시지 API: 메시지 전송 및 응답
사전 요구사항
- •HTTP Webhook 엔드포인트(n8n이 자동으로 생성)
- •대상 API의 인증 정보가 필요할 수 있음
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "a5tCsfMzJPd8WDUj",
"meta": {
"instanceId": "fddb3e91967f1012c95dd02bf5ad21f279fc44715f47a7a96a33433621caa253",
"templateCredsSetupCompleted": true
},
"name": "line message api demo",
"tags": [],
"nodes": [
{
"id": "2bc1cc31-136c-46a4-a789-476e33c76f3d",
"name": "Line : 토큰으로 응답",
"type": "n8n-nodes-base.httpRequest",
"position": [
-540,
-460
],
"parameters": {
"url": "https://api.line.me/v2/bot/message/reply",
"method": "POST",
"options": {},
"jsonBody": "={\n \"replyToken\": \"{{ $('Webhook from Line Message').item.json.body.events[0].replyToken }}\",\n \"messages\": [\n {\n \"type\": \"text\",\n \"text\": \"收到您的訊息 : {{ $('Webhook from Line Message').item.json.body.events[0].message.text }}\"\n }\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "xB2Ip7YKSIDq7BoI",
"name": "Line n8n demo auth"
}
},
"typeVersion": 4.2
},
{
"id": "a1d9c986-4712-4d40-955d-40d1b19d74db",
"name": "Webhook from Line 메시지",
"type": "n8n-nodes-base.webhook",
"position": [
-1020,
-440
],
"webhookId": "638c118e-1c98-4491-b6ff-14e2e75380b6",
"parameters": {
"path": "638c118e-1c98-4491-b6ff-14e2e75380b6",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2
},
{
"id": "a0c94852-290f-48b9-8e11-b498ada90c8f",
"name": "스티커 메모",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1100,
-620
],
"parameters": {
"width": 720,
"height": 340,
"content": "## Line Message API Reply\n\nReceived Message from user and reply with same text by using reply token \n\nThere are many event types. So we need to determine if the type is message."
},
"typeVersion": 1
},
{
"id": "278aff13-c081-47f0-a1f6-67920642e991",
"name": "조건문",
"type": "n8n-nodes-base.if",
"position": [
-800,
-440
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "b63773bb-f010-4018-8142-240c9aaa4570",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.body.events[0].type }}",
"rightValue": "message"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "cff2f1d3-b7a4-4940-a1d1-1e5a80d6ea28",
"name": "스티커 메모1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1100,
-200
],
"parameters": {
"width": 720,
"height": 340,
"content": "## Line Message API Send Message\n\nYou need to get the Line UID first.\nEvery user is differnt.\n\nIf you have the Line UID. Then you can push the message to the User."
},
"typeVersion": 1
},
{
"id": "9348fc83-0aeb-4591-85b6-48f556512478",
"name": "'워크플로 테스트' 클릭 시",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1020,
-20
],
"parameters": {},
"typeVersion": 1
},
{
"id": "74db3e1b-9a22-4033-bf04-a8ff485a5d3b",
"name": "필드 편집",
"type": "n8n-nodes-base.set",
"position": [
-800,
-20
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "6278f340-6287-4e89-b774-f6c584954d5b",
"name": "line_uid",
"type": "string",
"value": "Uxxxxxxxxxxxx"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c593bd58-8f6a-4689-bb12-e71256ccf6e6",
"name": "Line : 푸시 메시지",
"type": "n8n-nodes-base.httpRequest",
"position": [
-560,
-20
],
"parameters": {
"url": "https://api.line.me/v2/bot/message/push",
"method": "POST",
"options": {},
"jsonBody": "={\n \"to\": \"{{ $json.line_uid }}\",\n \"messages\": [\n {\n \"type\": \"text\",\n \"text\": \"推播測試\"\n }\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "xB2Ip7YKSIDq7BoI",
"name": "Line n8n demo auth"
}
},
"typeVersion": 4.2
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "240dc848-8803-4776-b01d-5f10c765f72b",
"connections": {
"278aff13-c081-47f0-a1f6-67920642e991": {
"main": [
[
{
"node": "2bc1cc31-136c-46a4-a789-476e33c76f3d",
"type": "main",
"index": 0
}
]
]
},
"74db3e1b-9a22-4033-bf04-a8ff485a5d3b": {
"main": [
[
{
"node": "c593bd58-8f6a-4689-bb12-e71256ccf6e6",
"type": "main",
"index": 0
}
]
]
},
"a1d9c986-4712-4d40-955d-40d1b19d74db": {
"main": [
[
{
"node": "278aff13-c081-47f0-a1f6-67920642e991",
"type": "main",
"index": 0
}
]
]
},
"9348fc83-0aeb-4591-85b6-48f556512478": {
"main": [
[
{
"node": "74db3e1b-9a22-4033-bf04-a8ff485a5d3b",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 빌딩 블록
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
Bright Data MCP 기반 AI Telegram 데이터 추출 봇
Bright Data MCP 통합 AI Telegram 데이터 추출 봇
If
N8n
Wait
+
If
N8n
Wait
21 노드Cyril Nicko Gaspar
엔지니어링
OIDC 클라이언트 워크플로우
OpenID Connect를 사용한 워크플로 내 사용자 인증
If
Set
Code
+
If
Set
Code
15 노드please-open.it
빌딩 블록
YouTube Shorts + 맞춤형 MCP 서버
OpenAI를 통해 MCP 서버를 사용하여 Reddit 콘텐츠에서 YouTube Shorts 자동 생성
If
Set
Wait
+
If
Set
Wait
43 노드jolonbankey
디자인
물 섭취량 자동 추적기
자동追踪饮水量 - 存储在表格中并在Slack알림
If
Set
Wait
+
If
Set
Wait
21 노드darrell_tw
기타
Anthropic Claude API를 사용하여 대량으로 튜토리얼 처리
Anthropic Claude API를 사용하여 배치로 튜토리얼 처리
If
Set
Code
+
If
Set
Code
39 노드Greg Evseev
빌딩 블록
대리자 구축 도구
사용법 GPT-4o, RAG 및 네트워크 검색을 통해 사용자 정의 작업 흐름 자동 구축
If
Set
Code
+
If
Set
Code
33 노드Franz
빌딩 블록
워크플로우 정보
난이도
중급
노드 수8
카테고리1
노드 유형6
저자
darrell_tw
@darrelltwMartech Engineer with automation. here is my website: https://www.darrelltw.com/
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유