app:
  description: 小売・流通向けの商品説明を多言語へ翻訳し、EC向けに自然で魅力的な表現へ校正・整形して出力するワークフロー
  icon: 🛍️
  icon_background: '#FFEAD5'
  mode: workflow
  name: 商品説明 多言語翻訳・校正
  use_icon_as_answer_icon: false
kind: app
version: 0.6.0
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      image:
        enabled: false
    opening_statement: ''
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
  graph:
    edges:
    - data:
        sourceType: start
        targetType: llm
      id: start-to-llm1
      source: start
      target: llm1
    - data:
        sourceType: llm
        targetType: end
      id: llm1-to-end
      source: llm1
      target: end
    nodes:
    - data:
        title: 開始
        type: start
        variables:
        - label: query
          max_length: 2048
          options: []
          required: true
          type: paragraph
          variable: query
      height: 90
      id: start
      position:
        x: 80
        y: 282
      type: custom
      width: 244
    - data:
        title: 翻訳と校正
        type: llm
        model:
          provider: openai
          name: gpt-5-mini
          mode: chat
          completion_params:
            temperature: 0.6
        prompt_template:
        - role: system
          text: "You are an expert e-commerce translator and copy editor specialized\
            \ in retail product listings.\nTask:\n- Translate the provided product\
            \ description into the target languages requested by the user.\n- For\
            \ each target language, produce polished, natural, and marketplace-optimized\
            \ copy suited for EC listings.\n- Adapt units, measurements, and terms\
            \ to the locale. Use persuasive but accurate language and a customer-friendly\
            \ tone.\nOutput format (RETURN ONLY VALID JSON matching this structure):\n\
            {\n  \"languages\": {\n    \"<language_code>\": {\n      \"title\": \"\
            <SEO-friendly short title>\",\n      \"short_description\": \"<1-2 sentence\
            \ concise product summary>\",\n      \"long_description\": \"<detailed\
            \ product description suitable for product page>\",\n      \"bullets\"\
            : [\"<key feature 1>\", \"<key feature 2>\", \"...\"],\n      \"seo_keywords\"\
            : \"<comma-separated keywords>\"\n    }\n  },\n  \"notes\": \"<brief summary\
            \ of major edits and localization choices>\"\n}\nRules:\n- Detect target\
            \ languages from the user's input. If the user does not explicitly specify\
            \ target languages, produce both English (en) and Simplified Chinese (zh).\n\
            - Only include languages requested (or the defaults). Do not add extra\
            \ languages.\n- Ensure JSON is valid. Use language codes as keys (e.g.,\
            \ en, zh, ja).\n- Keep each text field concise and suitable for e-commerce\
            \ presentation.\n\n\n---\n\n【最終出力フォーマット (この指示が最優先)】\n最終出力は **読みやすい日本語の\
            \ Markdown** で返してください。JSON\n配列・オブジェクトをそのまま出力してはいけません。\n- 見出し (## / ###)\
            \ でセクションを区切る\n- リスト (- / 1.) や表 (| ... |) で構造化\n- 各項目の意図や根拠が分かるよう短い説明文を添える\n\
            - 営業デモで顧客に直接見せられる体裁にする\n\n(構造化されたデータ項目を内部で扱うのは構いませんが、出力時に Markdown\nに変換してください。)"
        - role: user
          text: '{{#start.query#}}'
        vision:
          enabled: false
        memory: null
        context:
          enabled: false
      height: 90
      id: llm1
      position:
        x: 380
        y: 282
      type: custom
      width: 244
    - data:
        title: 終了
        type: end
        outputs:
        - value_selector:
          - llm1
          - text
          variable: result
      height: 90
      id: end
      position:
        x: 680
        y: 282
      type: custom
      width: 244
  hash: null
