Line 채팅 로봇이 Groq과 Llama3를 통해 AI 응답 처리
중급
이것은Other, AI분야의자동화 워크플로우로, 9개의 노드를 포함합니다.주로 Set, Webhook, HttpRequest 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. Line 채팅 로봇을 통해 Groq과 Llama3로 AI 응답 처리
사전 요구사항
- •HTTP Webhook 엔드포인트(n8n이 자동으로 생성)
- •대상 API의 인증 정보가 필요할 수 있음
사용된 노드 (9)
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "xibc6WDU53isYN1o",
"meta": {
"instanceId": "b3225e6e1bdf5f128a5dd199e31e87e9e2b7cb5f141a1bbe60059a1964dd7091",
"templateCredsSetupCompleted": true
},
"name": "Line Chatbot Handling AI Responses with Groq and Llama3",
"tags": [],
"nodes": [
{
"id": "9b936123-7f31-4ddc-b1ca-fd172da9c5a8",
"name": "메모지",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-200
],
"parameters": {
"width": 440,
"content": "## Line AI Chatbot with Groq \nThis workflow automates the process of handling messages from Line Messaging API by sending message to Groq as your AI assistant and reply back to you. In this workflow, you can see that there is no JSON error when sending long and complex message."
},
"typeVersion": 1
},
{
"id": "0d75416e-58f0-4411-8904-7051f0d1c06a",
"name": "Line: 메시징 API",
"type": "n8n-nodes-base.webhook",
"position": [
0,
0
],
"webhookId": "befed026-573c-4d3a-9113-046ea8ae5930",
"parameters": {
"path": "befed026-573c-4d3a-9113-046ea8ae5930",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 2
},
{
"id": "e363c981-acdf-4048-a531-31808cd3edc5",
"name": "메시지 가져오기",
"type": "n8n-nodes-base.set",
"position": [
300,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "654c2465-5531-46fb-9b11-74cc23c899a9",
"name": "body.events[0].message.text",
"type": "string",
"value": "={{ $json.body.events[0].message.text }}"
},
{
"id": "be878a5c-f3e2-40c4-b8f2-6c6708b3b2ad",
"name": "body.events[0].message.id",
"type": "string",
"value": "={{ $json.body.events[0].message.id }}"
},
{
"id": "de79a8fe-d9fb-4bf4-a2a7-df3969b194a4",
"name": "body.events[0].source.userId",
"type": "string",
"value": "={{ $json.body.events[0].source.userId }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "6e0b17ab-9f38-4a73-b650-b35bd51657e4",
"name": "Groq AI 어시스턴트",
"type": "n8n-nodes-base.httpRequest",
"position": [
580,
0
],
"parameters": {
"url": "https://api.groq.com/openai/v1/chat/completions",
"method": "POST",
"options": {},
"jsonBody": "={\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"{{ $json.body.events[0].message.text }}\"\n }\n ],\n \"model\": \"llama-3.3-70b-versatile\",\n \"temperature\": 1,\n \"max_completion_tokens\": 2500,\n \"top_p\": 1,\n \"stream\": null,\n \"stop\": null\n} ",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "iqHHZfH8mAbuFprI",
"name": "Groq Authorization"
}
},
"typeVersion": 4.2
},
{
"id": "25e929d1-3a38-45e1-a089-1cab0919f49d",
"name": "Line: 답장 메시지",
"type": "n8n-nodes-base.httpRequest",
"position": [
860,
0
],
"parameters": {
"url": "https://api.line.me/v2/bot/message/reply",
"method": "POST",
"options": {},
"jsonBody": "={\n \"replyToken\":\"{{ $('Line: Messaging API').item.json.body.events[0].replyToken }}\",\n \"messages\":[\n {\n \"type\":\"text\",\n \"text\": {{ JSON.stringify($('Groq AI Assistant).item.json.choices[0].message.content) }}\n }\n ]\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "hX58q9WFQLFROFui",
"name": "Header Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "efcd27d2-a347-4ec4-8190-ccbef6616dd5",
"name": "메모지1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-80,
160
],
"parameters": {
"width": 260,
"content": "## LINE Messaging API \nGet the access token from Line Business https://manager.line.biz/"
},
"typeVersion": 1
},
{
"id": "0c720dac-7c64-4635-9ef0-b92a4886db14",
"name": "메모지2",
"type": "n8n-nodes-base.stickyNote",
"position": [
220,
160
],
"parameters": {
"content": "## Get Message\nGet message from Line account."
},
"typeVersion": 1
},
{
"id": "b7afaacd-7d23-44e0-a601-81f7907b7af2",
"name": "메모지3",
"type": "n8n-nodes-base.stickyNote",
"position": [
500,
160
],
"parameters": {
"content": "## Groq API Key\nApply Groq account and get API key then you should set ```max_completion_tokens``` less than 5000 because of Line message limitation"
},
"typeVersion": 1
},
{
"id": "e10ae59d-374a-4926-8f38-6baa79f4782b",
"name": "메모지4",
"type": "n8n-nodes-base.stickyNote",
"position": [
780,
160
],
"parameters": {
"content": "## Reply message\nUse replyToken from Line messaging API and use ```choices[].message.content``` to reply to you."
},
"typeVersion": 1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "dcdc5794-7034-4215-a719-b73513f0f0ee",
"connections": {
"e363c981-acdf-4048-a531-31808cd3edc5": {
"main": [
[
{
"node": "6e0b17ab-9f38-4a73-b650-b35bd51657e4",
"type": "main",
"index": 0
}
]
]
},
"6e0b17ab-9f38-4a73-b650-b35bd51657e4": {
"main": [
[
{
"node": "25e929d1-3a38-45e1-a089-1cab0919f49d",
"type": "main",
"index": 0
}
]
]
},
"0d75416e-58f0-4411-8904-7051f0d1c06a": {
"main": [
[
{
"node": "e363c981-acdf-4048-a531-31808cd3edc5",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 기타, 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
Line 채팅 로봇 급여 명세서 텍스트 추출(Gemini)
Line 채팅 로봇과 Gemini를 사용하여 급여 명세서 데이터를 Google 스프레드시트로 추출
Set
Switch
Webhook
+
Set
Switch
Webhook
17 노드Sirisak Chantanate
금융
채팅 로봇 AI
사용법 LINE에서 자신의 심리 상담 채팅 로봇을 구축하여 심리 건강 대화 지원
If
Set
Webhook
+
If
Set
Webhook
14 노드lin@davoy.tech
기타
AI 대리인 레스토랑 [템플릿]
🤖 WhatsApp, 인스타그램, 메신저의 AI 레스토랑 도우미
If
N8n
Set
+
If
N8n
Set
239 노드Amanda Benks
기타
AI 자동화 및 에이전트 구축 및 판매
构建与판매AI자동화与스마트体
If
Set
Wait
+
If
Set
Wait
74 노드NICKYAI
기타
⚡AI驱动의YouTube播放列表및视频摘要与분석v2
AI YouTube播放列表与视频분석채팅봇
If
Set
Code
+
If
Set
Code
72 노드dmr
기타
감사 항아리 알림
AI 기반 LINE 감사 알림 워크플로우
Set
Http Request
Schedule Trigger
+
Set
Http Request
Schedule Trigger
9 노드lin@davoy.tech
기타
워크플로우 정보
난이도
중급
노드 수9
카테고리2
노드 유형4
저자
Sirisak Chantanate
@openmymaiAutomation consultant with 1 year experience helping Sales & Marketing teams to streamline their processes. Use my link to book an initial consultation for custom n8n work.
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유