8
n8n 한국어amn8n.com

AI 의료 증상 검사기와 건강 도우미

고급

이것은Support Chatbot, AI Chatbot분야의자동화 워크플로우로, 17개의 노드를 포함합니다.주로 If, Set, Code, Merge, Webhook 등의 노드를 사용하며. GPT-4-mini를 기반으로 한 의료 증상 검사 및 건강 도우미

사전 요구사항
  • HTTP Webhook 엔드포인트(n8n이 자동으로 생성)
  • Airtable API Key
  • OpenAI API Key
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "meta": {
    "templateId": "ai-health-assistant-v1",
    "templateCreatedDate": "2024-01-15T00:00:00.000Z"
  },
  "name": "AI Medical Symptom Checker & Health Assistant",
  "tags": [],
  "nodes": [
    {
      "id": "disclaimer-note",
      "name": "스티키 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -500
      ],
      "parameters": {
        "width": 400,
        "height": 460,
        "content": "## 🏥 AI HEALTH ASSISTANT\n\n**IMPORTANT DISCLAIMER:**\nThis tool provides general health information only and is NOT a substitute for professional medical advice, diagnosis, or treatment. Always consult qualified healthcare providers for medical concerns.\n\n### ✨ Features:\n• Symptom analysis & information\n• General health guidance\n• Medicine reminders\n• Appointment scheduling hints\n• Emergency detection\n• Multi-language support\n• Privacy-first design\n\n### 🎯 Use Cases:\n• Initial symptom research\n• Health education\n• Medication tracking\n• Wellness tips\n• Pre-appointment preparation"
      },
      "typeVersion": 1
    },
    {
      "id": "safety-protocols",
      "name": "스티키 노트1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        -500
      ],
      "parameters": {
        "width": 320,
        "height": 400,
        "content": "## ⚠️ SAFETY PROTOCOLS\n\n**Emergency Detection:**\n• Chest pain → Call 911\n• Breathing difficulty → Call 911\n• Stroke symptoms → Call 911\n• Severe bleeding → Call 911\n• Loss of consciousness → Call 911\n\n**Auto-Escalation:**\n• Detects emergency keywords\n• Provides emergency numbers\n• Refuses diagnosis\n• Recommends immediate care\n\n**Privacy:**\n• No data storage\n• Anonymous processing\n• HIPAA considerations\n• Encrypted transmission"
      },
      "typeVersion": 1
    },
    {
      "id": "symptom-categories",
      "name": "스티키 노트2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -150,
        -500
      ],
      "parameters": {
        "width": 280,
        "height": 420,
        "content": "## 📋 SYMPTOM CATEGORIES\n\n**Supported Areas:**\n\n**General:**\n• Fever & chills\n• Fatigue\n• Pain locations\n• Weight changes\n\n**Respiratory:**\n• Cough types\n• Breathing issues\n• Congestion\n\n**Digestive:**\n• Stomach pain\n• Nausea\n• Changes in habits\n\n**Mental Health:**\n• Stress levels\n• Sleep patterns\n• Mood changes\n\n**Skin:**\n• Rashes\n• Changes\n• Irritations"
      },
      "typeVersion": 1
    },
    {
      "id": "configuration",
      "name": "스티키 노트3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -50
      ],
      "parameters": {
        "width": 320,
        "height": 380,
        "content": "## 🔧 CONFIGURATION\n\n**Required Setup:**\n- [ ] OpenAI API key\n- [ ] Emergency contacts database\n- [ ] Disclaimer acceptance\n- [ ] Language settings\n\n**Optional:**\n- [ ] Medical database API\n- [ ] Translation service\n- [ ] SMS notifications\n- [ ] Healthcare provider API\n- [ ] Appointment systems\n\n**Compliance:**\n• Review local regulations\n• Add required disclaimers\n• Implement data retention\n• Audit logging"
      },
      "typeVersion": 1
    },
    {
      "id": "example-interactions",
      "name": "스티키 노트4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -500
      ],
      "parameters": {
        "width": 350,
        "height": 400,
        "content": "## 💬 EXAMPLE INTERACTIONS\n\n**User:** \"I have a headache for 3 days\"\n**Bot:** Provides general info about headaches, when to see doctor, self-care tips\n\n**User:** \"Chest pain can't breathe\"\n**Bot:** EMERGENCY - Call 911 immediately\n\n**User:** \"Remind me medications\"\n**Bot:** Sets up medication schedule\n\n**User:** \"Rash on arm, itchy\"\n**Bot:** General info about rashes, suggests pharmacist/doctor visit\n\n**User:** \"Feeling anxious lately\"\n**Bot:** Mental health resources, coping strategies, professional help info"
      },
      "typeVersion": 1
    },
    {
      "id": "roadmap",
      "name": "스티키 노트5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        -500
      ],
      "parameters": {
        "width": 300,
        "height": 420,
        "content": "## 📊 FEATURES ROADMAP\n\n**Current:**\n✅ Symptom information\n✅ Emergency detection\n✅ General guidance\n✅ Multi-language\n\n**Planned:**\n🔄 Medicine interactions\n🔄 Appointment booking\n🔄 Health tracking\n🔄 Family profiles\n🔄 Wearable integration\n🔄 Telemedicine prep\n🔄 Insurance info\n🔄 Prescription reminders\n\n**Future:**\n🔮 AI health predictions\n🔮 Personalized wellness\n🔮 Medical record analysis"
      },
      "typeVersion": 1
    },
    {
      "id": "webhook-entry",
      "name": "Health Query Webhook",
      "type": "n8n-nodes-base.webhook",
      "notes": "Receives health-related queries with strict privacy",
      "position": [
        -600,
        100
      ],
      "webhookId": "health-assistant",
      "parameters": {
        "path": "health-assistant",
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "Access-Control-Allow-Origin",
                "value": "*"
              },
              {
                "name": "X-Content-Type-Options",
                "value": "nosniff"
              }
            ]
          }
        },
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 1.1
    },
    {
      "id": "safety-check",
      "name": "안전성 확인 및 분류",
      "type": "n8n-nodes-base.code",
      "notes": "Checks for emergencies and categorizes queries",
      "position": [
        -400,
        100
      ],
      "parameters": {
        "jsCode": "// Emergency keywords that trigger immediate response\nconst emergencyKeywords = [\n    'chest pain', 'heart attack', 'stroke', 'can\\'t breathe', 'breathing difficulty',\n    'unconscious', 'severe bleeding', 'suicide', 'overdose', 'poisoning',\n    'severe pain', 'allergic reaction', 'anaphylaxis', 'seizure'\n];\n\n// Extract user input\nconst userInput = $input.first().json.body?.query || $input.first().json.query || '';\nconst language = $input.first().json.body?.language || 'en';\nconst age = $input.first().json.body?.age || 'unknown';\nconst sessionId = $input.first().json.body?.sessionId || Math.random().toString(36).substring(7);\n\n// Check for emergency\nconst lowerInput = userInput.toLowerCase();\nconst isEmergency = emergencyKeywords.some(keyword => lowerInput.includes(keyword));\n\n// Categorize query type\nlet queryType = 'general';\nif (lowerInput.includes('symptom') || lowerInput.includes('pain') || lowerInput.includes('feel')) {\n    queryType = 'symptom';\n} else if (lowerInput.includes('medication') || lowerInput.includes('medicine') || lowerInput.includes('drug')) {\n    queryType = 'medication';\n} else if (lowerInput.includes('appointment') || lowerInput.includes('doctor') || lowerInput.includes('schedule')) {\n    queryType = 'appointment';\n} else if (lowerInput.includes('wellness') || lowerInput.includes('health tip') || lowerInput.includes('prevent')) {\n    queryType = 'wellness';\n}\n\n// Privacy notice\nconst privacyNotice = \"This conversation is not stored and is for informational purposes only.\";\n\n// Prepare output\nreturn {\n    userInput,\n    language,\n    age,\n    sessionId,\n    isEmergency,\n    queryType,\n    privacyNotice,\n    timestamp: new Date().toISOString(),\n    disclaimer: \"This is not medical advice. Consult healthcare professionals for medical concerns.\"\n};"
      },
      "typeVersion": 2
    },
    {
      "id": "emergency-router",
      "name": "응급 상황 라우터",
      "type": "n8n-nodes-base.if",
      "position": [
        -200,
        100
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": false,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "c5528e99-6c2d-469e-aec6-ad5b07d5c8f1",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.isEmergency }}",
              "rightValue": true
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "emergency-response",
      "name": "응급 대응",
      "type": "n8n-nodes-base.set",
      "notes": "Immediate emergency response with contact numbers",
      "position": [
        0,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "emergency",
              "name": "response",
              "type": "string",
              "value": "=🚨 EMERGENCY DETECTED 🚨\n\n**CALL EMERGENCY SERVICES IMMEDIATELY:**\n\n🇺🇸 USA: 911\n🇬🇧 UK: 999\n🇪🇺 EU: 112\n🇦🇺 Australia: 000\n\n**Your message suggests a medical emergency.**\n\nWhile waiting for help:\n1. Stay calm\n2. Don't drive yourself\n3. Unlock doors for paramedics\n4. Have medications list ready\n5. Call someone to be with you\n\n**This is an automated response. Get immediate medical help!**"
            },
            {
              "id": "type",
              "name": "responseType",
              "type": "string",
              "value": "emergency"
            },
            {
              "id": "severity",
              "name": "severity",
              "type": "string",
              "value": "critical"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "health-ai",
      "name": "건강 정보 AI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "notes": "Provides general health information with strict guidelines",
      "position": [
        0,
        200
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4-mini"
        },
        "options": {
          "maxTokens": 1000,
          "temperature": 0.3
        },
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "=You are a helpful health information assistant. You provide general health information and wellness guidance while being very careful to:\n\n1. NEVER diagnose conditions\n2. NEVER prescribe medications\n3. NEVER replace professional medical advice\n4. ALWAYS recommend consulting healthcare providers for medical concerns\n5. ALWAYS emphasize this is general information only\n\nYour responses should be:\n- Informative but cautious\n- Empathetic and supportive\n- Clear about limitations\n- Focused on general wellness\n- Encouraging professional consultation\n\nFor symptom queries:\n- Provide general information about possible causes\n- Suggest when to see a doctor\n- Offer comfort measures if appropriate\n- Never minimize serious symptoms\n\nFor medication queries:\n- Only provide general information\n- Emphasize consulting pharmacists/doctors\n- Never suggest specific dosages\n- Mention common side effects only generally\n\nAlways end with a disclaimer about seeking professional medical advice."
            },
            {
              "role": "user",
              "content": "={{ $json.userInput }}\n\nContext:\n- Query Type: {{ $json.queryType }}\n- Language: {{ $json.language }}\n- Age Group: {{ $json.age }}\n\nPlease provide helpful general health information while being clear this is not medical advice."
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "{{YOUR_OPENAI_CREDENTIAL}}",
          "name": "OpenAI account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "format-health-response",
      "name": "건강 응답 형식화",
      "type": "n8n-nodes-base.set",
      "notes": "Adds disclaimers and resources to response",
      "position": [
        200,
        200
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "3d0292bc-0e07-4b55-9b7f-be0b417c2e05",
              "name": "response",
              "type": "string",
              "value": "={{ $json.message.content }}"
            },
            {
              "id": "e4e66a7a-1776-465b-865f-76666c5e3584",
              "name": "responseType",
              "type": "string",
              "value": "={{ $('Safety Check & Categorization').item.json.queryType }}"
            },
            {
              "id": "b2346867-40bb-4321-a3bd-59b948036dca",
              "name": "disclaimer",
              "type": "string",
              "value": "=⚕️ **Important Medical Disclaimer:**\nThis information is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition."
            },
            {
              "id": "8f30e7de-3dcb-412f-bcd8-d8bbfff087fb",
              "name": "resources",
              "type": "string",
              "value": "=📞 **Health Resources:**\n• Find a doctor: https://doctor.webmd.com/\n• Symptom checker: https://www.mayoclinic.org/symptom-checker/\n• Mental health: https://www.samhsa.gov/find-help/national-helpline\n• Poison control: 1-800-222-1222 (US)"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "merge-responses",
      "name": "병합",
      "type": "n8n-nodes-base.merge",
      "position": [
        400,
        100
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combinationMode": "multiplex"
      },
      "typeVersion": 3
    },
    {
      "id": "compile-response",
      "name": "최종 응답 컴파일",
      "type": "n8n-nodes-base.code",
      "notes": "Creates structured response with all necessary information",
      "position": [
        600,
        100
      ],
      "parameters": {
        "jsCode": "// Compile final response\nconst input = $('Safety Check & Categorization').item.json;\nconst response = $input.first().json;\n\n// Build structured response\nconst output = {\n    success: true,\n    sessionId: input.sessionId,\n    timestamp: new Date().toISOString(),\n    query: {\n        original: input.userInput,\n        type: input.queryType,\n        isEmergency: input.isEmergency,\n        language: input.language\n    },\n    response: {\n        content: response.response,\n        type: response.responseType,\n        severity: response.severity || 'normal'\n    },\n    disclaimers: {\n        medical: response.disclaimer || input.disclaimer,\n        privacy: input.privacyNotice\n    },\n    resources: response.resources || null,\n    followUp: {\n        suggestedActions: getSuggestedActions(input.queryType, input.isEmergency),\n        nextSteps: getNextSteps(input.queryType)\n    }\n};\n\n// Helper functions\nfunction getSuggestedActions(queryType, isEmergency) {\n    if (isEmergency) return ['Call emergency services', 'Get immediate help'];\n    \n    const actions = {\n        symptom: ['Track symptoms', 'Schedule doctor visit', 'Rest and monitor'],\n        medication: ['Consult pharmacist', 'Read medication guide', 'Set reminders'],\n        appointment: ['Call your provider', 'Prepare questions', 'Gather medical history'],\n        wellness: ['Start healthy habits', 'Track progress', 'Set wellness goals'],\n        general: ['Consult healthcare provider', 'Learn more', 'Stay informed']\n    };\n    \n    return actions[queryType] || actions.general;\n}\n\nfunction getNextSteps(queryType) {\n    const steps = {\n        symptom: 'If symptoms persist or worsen, see a healthcare provider promptly.',\n        medication: 'Always follow prescription instructions and consult your pharmacist.',\n        appointment: 'Write down your concerns to discuss with your provider.',\n        wellness: 'Small daily changes can lead to significant health improvements.',\n        general: 'Your health is important - don\\'t hesitate to seek professional help.'\n    };\n    \n    return steps[queryType] || steps.general;\n}\n\nreturn output;"
      },
      "typeVersion": 2
    },
    {
      "id": "send-response",
      "name": "응답 전송",
      "type": "n8n-nodes-base.respondToWebhook",
      "notes": "Returns health information with appropriate headers",
      "position": [
        800,
        100
      ],
      "parameters": {
        "options": {
          "responseCode": 200,
          "responseHeaders": {
            "entries": [
              {
                "name": "Content-Type",
                "value": "application/json"
              },
              {
                "name": "X-Health-Disclaimer",
                "value": "This is not medical advice"
              }
            ]
          }
        },
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json, null, 2) }}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "integration-options",
      "name": "스티키 노트6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        -50
      ],
      "parameters": {
        "width": 300,
        "height": 400,
        "content": "## 📱 INTEGRATION OPTIONS\n\n**Channels:**\n• Web chat widget\n• WhatsApp Business\n• Telegram bot\n• SMS gateway\n• Voice assistants\n• Mobile apps\n\n**Healthcare Systems:**\n• EHR integration\n• Appointment APIs\n• Pharmacy systems\n• Insurance verification\n• Telemedicine platforms\n\n**Data Sources:**\n• Medical databases\n• Drug interaction APIs\n• Symptom databases\n• Provider directories"
      },
      "typeVersion": 1
    },
    {
      "id": "audit-log",
      "name": "Audit Log (Optional)",
      "type": "n8n-nodes-base.airtable",
      "notes": "Optional: Log queries for compliance (configure data retention)",
      "disabled": true,
      "position": [
        400,
        300
      ],
      "parameters": {
        "fieldsUi": {
          "fieldValues": [
            {
              "fieldId": "session_id",
              "fieldValue": "={{ $('Safety Check & Categorization').item.json.sessionId }}"
            },
            {
              "fieldId": "query_type",
              "fieldValue": "={{ $('Safety Check & Categorization').item.json.queryType }}"
            },
            {
              "fieldId": "is_emergency",
              "fieldValue": "={{ $('Safety Check & Categorization').item.json.isEmergency }}"
            },
            {
              "fieldId": "timestamp",
              "fieldValue": "={{ $('Safety Check & Categorization').item.json.timestamp }}"
            }
          ]
        },
        "resource": "database",
        "operation": "create",
        "databaseId": {
          "__rl": true,
          "mode": "list",
          "value": "health-assistant-logs"
        }
      },
      "typeVersion": 2
    }
  ],
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "connections": {
    "merge-responses": {
      "main": [
        [
          {
            "node": "compile-response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "emergency-router": {
      "main": [
        [
          {
            "node": "emergency-response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "health-ai",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "emergency-response": {
      "main": [
        [
          {
            "node": "merge-responses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "webhook-entry": {
      "main": [
        [
          {
            "node": "safety-check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "health-ai": {
      "main": [
        [
          {
            "node": "format-health-response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "compile-response": {
      "main": [
        [
          {
            "node": "send-response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "format-health-response": {
      "main": [
        [
          {
            "node": "merge-responses",
            "type": "main",
            "index": 1
          },
          {
            "node": "audit-log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "safety-check": {
      "main": [
        [
          {
            "node": "emergency-router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

고급 - 지원 챗봇, AI 챗봇

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
고급
노드 수17
카테고리2
노드 유형9
난이도 설명

고급 사용자를 위한 16+개 노드의 복잡한 워크플로우

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34