app:
  description: ''
  icon: 💭
  icon_background: '#FCE7F6'
  mode: advanced-chat
  name: 意图识别客服
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/openai:0.0.13@9caa0421b5519db036aaccdbf1980d1071550767d6c59e9d9388dd386a92e9f6
kind: app
version: 0.1.5
workflow:
  conversation_variables:
  - description: 是 其实是另一个问题
    id: f1a7d731-e125-47ac-afc8-6d132a239244
    name: other
    selector:
    - conversation
    - other
    value: 其实是另一个问题
    value_type: string
  - description: 是 真实的问题
    id: a30fc12a-aabb-4a3e-ba6a-f72b09fb3125
    name: real
    selector:
    - conversation
    - real
    value: 真实的问题
    value_type: string
  - description: ''
    id: a30b3948-827f-4486-af74-1b50eef5b5fd
    name: solution
    selector:
    - conversation
    - solution
    value: ''
    value_type: string
  - description: ''
    id: f0022518-86b8-4ec7-918a-d5328bd9cf5e
    name: issue_type
    selector:
    - conversation
    - issue_type
    value: ''
    value_type: string
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        image_file_size_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: ''
    retriever_resource:
      enabled: false
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        sourceType: llm
        targetType: assigner
      id: 1724912692740-source-1724913537607-target
      selected: false
      source: '1724912692740'
      sourceHandle: source
      target: '1724913537607'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: start
        targetType: if-else
      id: 1724912630775-source-1724914124744-target
      selected: false
      source: '1724912630775'
      sourceHandle: source
      target: '1724914124744'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: start
        targetType: if-else
      id: 1724912630775-source-1724915540252-target
      selected: false
      source: '1724912630775'
      sourceHandle: source
      target: '1724915540252'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: question-classifier
      id: 1724915540252-true-17249155800090-target
      selected: false
      source: '1724915540252'
      sourceHandle: 'true'
      target: '17249155800090'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: template-transform
        targetType: assigner
      id: 1724915949908-source-1724916112410-target
      selected: false
      source: '1724915949908'
      sourceHandle: source
      target: '1724916112410'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: template-transform
      id: 1724914124744-true-1724916169899-target
      selected: false
      source: '1724914124744'
      sourceHandle: 'true'
      target: '1724916169899'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: template-transform
        targetType: llm
      id: 1724916169899-source-1724912692740-target
      selected: false
      source: '1724916169899'
      sourceHandle: source
      target: '1724912692740'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: assigner
        targetType: llm
      id: 1724916112410-source-17249167433220-target
      selected: false
      source: '1724916112410'
      sourceHandle: source
      target: '17249167433220'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1724915540252-efaa0a07-cb91-4358-9ea4-ca1b550b3ee1-17249167663430-target
      selected: false
      source: '1724915540252'
      sourceHandle: efaa0a07-cb91-4358-9ea4-ca1b550b3ee1
      target: '17249167663430'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1724915540252-c01fffc1-d772-48b0-bfbb-3b7764f630de-17249168544180-target
      selected: false
      source: '1724915540252'
      sourceHandle: c01fffc1-d772-48b0-bfbb-3b7764f630de
      target: '17249168544180'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 17249168497340-source-1724916910152-target
      selected: false
      source: '17249168497340'
      sourceHandle: source
      target: '1724916910152'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 17249167433220-source-1724916910152-target
      selected: false
      source: '17249167433220'
      sourceHandle: source
      target: '1724916910152'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 17249166812450-source-1724916910152-target
      selected: false
      source: '17249166812450'
      sourceHandle: source
      target: '1724916910152'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 17249168544180-source-1724916910152-target
      selected: false
      source: '17249168544180'
      sourceHandle: source
      target: '1724916910152'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 17249167663430-source-1724916910152-target
      selected: false
      source: '17249167663430'
      sourceHandle: source
      target: '1724916910152'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: variable-aggregator
        targetType: answer
      id: 1724916910152-source-1724916995353-target
      selected: false
      source: '1724916910152'
      sourceHandle: source
      target: '1724916995353'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: question-classifier
        targetType: assigner
      id: 17249155800090-1724913398262-1724918007522-target
      selected: false
      source: '17249155800090'
      sourceHandle: '1724913398262'
      target: '1724918007522'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: assigner
        targetType: template-transform
      id: 1724918007522-source-1724915949908-target
      selected: false
      source: '1724918007522'
      sourceHandle: source
      target: '1724915949908'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: question-classifier
        targetType: assigner
      id: 17249155800090-2-1724918083842-target
      selected: false
      source: '17249155800090'
      sourceHandle: '2'
      target: '1724918083842'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: assigner
        targetType: llm
      id: 1724918083842-source-17249168497340-target
      selected: false
      source: '1724918083842'
      sourceHandle: source
      target: '17249168497340'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: question-classifier
        targetType: llm
      id: 17249155800090-1724915840331-17249166812450-target
      selected: false
      source: '17249155800090'
      sourceHandle: '1724915840331'
      target: '17249166812450'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1724915540252-bad3c2fe-7371-427a-a367-e79a73f1c3ba-17249181527330-target
      selected: false
      source: '1724915540252'
      sourceHandle: bad3c2fe-7371-427a-a367-e79a73f1c3ba
      target: '17249181527330'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 17249181527330-source-1724916910152-target
      selected: false
      source: '17249181527330'
      sourceHandle: source
      target: '1724916910152'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: 开始
        type: start
        variables: []
      height: 54
      id: '1724912630775'
      position:
        x: 30
        y: 280
      positionAbsolute:
        x: 30
        y: 280
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: '+知识库

          (后台研究)'
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gpt-4o-mini
          provider: langgenius/openai/openai
        prompt_template:
        - id: ca6031a3-0909-4859-b988-b47c4859ce35
          role: system
          text: '你是一个问答机器人, 用来回答问题的.


            知识库检索的信息是

            {{#1724916169899.output#}}'
        - id: 79822e1b-323d-438c-8073-fc882ecfddd6
          role: user
          text: '{{#sys.query#}}'
        selected: false
        title: 问答机器人 Agent
        type: llm
        variables: []
        vision:
          configs:
            detail: high
          enabled: true
      height: 140
      id: '1724912692740'
      position:
        x: 1101.0596284996334
        y: 280
      positionAbsolute:
        x: 1101.0596284996334
        y: 280
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        assigned_variable_selector:
        - conversation
        - solution
        desc: (后台研究)
        input_variable_selector:
        - '1724912692740'
        - text
        selected: false
        title: 存储 解决方案
        type: assigner
        write_mode: over-write
      height: 116
      id: '1724913537607'
      position:
        x: 1378.637423054928
        y: 280
      positionAbsolute:
        x: 1378.637423054928
        y: 280
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        cases:
        - case_id: 'true'
          conditions:
          - comparison_operator: '='
            id: 1ee333ec-2e02-4644-84c1-6e2ec78e1623
            value: '1'
            varType: number
            variable_selector:
            - sys
            - dialogue_count
          id: 'true'
          logical_operator: and
        desc: 初次启动会话时, 并行运行
        selected: false
        title: 后台研究
        type: if-else
      height: 154
      id: '1724914124744'
      position:
        x: 498.1956798202368
        y: 280
      positionAbsolute:
        x: 498.1956798202368
        y: 280
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        author: Dify
        desc: ''
        height: 391
        selected: false
        showAuthor: true
        text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"场景灵感:","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"type":"linebreak","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"Discord有新用户,
          一上来就问? 我的RAG知识库遇到了问题, 我不能用API更新segment了, 我该怎么办?","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"我问:
          可以讲讲你具体的场景, 以及最好有截图吗?","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"新用户:
          我是餐馆的老板, 想\"","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"实时\"","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"记录我几个分店的订单数据,
          然后交给ai分析给我","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"我:
          知识库的目的是存储\"","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"知识","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"\",","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"但您这个是关于\"","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"日志","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"\"的存储和分析.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"你需要","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"Excel","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"表格,","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"或者","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"高性能","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"SQL,","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"或者更简单的KV作为","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"MVP
          ","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":"-
          先试试效果.","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"而不是对着RAG数据库生硬地使用(滥用).","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
        theme: blue
        title: ''
        type: ''
        width: 390
      height: 391
      id: '1724914702798'
      position:
        x: 1694.1712848738682
        y: 45.92865208137914
      positionAbsolute:
        x: 1694.1712848738682
        y: 45.92865208137914
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom-note
      width: 390
    - data:
        author: Dify
        desc: ''
        height: 167
        selected: false
        showAuthor: true
        text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"font-size:
          16px;","text":"一般的问答机器人, 只能回答问题, 而不能应用第一性原则等高级知识","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
        theme: blue
        title: ''
        type: ''
        width: 272
      height: 167
      id: '1724915005126'
      position:
        x: 929.5857268303071
        y: 45.92865208137914
      positionAbsolute:
        x: 929.5857268303071
        y: 45.92865208137914
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom-note
      width: 272
    - data:
        cases:
        - case_id: 'true'
          conditions:
          - comparison_operator: ≠
            id: 504e8b30-3b7a-4b24-8788-3f580d12fdb0
            value: '1'
            varType: number
            variable_selector:
            - sys
            - dialogue_count
          - comparison_operator: empty
            id: 29903251-9014-4d1d-a4ab-044bd0be2712
            value: 不清楚
            varType: string
            variable_selector:
            - conversation
            - issue_type
          id: 'true'
          logical_operator: and
        - case_id: c01fffc1-d772-48b0-bfbb-3b7764f630de
          conditions:
          - comparison_operator: is
            id: 55cd2dd6-d3d4-460f-9d30-478dbd142b25
            value: 真实的问题
            varType: string
            variable_selector:
            - conversation
            - issue_type
          id: c01fffc1-d772-48b0-bfbb-3b7764f630de
          logical_operator: and
        - case_id: efaa0a07-cb91-4358-9ea4-ca1b550b3ee1
          conditions:
          - comparison_operator: is
            id: 1e0c3f6b-3856-4270-a6b4-f589286476f6
            value: 其实是另一个问题
            varType: string
            variable_selector:
            - conversation
            - issue_type
          id: efaa0a07-cb91-4358-9ea4-ca1b550b3ee1
          logical_operator: and
        - case_id: bad3c2fe-7371-427a-a367-e79a73f1c3ba
          conditions:
          - comparison_operator: '='
            id: a3a68148-3da6-407c-995e-d83020e3dd47
            value: '1'
            varType: number
            variable_selector:
            - sys
            - dialogue_count
          id: bad3c2fe-7371-427a-a367-e79a73f1c3ba
          logical_operator: and
        desc: ''
        selected: false
        title: 条件分支
        type: if-else
      height: 296
      id: '1724915540252'
      position:
        x: 498.1956798202368
        y: 988.158917956991
      positionAbsolute:
        x: 498.1956798202368
        y: 988.158917956991
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        classes:
        - id: '2'
          name: 用户的问题是真实的
        - id: '1724913398262'
          name: 用户或许有更好的选择
        - id: '1724915840331'
          name: 用户还不清楚, 他到底要什么
        desc: ''
        instruction: '你的任务是鉴别用户是否知道自己遇到的问题, 之前的那个步骤是否是正确的.

          <example>

          知识库的目的是存储"知识",

          但用户或许需要的是关于"日志"的存储和分析.

          那么他需要Excel表格,

          或者高性能SQL,

          或者更简单的KV作为MVP - 先试试效果.

          而不是对着RAG数据库生硬地使用(滥用).


          这种情况下你需要选择 "用户或许有更好的选择"</example>'
        instructions: ''
        memory:
          query_prompt_template: ''
          window:
            enabled: false
            size: 50
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gpt-4o-mini
          provider: langgenius/openai/openai
        query_variable_selector:
        - '1724912630775'
        - sys.query
        selected: false
        title: '"问题"分类器'
        topics: []
        type: question-classifier
      height: 216
      id: '17249155800090'
      position:
        x: 498.1956798202368
        y: 663.4719421926416
      positionAbsolute:
        x: 498.1956798202368
        y: 663.4719421926416
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        selected: false
        template: SQL和表格接入请升级为付费用户, 或者联系Dify的企业业务部门
        title: 知识库RAG
        type: template-transform
        variables: []
      height: 54
      id: '1724915949908'
      position:
        x: 1101.0596284996334
        y: 486.3807074967066
      positionAbsolute:
        x: 1101.0596284996334
        y: 486.3807074967066
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        assigned_variable_selector:
        - conversation
        - solution
        desc: ''
        input_variable_selector:
        - '1724915949908'
        - output
        selected: false
        title: 更新 解决方案
        type: assigner
        write_mode: over-write
      height: 88
      id: '1724916112410'
      position:
        x: 1378.637423054928
        y: 486.3807074967066
      positionAbsolute:
        x: 1378.637423054928
        y: 486.3807074967066
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: (后台研究)
        selected: false
        template: 更新知识库的segment需要自部署或者SaaS(Cloud)版升级为付费用户
        title: 知识库 RAG
        type: template-transform
        variables: []
      height: 82
      id: '1724916169899'
      position:
        x: 802.7562848905691
        y: 291.4107287224173
      positionAbsolute:
        x: 802.7562848905691
        y: 291.4107287224173
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: '或许并没有问题, 而是用户迷路了


          你是一个问答机器人, 用来回答问题的. 但是, 我们先向上一步, 问问他意愿之前的最初动机是什么? 如果有了, 那么请你试试和他用非技术的方案解决'
        memory:
          query_prompt_template: ''
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 50
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gpt-4o-mini
          provider: langgenius/openai/openai
        prompt_template:
        - id: 616ccbd7-4f04-49da-8adf-eaed123ee334
          role: system
          text: '"或许并没有问题, 而是用户迷路了."


            你是一个问答机器人, 用来回答问题的. 但是, 我们先向上一步, 问问他意愿之前的最初动机是什么? 如果有了, 那么请你试试和他用非技术的方案解决'
        selected: false
        title: 鉴别真正的问题
        type: llm
        variables: []
        vision:
          configs:
            detail: high
          enabled: true
      height: 204
      id: '17249166812450'
      position:
        x: 1101.0596284996334
        y: 898.5407239797723
      positionAbsolute:
        x: 1101.0596284996334
        y: 898.5407239797723
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        memory:
          query_prompt_template: ''
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 50
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gpt-4o-mini
          provider: langgenius/openai/openai
        prompt_template:
        - id: 371c1c7d-509b-4c3d-b789-d81faabbec35
          role: system
          text: "你是个问答机器人. 经过一些步骤, 你知道了用户的问题其实是另一个. 这是与那个领域相关的资料. \n{{#conversation.solution#}}\n\
            请你耐心帮组合用户"
        selected: false
        title: 更适合的答案
        type: llm
        variables: []
        vision:
          configs:
            detail: high
          enabled: true
      height: 96
      id: '17249167433220'
      position:
        x: 1699.380562899304
        y: 486.3807074967066
      positionAbsolute:
        x: 1699.380562899304
        y: 486.3807074967066
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        memory:
          query_prompt_template: ''
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 50
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gpt-4o-mini
          provider: langgenius/openai/openai
        prompt_template:
        - id: 371c1c7d-509b-4c3d-b789-d81faabbec35
          role: system
          text: "你是个问答机器人, 但是经过一些步骤, 你知道了用户的问题其实是另一个. 这是与那个领域相关的资料. \n{{#conversation.solution#}}\n\
            请你耐心帮组合用户"
        selected: false
        title: 更适合的答案 (1)
        type: llm
        variables: []
        vision:
          configs:
            detail: high
          enabled: true
      height: 96
      id: '17249167663430'
      position:
        x: 1101.0596284996334
        y: 1330.7902324724469
      positionAbsolute:
        x: 1101.0596284996334
        y: 1330.7902324724469
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: '结合"后台研究"的结果

          + 用户具体的场景

          = 智能回答'
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 50
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gpt-4o-mini
          provider: langgenius/openai/openai
        prompt_template:
        - id: 8bd3e708-4cd1-437a-b0ff-6571f1dce6a5
          role: system
          text: '你是一个智能且人性化的问答机器人.

            这是查阅了知识库后的重要信息.{{#conversation.solution#}}.


            请你帮助用户, 用我们的产品和服务, 实现他的目标'
        selected: false
        title: 直接回答问题
        type: llm
        variables: []
        vision:
          configs:
            detail: high
          enabled: true
      height: 156
      id: '17249168497340'
      position:
        x: 1378.637423054928
        y: 690.3647845866751
      positionAbsolute:
        x: 1378.637423054928
        y: 690.3647845866751
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: '结合"后台研究"的结果

          + 用户具体的场景

          = 智能回答'
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 50
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gpt-4o-mini
          provider: langgenius/openai/openai
        prompt_template:
        - id: 8bd3e708-4cd1-437a-b0ff-6571f1dce6a5
          role: system
          text: '你是一个智能且人性化的问答机器人.

            这是查阅了知识库后的重要信息.

            {{#conversation.solution#}}


            请你帮助用户, 用我们的产品和服务, 实现他的目标'
        selected: false
        title: 直接回答问题 (1)
        type: llm
        variables: []
        vision:
          configs:
            detail: high
          enabled: true
      height: 156
      id: '17249168544180'
      position:
        x: 1101.0596284996334
        y: 1134.7486477236678
      positionAbsolute:
        x: 1101.0596284996334
        y: 1134.7486477236678
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        output_type: string
        selected: false
        title: 更智能的问答机器人
        type: variable-aggregator
        variables:
        - - '17249168497340'
          - text
        - - '17249167433220'
          - text
        - - '17249166812450'
          - text
        - - '17249168544180'
          - text
        - - '17249167663430'
          - text
        - - '17249181527330'
          - text
      height: 218
      id: '1724916910152'
      position:
        x: 2221.2129385952726
        y: 909
      positionAbsolute:
        x: 2221.2129385952726
        y: 909
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        answer: '{{#1724916910152.output#}}'
        desc: ''
        selected: false
        title: 直接回复
        type: answer
        variables: []
      height: 105
      id: '1724916995353'
      position:
        x: 2521.408820305187
        y: 909
      positionAbsolute:
        x: 2521.408820305187
        y: 909
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        author: Dify
        desc: ''
        height: 214
        selected: false
        showAuthor: true
        text: '{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"font-size:
          16px;","text":"👈一个Agent在背后查阅资料","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"font-size:
          16px;","text":"另一个LLM了解情况👉","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"detail":0,"format":0,"mode":"normal","style":"font-size:
          16px;","text":"以及根据情况解答帮助用户👉","type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0},{"children":[{"type":"linebreak","version":1},{"type":"linebreak","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1,"textFormat":0}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}'
        theme: blue
        title: ''
        type: ''
        width: 315
      height: 214
      id: '1724917065786'
      position:
        x: 1311.7503392197868
        y: 45.92865208137914
      positionAbsolute:
        x: 1311.7503392197868
        y: 45.92865208137914
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom-note
      width: 315
    - data:
        assigned_variable_selector:
        - conversation
        - issue_type
        desc: ''
        input_variable_selector:
        - conversation
        - other
        selected: false
        title: 更新 issue type
        type: assigner
        write_mode: over-write
      height: 88
      id: '1724918007522'
      position:
        x: 802.7562848905691
        y: 486.3807074967066
      positionAbsolute:
        x: 802.7562848905691
        y: 486.3807074967066
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        assigned_variable_selector:
        - conversation
        - issue_type
        desc: ''
        input_variable_selector:
        - conversation
        - real
        selected: false
        title: 更新 Issue type
        type: assigner
        write_mode: over-write
      height: 88
      id: '1724918083842'
      position:
        x: 1101.0596284996334
        y: 690.3647845866751
      positionAbsolute:
        x: 1101.0596284996334
        y: 690.3647845866751
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: '或许并没有问题, 而是用户迷路了


          你是一个问答机器人, 用来回答问题的. 但是, 我们先向上一步, 问问他意愿之前的最初动机是什么? 如果有了, 那么请你试试和他用非技术的方案解决'
        memory:
          query_prompt_template: ''
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 50
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gpt-4o-mini
          provider: langgenius/openai/openai
        prompt_template:
        - id: 616ccbd7-4f04-49da-8adf-eaed123ee334
          role: system
          text: '"或许并没有问题, 而是用户迷路了."


            你是一个问答机器人, 用来回答问题的. 但是, 我们先向上一步, 问问他意愿之前的最初动机是什么? 如果有了, 那么请你试试和他用非技术的方案解决'
        selected: false
        title: 鉴别真正的问题 (1)
        type: llm
        variables: []
        vision:
          configs:
            detail: high
          enabled: true
      height: 204
      id: '17249181527330'
      position:
        x: 1101.0596284996334
        y: 1476.6238934773307
      positionAbsolute:
        x: 1101.0596284996334
        y: 1476.6238934773307
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    viewport:
      x: 207.67399563652157
      y: 80.31070185448772
      zoom: 0.43775285001857056
