app:
  description: 把多家雜亂報價原文抽取成比較表並給採購建議。
  icon: 📊
  icon_background: '#E0F2FE'
  icon_type: emoji
  mode: workflow
  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
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      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: ''
    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:
        isInIteration: false
        isInLoop: false
        sourceType: start
        targetType: llm
      id: 13s-13l
      source: 13s
      sourceHandle: source
      target: 13l
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: end
      id: 13l-13e
      source: 13l
      sourceHandle: source
      target: 13e
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        selected: false
        title: 開始
        type: start
        variables:
        - default: ''
          hint: ''
          label: 採購品項/規格
          max_length: 80
          options: []
          placeholder: 例：304 不鏽鋼板 1.0mm x 4x8 尺，500 張
          required: true
          type: text-input
          variable: item
        - default: ''
          hint: ''
          label: 各家報價（原文貼上）
          options: []
          placeholder: 把 email/報價單原文整段貼上，含單價、交期、付款條件、MOQ 等
          required: true
          type: paragraph
          variable: quotes
      height: 135
      id: 13s
      position:
        x: 80
        y: 282
      positionAbsolute:
        x: 80
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        context:
          enabled: false
          variable_selector: []
        model:
          completion_params:
            temperature: 0.2
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        prompt_template:
        - id: sys-13l
          role: system
          text: '你是採購部門的比價分析助理。使用者會貼上同一品項、多家供應商的報價原文（格式雜亂）。請你抽取關鍵欄位並做成可比較的結構化結果，一律使用繁體中文與
            Markdown。


            採購品項：{{#13s.item#}}


            步驟：

            1. 從原文辨識每一家供應商，抽出：單價、幣別、最小訂購量 MOQ、交期、付款條件、運費是否內含、備註。

            2. 以一張 Markdown 表格橫向比較（每列一家供應商）。缺漏欄位填「未提供」，不要捏造。

            3. 換算成相同數量後的『預估總價』，若資訊不足以換算則註明。

            4. 最後給『## 建議』：綜合價格、交期、付款條件，推薦一家並用 2-3 句說明理由，同時提醒需要向供應商釐清的問題。


            各家報價原文：

            {{#13s.quotes#}}'
        - id: usr-13l
          role: user
          text: 請開始比對並給出建議。
        selected: false
        title: LLM
        type: llm
        vision:
          enabled: false
      height: 88
      id: 13l
      position:
        x: 382
        y: 282
      positionAbsolute:
        x: 382
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        outputs:
        - value_selector:
          - 13l
          - text
          value_type: string
          variable: comparison
        selected: false
        title: 輸出
        type: end
      height: 88
      id: 13e
      position:
        x: 684
        y: 282
      positionAbsolute:
        x: 684
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    viewport:
      x: -328.5
      y: 156.59999999999997
      zoom: 0.9
  rag_pipeline_variables: []
