{
  "nodes": [
    {
      "nodeId": "448745",
      "name": "流程开始",
      "intro": "",
      "avatar": "core/workflow/template/workflowStart",
      "flowNodeType": "workflowStart",
      "position": {
        "x": 0,
        "y": 200
      },
      "version": "481",
      "inputs": [
        {
          "key": "userChatInput",
          "label": "workflow:user_question",
          "valueType": "string",
          "required": true,
          "selectedType": "reference",
          "renderTypeList": [
            "agentGenerated",
            "reference",
            "textarea"
          ],
          "debugLabel": "",
          "toolDescription": "用户问题",
          "defaultToAgentGenerated": true
        }
      ],
      "outputs": [
        {
          "id": "userChatInput",
          "key": "userChatInput",
          "type": "static",
          "valueType": "string",
          "label": "common:core.module.input.label.user question",
          "description": ""
        }
      ]
    },
    {
      "nodeId": "classify",
      "name": "内容分类",
      "intro": "",
      "avatar": "core/workflow/template/questionClassify",
      "flowNodeType": "classifyQuestion",
      "position": {
        "x": 650,
        "y": 200
      },
      "inputs": [
        {
          "key": "model",
          "label": "model",
          "valueType": "string",
          "renderTypeList": [
            "selectLLMModel"
          ],
          "selectedType": "selectLLMModel",
          "value": "qwen3.8-flash"
        },
        {
          "key": "systemPrompt",
          "label": "systemPrompt",
          "valueType": "string",
          "renderTypeList": [
            "textarea"
          ],
          "selectedType": "textarea",
          "value": "每次只审核一条文本。安全：客观活动通知和真实功能介绍。敏感可改：无来源的第一、100%、绝对化宣传或夸大效果。违规：虚构认证、伪造数据、冒充官方。按原文分类。"
        },
        {
          "key": "history",
          "label": "history",
          "valueType": "chatHistory",
          "renderTypeList": [
            "numberInput"
          ],
          "selectedType": "numberInput",
          "value": 0
        },
        {
          "key": "userChatInput",
          "label": "userChatInput",
          "valueType": "string",
          "renderTypeList": [
            "reference"
          ],
          "selectedType": "reference",
          "value": [
            "448745",
            "userChatInput"
          ]
        },
        {
          "key": "agents",
          "label": "agents",
          "valueType": "any",
          "renderTypeList": [
            "custom"
          ],
          "selectedType": "custom",
          "value": [
            {
              "key": "safe",
              "value": "安全"
            },
            {
              "key": "rewrite",
              "value": "敏感可改"
            },
            {
              "key": "reject",
              "value": "违规"
            }
          ]
        }
      ],
      "outputs": [
        {
          "id": "cqResult",
          "key": "cqResult",
          "type": "static",
          "valueType": "string",
          "label": "分类结果"
        }
      ],
      "version": "4.9.2"
    },
    {
      "nodeId": "safe",
      "name": "安全内容",
      "intro": "",
      "avatar": "core/workflow/template/reply",
      "flowNodeType": "answerNode",
      "position": {
        "x": 1500,
        "y": -300
      },
      "inputs": [
        {
          "key": "text",
          "label": "回复内容",
          "valueType": "any",
          "renderTypeList": [
            "reference"
          ],
          "selectedType": "reference",
          "value": [
            "448745",
            "userChatInput"
          ]
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "rewrite",
      "name": "改写建议",
      "intro": "AI 大模型对话",
      "avatar": "core/workflow/template/aiChat",
      "flowNodeType": "chatNode",
      "showStatus": true,
      "position": {
        "x": 1500,
        "y": 100
      },
      "version": "4.9.7",
      "inputs": [
        {
          "key": "temperature",
          "label": "",
          "valueType": "number",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "maxToken",
          "label": "",
          "valueType": "number",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "isResponseAnswerText",
          "label": "",
          "valueType": "boolean",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "value": true,
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatQuoteRole",
          "label": "",
          "valueType": "string",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "value": "system",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "quoteTemplate",
          "label": "",
          "valueType": "string",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "quotePrompt",
          "label": "",
          "valueType": "string",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatVision",
          "label": "",
          "valueType": "boolean",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "value": true,
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatAudio",
          "label": "",
          "valueType": "boolean",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "value": false,
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatVideo",
          "label": "",
          "valueType": "boolean",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "value": false,
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatExtractFiles",
          "label": "",
          "valueType": "boolean",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "value": true,
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatReasoning",
          "label": "",
          "valueType": "boolean",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "value": true,
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatReasoningEffort",
          "label": "",
          "valueType": "string",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatTopP",
          "label": "",
          "valueType": "number",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatStopSign",
          "label": "",
          "valueType": "string",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatResponseFormat",
          "label": "",
          "valueType": "string",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "aiChatJsonSchema",
          "label": "",
          "valueType": "string",
          "selectedType": "hidden",
          "renderTypeList": [
            "hidden"
          ],
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "systemPrompt",
          "label": "common:core.ai.Prompt",
          "valueType": "string",
          "isRichText": true,
          "placeholder": "common:core.app.tip.chatNodeSystemPromptTip",
          "maxLength": 100000,
          "selectedType": "textarea",
          "renderTypeList": [
            "agentGenerated",
            "textarea",
            "reference"
          ],
          "value": "将待审核文本改为可核验的中性表达。删除无来源排名、百分比、资质和效果承诺，保留用户提供的真实信息。信息不足时写明待核实项。只输出简短改写建议。",
          "description": "common:core.app.tip.systemPromptTip",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "history",
          "label": "common:core.module.input.label.chat history",
          "valueType": "chatHistory",
          "required": true,
          "max": 50,
          "min": 0,
          "selectedType": "numberInput",
          "renderTypeList": [
            "agentGenerated",
            "numberInput",
            "reference"
          ],
          "value": 0,
          "description": "workflow:max_dialog_rounds",
          "debugLabel": "",
          "toolDescription": ""
        },
        {
          "key": "quoteQA",
          "label": "",
          "valueType": "datasetQuote",
          "selectedType": "settingDatasetQuotePrompt",
          "renderTypeList": [
            "settingDatasetQuotePrompt"
          ],
          "debugLabel": "知识库引用",
          "description": "",
          "toolDescription": ""
        },
        {
          "key": "fileUrlList",
          "label": "app:workflow.user_file_input",
          "valueType": "arrayString",
          "selectedType": "reference",
          "renderTypeList": [
            "agentGenerated",
            "reference",
            "JSONEditor"
          ],
          "debugLabel": "文件链接",
          "description": "app:workflow.user_file_input_desc",
          "defaultToAgentGenerated": true,
          "toolDescription": ""
        },
        {
          "key": "userChatInput",
          "label": "workflow:user_question",
          "valueType": "string",
          "required": true,
          "selectedType": "reference",
          "renderTypeList": [
            "agentGenerated",
            "reference",
            "textarea"
          ],
          "value": [
            "448745",
            "userChatInput"
          ],
          "toolDescription": "user question",
          "defaultToAgentGenerated": true,
          "debugLabel": ""
        },
        {
          "key": "model",
          "label": "common:core.module.input.label.aiModel",
          "valueType": "string",
          "selectedType": "settingLLMModel",
          "renderTypeList": [
            "settingLLMModel",
            "reference"
          ],
          "value": "qwen3.8-flash",
          "debugLabel": "",
          "toolDescription": ""
        }
      ],
      "outputs": [
        {
          "id": "history",
          "key": "history",
          "type": "static",
          "valueType": "chatHistory",
          "valueDesc": "{\n  obj: System | Human | AI;\n  value: string;\n}[]",
          "label": "common:core.module.output.label.New context",
          "description": "将本次回复内容拼接上历史记录，作为新的上下文返回",
          "required": true
        },
        {
          "id": "answerText",
          "key": "answerText",
          "type": "static",
          "valueType": "string",
          "valueDesc": "",
          "label": "common:core.module.output.label.Ai response content",
          "description": "将在 stream 回复完毕后触发",
          "required": true
        },
        {
          "id": "reasoningText",
          "key": "reasoningText",
          "type": "static",
          "valueType": "string",
          "valueDesc": "",
          "label": "workflow:reasoning_content",
          "description": "",
          "required": false,
          "invalid": false
        },
        {
          "id": "system_error_text",
          "key": "system_error_text",
          "type": "error",
          "valueType": "string",
          "valueDesc": "",
          "label": "workflow:error_text",
          "description": ""
        }
      ],
      "catchError": false
    },
    {
      "nodeId": "reject",
      "name": "禁止发布",
      "intro": "",
      "avatar": "core/workflow/template/reply",
      "flowNodeType": "answerNode",
      "position": {
        "x": 1500,
        "y": 1600
      },
      "inputs": [
        {
          "key": "text",
          "label": "回复内容",
          "valueType": "any",
          "renderTypeList": [
            "textarea"
          ],
          "selectedType": "textarea",
          "value": "审核未通过：内容涉及虚构认证或伪造信息，请提供真实依据后重新提交。"
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "confirm",
      "name": "人工确认",
      "intro": "",
      "avatar": "core/workflow/template/userSelect",
      "flowNodeType": "userSelect",
      "position": {
        "x": 2400,
        "y": 100
      },
      "inputs": [
        {
          "key": "description",
          "label": "description",
          "valueType": "string",
          "renderTypeList": [
            "textarea"
          ],
          "selectedType": "textarea",
          "value": "请核对上方改写建议。接受后返回确认结果，放弃后结束本次审核。"
        },
        {
          "key": "userSelectOptions",
          "label": "userSelectOptions",
          "valueType": "any",
          "renderTypeList": [
            "custom"
          ],
          "selectedType": "custom",
          "value": [
            {
              "key": "accept",
              "value": "接受改写"
            },
            {
              "key": "cancel",
              "value": "放弃"
            }
          ]
        }
      ],
      "outputs": [
        {
          "id": "selectResult",
          "key": "selectResult",
          "type": "static",
          "valueType": "string",
          "label": "选择结果"
        }
      ]
    },
    {
      "nodeId": "accepted",
      "name": "确认结果",
      "intro": "",
      "avatar": "core/workflow/template/reply",
      "flowNodeType": "answerNode",
      "position": {
        "x": 3100,
        "y": 0
      },
      "inputs": [
        {
          "key": "text",
          "label": "回复内容",
          "valueType": "any",
          "renderTypeList": [
            "textarea"
          ],
          "selectedType": "textarea",
          "value": "已接受改写。请由发布负责人核对事实后发布。"
        }
      ],
      "outputs": []
    },
    {
      "nodeId": "cancelled",
      "name": "结束审核",
      "intro": "",
      "avatar": "core/workflow/template/reply",
      "flowNodeType": "answerNode",
      "position": {
        "x": 3100,
        "y": 650
      },
      "inputs": [
        {
          "key": "text",
          "label": "回复内容",
          "valueType": "any",
          "renderTypeList": [
            "textarea"
          ],
          "selectedType": "textarea",
          "value": "已放弃本次改写，审核结束。"
        }
      ],
      "outputs": []
    }
  ],
  "edges": [
    {
      "source": "448745",
      "target": "classify",
      "sourceHandle": "448745-source-right",
      "targetHandle": "classify-target-left"
    },
    {
      "source": "classify",
      "target": "safe",
      "sourceHandle": "classify-source-safe",
      "targetHandle": "safe-target-left"
    },
    {
      "source": "classify",
      "target": "rewrite",
      "sourceHandle": "classify-source-rewrite",
      "targetHandle": "rewrite-target-left"
    },
    {
      "source": "classify",
      "target": "reject",
      "sourceHandle": "classify-source-reject",
      "targetHandle": "reject-target-left"
    },
    {
      "source": "rewrite",
      "target": "confirm",
      "sourceHandle": "rewrite-source-right",
      "targetHandle": "confirm-target-left"
    },
    {
      "source": "confirm",
      "target": "accepted",
      "sourceHandle": "confirm-source-accept",
      "targetHandle": "accepted-target-left"
    },
    {
      "source": "confirm",
      "target": "cancelled",
      "sourceHandle": "confirm-source-cancel",
      "targetHandle": "cancelled-target-left"
    }
  ],
  "chatConfig": {
    "welcomeText": "每次提交一条待审核文本。改写建议需要人工确认。",
    "welcomeConfig": {
      "welcomeText": "每次提交一条待审核文本。改写建议需要人工确认。"
    },
    "variables": [],
    "questionGuide": {
      "open": false
    },
    "ttsConfig": {
      "type": "web"
    },
    "whisperConfig": {
      "open": false,
      "autoSend": false,
      "autoTTSResponse": false
    },
    "scheduledTriggerConfig": {
      "cronString": "",
      "timezone": "Asia/Shanghai",
      "defaultPrompt": ""
    },
    "entryPoints": []
  },
  "type": "advanced",
  "name": "内容审核与自动改写",
  "intro": ""
}
