app:
  description: 分診分類器＋衛教知識庫，先分流再依類別安全回應。
  icon: 🏥
  icon_background: '#DBEAFE'
  icon_type: emoji
  mode: advanced-chat
  name: 診所智慧分診與衛教助手
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/anthropic:0.3.24@c5e50da8c13c7ac75348df5ac75b9418c79736eb506064669dd7ca06cbd83537
    version: null
kind: app
version: 0.6.0
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        attachment_image_file_size_limit: 2
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        file_upload_limit: 20
        image_file_batch_limit: 10
        image_file_size_limit: 10
        single_chunk_attachment_limit: 10
        video_file_size_limit: 100
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 3
    opening_statement: 您好，我是診所的智慧分診小幫手 🏥 請描述您的狀況或問題（症狀、用藥、掛號皆可）。⚠️ 若有胸痛、呼吸困難、意識改變等危急狀況，請立即撥打119。
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions:
    - 我發燒兩天了，要看醫生嗎？
    - 高血壓的藥可以自己停嗎？
    - 初診要帶什麼證件？
    - 突然胸痛冒冷汗怎麼辦？
    suggested_questions_after_answer:
      enabled: true
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: start
        targetType: question-classifier
      id: 26s-source-26qc
      source: 26s
      sourceHandle: source
      target: 26qc
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: question-classifier
        targetType: llm
      id: 26qc-c_emg-26emg
      source: 26qc
      sourceHandle: c_emg
      target: 26emg
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: answer
      id: 26emg-source-26ae
      source: 26emg
      sourceHandle: source
      target: 26ae
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: question-classifier
        targetType: knowledge-retrieval
      id: 26qc-c_sym-26symkr
      source: 26qc
      sourceHandle: c_sym
      target: 26symkr
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: knowledge-retrieval
        targetType: llm
      id: 26symkr-source-26sym
      source: 26symkr
      sourceHandle: source
      target: 26sym
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: answer
      id: 26sym-source-26asym
      source: 26sym
      sourceHandle: source
      target: 26asym
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: question-classifier
        targetType: knowledge-retrieval
      id: 26qc-c_med-26medkr
      source: 26qc
      sourceHandle: c_med
      target: 26medkr
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: knowledge-retrieval
        targetType: llm
      id: 26medkr-source-26med
      source: 26medkr
      sourceHandle: source
      target: 26med
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: answer
      id: 26med-source-26amed
      source: 26med
      sourceHandle: source
      target: 26amed
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: question-classifier
        targetType: llm
      id: 26qc-c_adm-26adm
      source: 26qc
      sourceHandle: c_adm
      target: 26adm
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: answer
      id: 26adm-source-26aadm
      source: 26adm
      sourceHandle: source
      target: 26aadm
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        selected: false
        title: 開始
        type: start
        variables: []
      height: 73
      id: 26s
      position:
        x: 0
        y: 203.77777777777777
      positionAbsolute:
        x: 0
        y: 203.77777777777777
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        classes:
        - id: c_emg
          name: 急症警訊（胸痛、呼吸困難、中風徵兆、意識改變等）
        - id: c_sym
          name: 症狀衛教（發燒、血壓、血糖等一般症狀諮詢）
        - id: c_med
          name: 用藥諮詢（服藥方式、過敏、交互作用）
        - id: c_adm
          name: 掛號行政（掛號、看診須知、證件）
        instruction: 你是診所的智慧分診員。依民眾訊息判斷類別；凡描述胸痛、呼吸困難、單側無力、口齒不清、意識改變、大量出血等危險徵兆，一律歸『急症警訊』。
        model:
          completion_params:
            temperature: 0.1
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        query_variable_selector:
        - sys
        - query
        selected: false
        title: 分診分類器
        topics: []
        type: question-classifier
      height: 262
      id: 26qc
      position:
        x: 342
        y: 121.44444444444446
      positionAbsolute:
        x: 342
        y: 121.44444444444446
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        context:
          enabled: false
          variable_selector: []
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 10
        model:
          completion_params:
            temperature: 0.3
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        prompt_template:
        - id: s急症應對
          role: system
          text: '你是診所護理師。使用者的訊息已判定為『急症警訊』。請以冷靜、明確的口吻：

            1. 提醒這可能是緊急狀況，請『立即撥打119或前往急診』，不要等待。

            2. 簡短說明在等待就醫時可做/不可做的事。

            3. 明確聲明你無法遠端診斷，此為安全提醒。一律繁體中文。'
        selected: false
        title: 急症應對
        type: llm
        vision:
          enabled: false
      height: 88
      id: 26emg
      position:
        x: 704
        y: 0
      positionAbsolute:
        x: 704
        y: 0
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        dataset_ids:
        - Qfilg44yEdXlpcJPqvoasBjeR7DrdXJDQ9AYQnqFFMbebYmRXB8EfpMM67ihySMK
        multiple_retrieval_config:
          reranking_enable: false
          reranking_mode: reranking_model
          reranking_model:
            model: ''
            provider: ''
          score_threshold: null
          top_k: 3
          weights: null
        query_variable_selector:
        - sys
        - query
        retrieval_mode: multiple
        selected: false
        title: 衛教檢索(症狀)
        type: knowledge-retrieval
      height: 90
      id: 26symkr
      position:
        x: 704
        y: 174.16666666666663
      positionAbsolute:
        x: 704
        y: 174.16666666666663
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        context:
          enabled: true
          variable_selector:
          - 26symkr
          - result
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 10
        model:
          completion_params:
            temperature: 0.3
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        prompt_template:
        - id: s症狀衛教
          role: system
          text: '你是衛教護理師。【只根據】下方衛教資料回答一般症狀的自我照護與就醫時機，並提醒『無法取代醫師診斷』。查無資料就建議直接就醫。繁體中文、條列清楚。


            【衛教資料】

            {{#context#}}'
        selected: false
        title: 症狀衛教
        type: llm
        vision:
          enabled: false
      height: 88
      id: 26sym
      position:
        x: 1046
        y: 190.16666666666663
      positionAbsolute:
        x: 1046
        y: 190.16666666666663
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        dataset_ids:
        - Qfilg44yEdXlpcJPqvoasBjeR7DrdXJDQ9AYQnqFFMbebYmRXB8EfpMM67ihySMK
        multiple_retrieval_config:
          reranking_enable: false
          reranking_mode: reranking_model
          reranking_model:
            model: ''
            provider: ''
          score_threshold: null
          top_k: 3
          weights: null
        query_variable_selector:
        - sys
        - query
        retrieval_mode: multiple
        selected: false
        title: 衛教檢索(用藥)
        type: knowledge-retrieval
      height: 90
      id: 26medkr
      position:
        x: 704
        y: 357.16666666666663
      positionAbsolute:
        x: 704
        y: 357.16666666666663
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        context:
          enabled: true
          variable_selector:
          - 26medkr
          - result
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 10
        model:
          completion_params:
            temperature: 0.3
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        prompt_template:
        - id: s用藥諮詢
          role: system
          text: '你是藥事人員。【只根據】下方資料回答用藥安全問題（服藥、過敏、交互作用），涉及過敏或嚴重反應務必提醒立即停藥就醫；不確定就請諮詢醫師或藥師。繁體中文。


            【資料】

            {{#context#}}'
        selected: false
        title: 用藥諮詢
        type: llm
        vision:
          enabled: false
      height: 88
      id: 26med
      position:
        x: 1046
        y: 373.16666666666663
      positionAbsolute:
        x: 1046
        y: 373.16666666666663
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        context:
          enabled: false
          variable_selector: []
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 10
        model:
          completion_params:
            temperature: 0.3
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        prompt_template:
        - id: s掛號行政
          role: system
          text: 你是診所櫃檯。回答掛號、看診須知、需攜帶證件等行政問題；語氣親切、步驟清楚。繁體中文。若超出行政範圍，引導對方描述症狀改走衛教。
        selected: false
        title: 掛號行政
        type: llm
        vision:
          enabled: false
      height: 88
      id: 26adm
      position:
        x: 704
        y: 534
      positionAbsolute:
        x: 704
        y: 534
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        answer: '{{#26emg.text#}}'
        selected: false
        title: 回覆-急症
        type: answer
        variables: []
      height: 103
      id: 26ae
      position:
        x: 1046
        y: 7.166666666666629
      positionAbsolute:
        x: 1046
        y: 7.166666666666629
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        answer: '{{#26sym.text#}}'
        selected: false
        title: 回覆-症狀
        type: answer
        variables: []
      height: 103
      id: 26asym
      position:
        x: 1388
        y: 197.33333333333331
      positionAbsolute:
        x: 1388
        y: 197.33333333333331
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        answer: '{{#26med.text#}}'
        selected: false
        title: 回覆-用藥
        type: answer
        variables: []
      height: 103
      id: 26amed
      position:
        x: 1388
        y: 380.3333333333333
      positionAbsolute:
        x: 1388
        y: 380.3333333333333
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        answer: '{{#26adm.text#}}'
        selected: false
        title: 回覆-行政
        type: answer
        variables: []
      height: 103
      id: 26aadm
      position:
        x: 1046
        y: 541.1666666666666
      positionAbsolute:
        x: 1046
        y: 541.1666666666666
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    viewport:
      x: 54.181818181818244
      y: 235.8765569808515
      zoom: 0.6648075850529838
  rag_pipeline_variables: []
