GPT-4o 기반의 Telegram 심리 건강 지원 로봇을 구축합니다.
중급
이것은Support Chatbot, AI Chatbot분야의자동화 워크플로우로, 15개의 노드를 포함합니다.주로 Set, Switch, Telegram, AimlApi, TelegramTrigger 등의 노드를 사용하며. GPT-4o를 기반으로 한 Telegram 심리 건강 지원 로봇을 구축합니다.
사전 요구사항
- •Telegram Bot Token
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "29cf227651b207fca8739269056bd8f95a432c5e246ffae4aaf9220581f6fe53",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "0111b076-35d5-4bd1-b608-ec1bf479592b",
"name": "시작: Telegram에서 메시지 수신",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
1008,
752
],
"webhookId": "b04097ef-4484-4648-aee4-d3652537c8c3",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "QcfQneMUvIojzFQz",
"name": "Telegram account"
}
},
"typeVersion": 1.1
},
{
"id": "c7f4bbc1-d12b-4f41-b430-aff228a795c9",
"name": "입력 유형별 라우팅",
"type": "n8n-nodes-base.switch",
"position": [
1456,
720
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Vent",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "71a70192-b1c2-44fc-9e0b-cad9cc5eaac4",
"operator": {
"type": "string",
"operation": "startsWith"
},
"leftValue": "={{ $('Start: Receive Message on Telegram').item.json.message.text }}",
"rightValue": "#vent"
}
]
},
"renameOutput": true
},
{
"outputKey": "Insight",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "1b5b1c7e-99e9-4e6d-a050-2d3c1c22c236",
"operator": {
"type": "string",
"operation": "startsWith"
},
"leftValue": "={{ $('Start: Receive Message on Telegram').item.json.message.text }}",
"rightValue": "#insight"
}
]
},
"renameOutput": true
},
{
"outputKey": "Cope",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "a9ad78e2-623b-4d1b-b0b8-bdaebf8bd71c",
"operator": {
"type": "string",
"operation": "startsWith"
},
"leftValue": "={{ $('Start: Receive Message on Telegram').item.json.message.text }}",
"rightValue": "#cope"
}
]
},
"renameOutput": true
},
{
"outputKey": "Any other",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "6f3a36ca-2348-4573-bbd7-4aa8088ec296",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $('Start: Receive Message on Telegram').item.json.message.text }}",
"rightValue": ""
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"notesInFlow": false,
"typeVersion": 3.2
},
{
"id": "329aeb7a-9473-4893-b288-0a9db699d090",
"name": "메모지",
"type": "n8n-nodes-base.stickyNote",
"position": [
976,
-144
],
"parameters": {
"width": 540,
"height": 468,
"content": "## 🚀 Quick Start Guide\n\n1. 🔐 **Connect Your Credentials** \n - **Telegram**: Link your bot token in the **Telegram Trigger** and **Telegram** nodes (use BotFather). \n - **AI/ML API**: Add your API key under the **AI/ML account** credential. \n\n2. ✅ **Activate the Workflow** \n - Toggle **Active** in the canvas header. \n\n3. 💬 **Send a Message in Telegram** \n - Prefix with **#vent**, **#insight**, or **#cope** for specific support modes. \n - Or send any text without a tag for a general empathic response. \n\n4. ⏳ **Observe “Typing…” Indicator** \n - The **Show Typing Indicator** node signals the bot is processing. \n\n5. 🤖 **Receive Your AI-Powered Reply** \n - A custom response is generated by the **Generate personalised answer** node and sent back to you. \n"
},
"typeVersion": 1
},
{
"id": "3afdea7a-997f-4593-b5f3-f0ae4592dae4",
"name": "감정 배출 프롬프트",
"type": "n8n-nodes-base.set",
"position": [
1856,
464
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={\n \"prompt\": \"You are a compassionate therapist. The user is sharing their thoughts or feelings. Respond with empathetic validation, reflective listening, and gentle curiosity. Don’t offer solutions unless explicitly asked.\"\n}"
},
"typeVersion": 3.4
},
{
"id": "bdf9d3e9-6430-4a13-b7fc-2fe570720c1f",
"name": "통찰 프롬프트",
"type": "n8n-nodes-base.set",
"position": [
1856,
656
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={\n \"prompt\": \"Act as an insightful psychologist. Analyze the user’s message and offer possible psychological insights or inner patterns behind their thoughts or behavior. Speak in clear, calm, and respectful language.\"\n}"
},
"typeVersion": 3.4
},
{
"id": "dd67ab30-9837-4e25-bee4-7011c49485ea",
"name": "대처 프롬프트",
"type": "n8n-nodes-base.set",
"position": [
1856,
848
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={\n \"prompt\": \"The user is facing a tough emotional moment. Suggest 1–2 simple coping strategies (e.g. grounding, reframing, breathwork) based on their situation. Keep the tone warm, supportive, and practical.\"\n}"
},
"typeVersion": 3.4
},
{
"id": "da096c11-0b37-40e7-ba94-4ab65f3cb890",
"name": "기타 모든 메시지용 메인 프롬프트",
"type": "n8n-nodes-base.set",
"position": [
1856,
1040
],
"parameters": {
"mode": "raw",
"options": {},
"jsonOutput": "={\n \"prompt\": \"You're a compassionate AI mental health assistant trained in supportive conversation. The user wrote a message without a clear tag. Gently interpret what they might be asking or needing — whether it's support, insight, tools, or just someone to listen. Respond with warmth, emotional intelligence, and clarity. Avoid sounding like a robot or giving generic answers. Make it feel real and human.\"\n}"
},
"typeVersion": 3.4
},
{
"id": "98cf523a-aaf9-4e73-968c-15fe3fa4d0ef",
"name": "개인 맞춤형 답변 생성",
"type": "n8n-nodes-aimlapi.aimlApi",
"position": [
2304,
752
],
"parameters": {
"model": "openai/gpt-4o",
"prompt": "={{ $json.prompt }}\n\nMessage:\n{{ $('Start: Receive Message on Telegram').item.json.message.text }}",
"options": {},
"requestOptions": {}
},
"credentials": {
"aimlApi": {
"id": "fzkUXwSArkMtWVYd",
"name": "AI/ML account"
}
},
"typeVersion": 1
},
{
"id": "292e839f-2843-486f-9a83-3624f0e8fdc0",
"name": "Telegram에 메시지 전송",
"type": "n8n-nodes-base.telegram",
"position": [
2528,
752
],
"webhookId": "fa689c4d-4c59-49c8-bbd6-0ab170d2f659",
"parameters": {
"text": "={{ $json.content }}",
"chatId": "={{ $('Start: Receive Message on Telegram').item.json.message.chat.id }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "QcfQneMUvIojzFQz",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "21b81566-ae81-483b-8430-71766e380426",
"name": "입력 중 표시",
"type": "n8n-nodes-base.telegram",
"position": [
1232,
752
],
"webhookId": "fa689c4d-4c59-49c8-bbd6-0ab170d2f659",
"parameters": {
"chatId": "={{ $('Start: Receive Message on Telegram').item.json.message.chat.id }}",
"operation": "sendChatAction"
},
"credentials": {
"telegramApi": {
"id": "QcfQneMUvIojzFQz",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "4d5093cf-bd4b-4435-b1bb-87d3befd4cf7",
"name": "메모지1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1392,
640
],
"parameters": {
"height": 288,
"content": "### Checks message.text for #vent, #insight, #cope, or falls back"
},
"typeVersion": 1
},
{
"id": "9f5bc824-0d97-4009-83fe-781cfc4892a6",
"name": "메모지2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1552,
-80
],
"parameters": {
"width": 368,
"height": 320,
"content": "## 🔍 Node Overview\n\n- **Telegram Trigger**: Listens for incoming messages. \n- **Show Typing Indicator**: Immediately shows “typing…” in chat. \n- **Route by Input Type (Switch)**: Detects your tag and routes to the right prompt. \n- **Vent/Insight/Cope/Main Prompt**: Builds the JSON payload for the AI/ML API. \n- **Generate personalised answer**: Calls the AI/ML API (model: `openai/gpt-4o`). \n- **Send message to Telegram**: Delivers the AI’s reply back into your chat. "
},
"typeVersion": 1
},
{
"id": "42a676f1-815f-4fc7-b537-4550f4ca8852",
"name": "메모지3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1792,
320
],
"parameters": {
"width": 224,
"height": 896,
"content": "## Chooses from given prompts"
},
"typeVersion": 1
},
{
"id": "09df03c2-96dc-4872-bb52-213506ac8a72",
"name": "메모지4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2272,
656
],
"parameters": {
"width": 384,
"height": 272,
"content": "## Generates and sends answer to Telegram"
},
"typeVersion": 1
},
{
"id": "e0c4e11c-ce6b-4c39-ad13-9108bfcaeda1",
"name": "메모지5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1952,
-80
],
"parameters": {
"width": 368,
"height": 320,
"content": "## **Example:**\n\n## ```#vent I’m feeling anxious about my presentation```\n\n## → ```“I hear that you’re worried… can you tell me more about what’s on your mind?”```\n"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"dd67ab30-9837-4e25-bee4-7011c49485ea": {
"main": [
[
{
"node": "98cf523a-aaf9-4e73-968c-15fe3fa4d0ef",
"type": "main",
"index": 0
}
]
]
},
"3afdea7a-997f-4593-b5f3-f0ae4592dae4": {
"main": [
[
{
"node": "98cf523a-aaf9-4e73-968c-15fe3fa4d0ef",
"type": "main",
"index": 0
}
]
]
},
"bdf9d3e9-6430-4a13-b7fc-2fe570720c1f": {
"main": [
[
{
"node": "98cf523a-aaf9-4e73-968c-15fe3fa4d0ef",
"type": "main",
"index": 0
}
]
]
},
"c7f4bbc1-d12b-4f41-b430-aff228a795c9": {
"main": [
[
{
"node": "3afdea7a-997f-4593-b5f3-f0ae4592dae4",
"type": "main",
"index": 0
}
],
[
{
"node": "bdf9d3e9-6430-4a13-b7fc-2fe570720c1f",
"type": "main",
"index": 0
}
],
[
{
"node": "dd67ab30-9837-4e25-bee4-7011c49485ea",
"type": "main",
"index": 0
}
],
[
{
"node": "da096c11-0b37-40e7-ba94-4ab65f3cb890",
"type": "main",
"index": 0
}
]
]
},
"21b81566-ae81-483b-8430-71766e380426": {
"main": [
[
{
"node": "c7f4bbc1-d12b-4f41-b430-aff228a795c9",
"type": "main",
"index": 0
}
]
]
},
"98cf523a-aaf9-4e73-968c-15fe3fa4d0ef": {
"main": [
[
{
"node": "292e839f-2843-486f-9a83-3624f0e8fdc0",
"type": "main",
"index": 0
}
]
]
},
"da096c11-0b37-40e7-ba94-4ab65f3cb890": {
"main": [
[
{
"node": "98cf523a-aaf9-4e73-968c-15fe3fa4d0ef",
"type": "main",
"index": 0
}
]
]
},
"0111b076-35d5-4bd1-b608-ec1bf479592b": {
"main": [
[
{
"node": "21b81566-ae81-483b-8430-71766e380426",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 지원 챗봇, AI 챗봇
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
Telegram, AIMLAPI, Google 스프레드시트를 사용하여 다모델 AI 채팅 로봇을 만들기
Telegram, AIMLAPI와 Google 스프레드시트를 사용하여 다중 모델 AI 채팅 로봇을 생성합니다.
If
Set
Code
+
If
Set
Code
25 노드AI/ML API | D1m7asis
개인 생산성
Telegram 로봇과 GPT-4o를 사용하여 개인화된 도시 여행 일정 생성
Telegram 로봇과 GPT-4o를 사용하여 개인화된 도시 여행 일정 생성
Set
Switch
Telegram
+
Set
Switch
Telegram
21 노드AI/ML API | D1m7asis
GPT-4o와 Telegram을 기반으로 한 상호작용적인 러시아어 지도 로봇
GPT-4o와 Telegram을 기반으로 한 상호작용식 러시아어 지원 로봇
Set
Switch
Telegram
+
Set
Switch
Telegram
16 노드AI/ML API | D1m7asis
콘텐츠 제작
Telegram 지원 인계 자동화
GPT4 및 이메일 알림을 사용한 Telegram 지원 AI-인간 전환 자동화
If
Set
Switch
+
If
Set
Switch
40 노드Meelioo
지원 챗봇
WhatsApp/Telegram WooCommerce 주문 지원
Telegram과 Gmail을 통해 Gemini와 GPT를 사용한 WooCommerce 고객 지원 자동화
Set
Gmail
Merge
+
Set
Gmail
Merge
25 노드AppStoneLab Technologies LLP
지원 챗봇
Telegram 명령 센터
Telegram 봇 명령 센터를 사용한 워크플로 실행 자동화
If
Set
Code
+
If
Set
Code
23 노드Amir
지원 챗봇