app:
  description: 填收件人／主旨／要點，AI 擴寫成完整信件並直接用 Gmail 寄出。
  icon: 📧
  icon_background: '#FDE68A'
  icon_type: emoji
  mode: workflow
  name: AI 郵件助手（Gmail 寄送）
  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
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/dify-gmail:0.2.6@a532c62b7ba405169a464e251df742c3615aa417c3390edc64cdeeb1875f9fef
    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
      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
      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: 31s-31l
      source: 31s
      sourceHandle: source
      target: 31l
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: tool
      id: 31l-31g
      source: 31l
      sourceHandle: source
      target: 31g
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: tool
        targetType: end
      id: 31g-31e
      source: 31g
      sourceHandle: source
      target: 31e
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        selected: false
        title: 開始
        type: start
        variables:
        - default: ''
          hint: ''
          label: 收件人信箱
          max_length: 120
          options: []
          placeholder: someone@example.com
          required: true
          type: text-input
          variable: to
        - default: ''
          hint: ''
          label: 郵件主旨
          max_length: 120
          options: []
          placeholder: 例：關於下週會議時間確認
          required: true
          type: text-input
          variable: subject
        - default: ''
          hint: ''
          label: 內容要點
          options: []
          placeholder: 用條列或幾句話寫要傳達什麼，LLM 會幫你擴寫成完整信件
          required: true
          type: paragraph
          variable: points
      height: 161
      id: 31s
      position:
        x: 40
        y: 300
      positionAbsolute:
        x: 40
        y: 300
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        context:
          enabled: false
          variable_selector: []
        model:
          completion_params:
            temperature: 0.5
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        prompt_template:
        - id: s31
          role: system
          text: '你是專業商務祕書。依使用者提供的主旨與要點，撰寫一封得體、完整的繁體中文電子郵件內文（不要再寫主旨行）。

            主旨：{{#31s.subject#}}

            要點：

            {{#31s.points#}}


            規則：開頭適當稱呼、正文清楚有禮、結尾署名留空白給使用者填；語氣專業友善，不冗長。只輸出信件內文。'
        - id: u31
          role: user
          text: 請撰寫這封信的內文。
        selected: false
        title: 撰寫郵件內文
        type: llm
        vision:
          enabled: false
      height: 88
      id: 31l
      position:
        x: 360
        y: 300
      positionAbsolute:
        x: 360
        y: 300
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        provider_id: langgenius/dify-gmail/dify-gmail
        provider_name: langgenius/dify-gmail/dify-gmail
        provider_type: builtin
        selected: false
        title: Gmail 寄送
        tool_configurations: {}
        tool_label: Send Gmail Message
        tool_name: send_message
        tool_node_version: '2'
        tool_parameters:
          body:
            type: mixed
            value: '{{#31l.text#}}'
          subject:
            type: mixed
            value: '{{#31s.subject#}}'
          to:
            type: mixed
            value: '{{#31s.to#}}'
        type: tool
      height: 52
      id: 31g
      position:
        x: 660
        y: 300
      positionAbsolute:
        x: 660
        y: 300
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        outputs:
        - value_selector:
          - 31l
          - text
          value_type: string
          variable: email_body
        - value_selector:
          - 31g
          - text
          value_type: string
          variable: send_result
        selected: false
        title: 輸出
        type: end
      height: 114
      id: 31e
      position:
        x: 960
        y: 300
      positionAbsolute:
        x: 960
        y: 300
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    viewport:
      x: 16.879361602253198
      y: 95.1603817868878
      zoom: 0.9325614144891253
  rag_pipeline_variables: []
