🤖

智能客服助手

暂无描述

⬡ 6 节点 ↓ 18 下载 ⚙ advanced-chat ⭐ 90/100 2026-05-28

工作流图谱

YAML 源码

app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: advanced-chat
  name: 智能客服助手
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/deepseek:0.0.5@fd6efd37c2a931911de8ab9ca3ba2da303bef146d45ee87ad896b04b36d09403
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/tongyi:0.0.11@5077dd5c6ff5bc5dc1b2772e460325ae2cc2619a7c0fd151d69bc5841edba5bd
kind: app
version: 0.1.5
workflow:
  conversation_variables: []
  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: true
    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:
        isInLoop: false
        sourceType: knowledge-retrieval
        targetType: llm
      id: 1743338435028-source-llm-target
      source: '1743338435028'
      sourceHandle: source
      target: llm
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: start
        targetType: knowledge-retrieval
      id: 1743336922383-source-1743338435028-target
      source: '1743336922383'
      sourceHandle: source
      target: '1743338435028'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: if-else
      id: llm-source-1743339673106-target
      source: llm
      sourceHandle: source
      target: '1743339673106'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: if-else
        targetType: answer
      id: 1743339673106-true-answer-target
      source: '1743339673106'
      sourceHandle: 'true'
      target: answer
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: if-else
        targetType: answer
      id: 1743339673106-false-1743339743311-target
      source: '1743339673106'
      sourceHandle: 'false'
      target: '1743339743311'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: 开始
        type: start
        variables: []
      height: 52
      id: '1743336922383'
      position:
        x: -283.7913406372071
        y: 345
      positionAbsolute:
        x: -283.7913406372071
        y: 345
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 243
    - data:
        context:
          enabled: true
          variable_selector:
          - '1743338435028'
          - result
        desc: ''
        memory:
          query_prompt_template: ''
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: true
            size: 10
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: deepseek-chat
          provider: langgenius/deepseek/deepseek
        prompt_template:
        - id: ecf9052c-dbb4-44db-be2f-7a55d70f00c6
          role: system
          text: 你是一个耐心、友好、专业的智能客服助手。请根据用户的问题清晰、简洁地回答。
        - id: 4b87492a-1c94-4de7-b701-ce0ea4230b45
          role: user
          text: '已知信息:{{#context#}}

            用户问题:{{#sys.query#}}

            请根据已知信息回答用户问题。如果已知信息无法回答,请直接根据你的知识回答。如果问题不清晰,可以要求用户提供更多细节。'
        selected: false
        title: LLM
        type: llm
        variables: []
        vision:
          enabled: false
      height: 88
      id: llm
      position:
        x: 2
        y: 476
      positionAbsolute:
        x: 2
        y: 476
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 243
    - data:
        answer: 好的,正在为您转接人工客服,请稍候。
        desc: ''
        selected: false
        title: 直接回复
        type: answer
        variables: []
      height: 116
      id: answer
      position:
        x: 653
        y: 368.83347095566387
      positionAbsolute:
        x: 653
        y: 368.83347095566387
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 243
    - data:
        dataset_ids:
        - 2bf8fe54-cc73-4864-8e9f-215a33851a65
        desc: ''
        multiple_retrieval_config:
          reranking_enable: false
          reranking_mode: reranking_model
          reranking_model:
            model: gte-rerank
            provider: langgenius/tongyi/tongyi
          top_k: 4
        query_variable_selector:
        - '1743336922383'
        - sys.query
        retrieval_mode: multiple
        selected: false
        title: 知识检索
        type: knowledge-retrieval
      height: 90
      id: '1743338435028'
      position:
        x: 33.001731872558594
        y: 345
      positionAbsolute:
        x: 33.001731872558594
        y: 345
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 243
    - data:
        cases:
        - case_id: 'true'
          conditions:
          - comparison_operator: contains
            id: 1805b115-dbc7-4a7b-be65-2347689352af
            value: 转人工
            varType: string
            variable_selector:
            - sys
            - query
          - comparison_operator: contains
            id: b42d745c-2dac-44af-8124-91e180f509ea
            value: 投诉
            varType: string
            variable_selector:
            - sys
            - query
          - comparison_operator: contains
            id: bf338760-f593-425e-b498-2ff8adffa379
            value: 人工
            varType: string
            variable_selector:
            - sys
            - query
          id: 'true'
          logical_operator: or
        desc: ''
        selected: false
        title: 条件判断
        type: if-else
      height: 176
      id: '1743339673106'
      position:
        x: 359
        y: 345
      positionAbsolute:
        x: 359
        y: 345
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 243
    - data:
        answer: '{{#llm.text#}}'
        desc: ''
        selected: false
        title: 直接回复 2
        type: answer
        variables: []
      height: 103
      id: '1743339743311'
      position:
        x: 640
        y: 527
      positionAbsolute:
        x: 640
        y: 527
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 243
    viewport:
      x: 389.064537989466
      y: 91.59957683601215
      zoom: 0.8572439793551117