🤖

translation_workflow

使用吴恩达提出 Agentic Workflow 制作的翻译工具

⬡ 8 节点 ↓ 10 下载 ⚙ workflow ⭐ 100/100 2026-05-28

工作流图谱

YAML 源码

app:
  description: 使用吴恩达提出 Agentic Workflow 制作的翻译工具
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: workflow
  name: translation_workflow
kind: app
version: 0.1.0
workflow:
  features:
    file_upload:
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
    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
        sourceType: start
        targetType: llm
      id: 1721117927142-source-1721117961155-target
      source: '1721117927142'
      sourceHandle: source
      target: '1721117961155'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: if-else
      id: 1721117961155-source-1721118545228-target
      source: '1721117961155'
      sourceHandle: source
      target: '1721118545228'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1721118545228-true-1721118559807-target
      source: '1721118545228'
      sourceHandle: 'true'
      target: '1721118559807'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1721118545228-false-1721118668192-target
      source: '1721118545228'
      sourceHandle: 'false'
      target: '1721118668192'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 1721118559807-source-1721118847307-target
      selected: false
      source: '1721118559807'
      sourceHandle: source
      target: '1721118847307'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 1721118668192-source-1721118847307-target
      selected: false
      source: '1721118668192'
      sourceHandle: source
      target: '1721118847307'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: variable-aggregator
        targetType: llm
      id: 1721118847307-source-1721118907775-target
      selected: false
      source: '1721118847307'
      sourceHandle: source
      target: '1721118907775'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: end
      id: 1721118907775-source-1721119092752-target
      selected: false
      source: '1721118907775'
      sourceHandle: source
      target: '1721119092752'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: 开始
        type: start
        variables:
        - label: target_lang
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: target_lang
        - label: source_text
          max_length: 50000
          options: []
          required: true
          type: paragraph
          variable: source_text
        - label: source_lang
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: source_lang
        - label: country
          max_length: 48
          options: []
          required: false
          type: text-input
          variable: country
      height: 168
      id: '1721117927142'
      position:
        x: 30
        y: 284
      positionAbsolute:
        x: 30
        y: 284
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        model:
          completion_params:
            temperature: 1
          mode: chat
          name: deepseek-chat
          provider: deepseek
        prompt_template:
        - id: 435bb086-612d-4abd-b8da-f47951aa07bf
          role: system
          text: 'You are an expert linguist, specializing in translation from {{#1721117927142.source_text#}}
            to {{#1721117927142.target_lang#}}





            '
        - id: d8e0d38d-a194-4cf5-a58e-1389bb60ae5b
          role: user
          text: "This is an {{#1721117927142.source_lang#}} to {{#1721117927142.target_lang#}}\
            \ translation, please provide the {{#1721117927142.target_lang#}} translation\
            \ for this text. \nDo not provide any explanations or text apart from\
            \ the translation.\n\n{{#1721117927142.source_text#}}\n"
        selected: false
        title: TRANSLATION
        type: llm
        variables: []
        vision:
          enabled: false
      height: 98
      id: '1721117961155'
      position:
        x: 334
        y: 284
      positionAbsolute:
        x: 334
        y: 284
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        cases:
        - case_id: 'true'
          conditions:
          - comparison_operator: empty
            id: dceacba0-86e7-4953-be84-50e30f163f22
            value: ''
            varType: string
            variable_selector:
            - '1721117927142'
            - country
          id: 'true'
          logical_operator: and
        desc: ''
        selected: false
        title: COUNTRY IS NULL
        type: if-else
      height: 126
      id: '1721118545228'
      position:
        x: 638
        y: 284
      positionAbsolute:
        x: 638
        y: 284
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        model:
          completion_params:
            temperature: 1
          mode: chat
          name: deepseek-chat
          provider: deepseek
        prompt_template:
        - id: dd43a177-3aad-4995-9dfc-dbc49e01e929
          role: system
          text: "Your task is to carefully read a source text and a translation from\
            \ {{#1721117927142.source_lang#}} to {{#1721117927142.target_lang#}},\
            \ and then give constructive criticisms and helpful suggestions to improve\
            \ the translation. \\\n\n\nThe source text and initial translation, delimited\
            \ by XML tags <SOURCE_TEXT></SOURCE_TEXT> and <TRANSLATION></TRANSLATION>,\
            \ are as follows:\n<SOURCE_TEXT>\n{{#1721117927142.source_text#}}\n</SOURCE_TEXT>\n\
            <TRANSLATION>\n{{#1721117961155.text#}}\n</TRANSLATION>\nWhen writing\
            \ suggestions, pay attention to whether there are ways to improve the\
            \ translation's \n(i) accuracy (by correcting errors of addition, mistranslation,\
            \ omission, or untranslated text),\n(ii) fluency (by applying {{#1721117927142.target_lang#}}\
            \ grammar, spelling and punctuation rules, and ensuring there are no unnecessary\
            \ repetitions),\n\n(iii) style (by ensuring the translations reflect the\
            \ style of the source text and take into account any cultural context),\n\
            (iv) terminology (by ensuring terminology use is consistent and reflects\
            \ the source text domain; and by only ensuring you use equivalent idioms\
            \ {{#1721117927142.target_lang#}}).\nWrite a list of specific, helpful\
            \ and constructive suggestions for improving the translation.\nEach suggestion\
            \ should address one specific part of the translation.\nOutput only the\
            \ suggestions and nothing else."
        selected: false
        title: EXPERT_SUGGESTIONS
        type: llm
        variables: []
        vision:
          enabled: false
      height: 98
      id: '1721118559807'
      position:
        x: 942
        y: 284
      positionAbsolute:
        x: 942
        y: 284
      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: deepseek-chat
          provider: deepseek
        prompt_template:
        - id: 425fe1c4-0719-499e-9b33-939444aabc8e
          role: system
          text: "Your task is to carefully read a source text and a translation from\
            \ {{#1721117927142.source_lang#}} to {{#1721117927142.target_lang#}},\
            \ and then give constructive criticism and helpful suggestions to improve\
            \ the translation. \nThe final style and tone of the translation should\
            \ match the style of {{#1721117927142.target_lang#}} colloquially spoken\
            \ in {{#1721117927142.country#}}.\n\nThe source text and initial translation,\
            \ delimited by XML tags <SOURCE_TEXT></SOURCE_TEXT> and <TRANSLATION></TRANSLATION>,\
            \ are as follows:\n<SOURCE_TEXT>\n{{#1721117927142.source_text#}}\n</SOURCE_TEXT>\n\
            <TRANSLATION>\n{{#1721117961155.text#}}\n</TRANSLATION>\nWhen writing\
            \ suggestions, pay attention to whether there are ways to improve the\
            \ translation's \n(i) accuracy (by correcting errors of addition, mistranslation,\
            \ omission, or untranslated text),\n(ii) fluency (by applying {{#1721117927142...(过长已截断)