更新斗鱼日报Dify工作流并补充粉丝日报路由
1. 基于最新导出的斗鱼日报AI工作流,补充 fans_daily_report 任务类型说明。\n2. 同步更新主LLM和回退LLM的提示词规则,使粉丝向日报与运营版日报在同一工作流内稳定路由。\n3. 重写斗鱼 Dify 接入文档,改为和当前实际工作流结构一致的说明,明确当前推荐使用 task_type 提示词路由而不是图分支。
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
app:
|
||||
description: 斗鱼直播日报与弹幕总结工作流
|
||||
icon: 🎮
|
||||
description: 斗鱼直播日报、弹幕总结与粉丝乐子日报工作流
|
||||
icon: 🤖
|
||||
icon_background: '#FFEAD5'
|
||||
mode: workflow
|
||||
name: 斗鱼日报AI
|
||||
@@ -87,6 +87,29 @@ workflow:
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
- data:
|
||||
isInLoop: false
|
||||
sourceType: llm
|
||||
targetType: llm
|
||||
id: 200000002-fail-branch-17766504655450-target
|
||||
source: '200000002'
|
||||
sourceHandle: fail-branch
|
||||
target: '17766504655450'
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
- data:
|
||||
isInIteration: false
|
||||
isInLoop: false
|
||||
sourceType: llm
|
||||
targetType: end
|
||||
id: 17766504655450-source-1776650579720-target
|
||||
source: '17766504655450'
|
||||
sourceHandle: source
|
||||
target: '1776650579720'
|
||||
targetHandle: target
|
||||
type: custom
|
||||
zIndex: 0
|
||||
nodes:
|
||||
- data:
|
||||
selected: false
|
||||
@@ -102,8 +125,12 @@ workflow:
|
||||
required: true
|
||||
type: paragraph
|
||||
variable: query
|
||||
# task_type 是项目侧与 Dify 工作流之间的核心路由字段:
|
||||
# 1. daily_report:运营版完整日报正文;
|
||||
# 2. danmu_summary:运营版图片上半部分的弹幕总结;
|
||||
# 3. fans_daily_report:单独给粉丝看的欢乐恶搞日报。
|
||||
- default: daily_report
|
||||
hint: daily_report 或 danmu_summary
|
||||
hint: daily_report / danmu_summary / fans_daily_report
|
||||
label: task_type
|
||||
max_length: 255
|
||||
options: []
|
||||
@@ -174,72 +201,106 @@ workflow:
|
||||
required: false
|
||||
type: paragraph
|
||||
variable: max_length
|
||||
height: 420
|
||||
height: 317
|
||||
id: '200000001'
|
||||
position:
|
||||
x: 80
|
||||
y: 210
|
||||
x: 0
|
||||
y: 0
|
||||
positionAbsolute:
|
||||
x: 80
|
||||
y: 210
|
||||
x: 0
|
||||
y: 0
|
||||
selected: false
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 260
|
||||
width: 242
|
||||
- data:
|
||||
context:
|
||||
enabled: false
|
||||
variable_selector: []
|
||||
error_strategy: fail-branch
|
||||
model:
|
||||
completion_params:
|
||||
temperature: 0.3
|
||||
mode: chat
|
||||
name: gpt-5.4
|
||||
name: grok-4
|
||||
provider: langgenius/openai_api_compatible/openai_api_compatible
|
||||
prompt_template:
|
||||
- id: 00000000-0000-0000-0000-000000000001
|
||||
role: system
|
||||
text: |
|
||||
你是「斗鱼直播日报助手」。
|
||||
text: '你是「斗鱼直播日报助手」。
|
||||
|
||||
你会收到 task_type、提示词和结构化弹幕材料。
|
||||
|
||||
|
||||
输出总原则:
|
||||
|
||||
1. 只根据给定材料生成内容,不编造。
|
||||
|
||||
2. 使用中文自然表达,不要输出代码块。
|
||||
|
||||
3. 输出纯文本,不要添加额外前后缀说明。
|
||||
|
||||
4. 严格遵守长度约束:不超过 max_length。
|
||||
|
||||
|
||||
任务路由规则:
|
||||
|
||||
- 当 task_type=danmu_summary:输出“弹幕总结”风格,偏现场氛围、观众情绪与高频梗,不写运营策略。
|
||||
|
||||
- 当 task_type=daily_report:输出“完整日报正文”风格,包含主线、运营观察、热点时段、高频梗等。
|
||||
|
||||
- 当 task_type=fans_daily_report:输出“粉丝向乐子日报”风格,整体要开心、欢乐、带一点整活气质,
|
||||
更像群友复盘直播间名场面;不要写运营分析,不要出现策略、转化、建议等运营词。
|
||||
|
||||
|
||||
若 system_prompt 非空,优先遵循其格式和结构要求。
|
||||
|
||||
'
|
||||
- id: 00000000-0000-0000-0000-000000000002
|
||||
role: user
|
||||
text: |
|
||||
【task_type】
|
||||
text: '【task_type】
|
||||
|
||||
{{#200000001.task_type#}}
|
||||
|
||||
|
||||
【长度限制 max_length】
|
||||
|
||||
{{#200000001.max_length#}}
|
||||
|
||||
|
||||
【system_prompt】
|
||||
|
||||
{{#200000001.system_prompt#}}
|
||||
|
||||
|
||||
【user_prompt】
|
||||
|
||||
{{#200000001.user_prompt#}}
|
||||
|
||||
|
||||
【query(兼容字段)】
|
||||
|
||||
{{#200000001.query#}}
|
||||
|
||||
|
||||
【meta】
|
||||
room_id={{#200000001.room_id#}}, anchor_day={{#200000001.anchor_day#}}, nickname={{#200000001.nickname#}}
|
||||
|
||||
room_id={{#200000001.room_id#}}, anchor_day={{#200000001.anchor_day#}},
|
||||
nickname={{#200000001.nickname#}}
|
||||
|
||||
|
||||
【report_payload_json】
|
||||
|
||||
{{#200000001.report_payload_json#}}
|
||||
|
||||
|
||||
请按上述信息直接产出最终结果。
|
||||
|
||||
如果 task_type=fans_daily_report,请优先保留“现场弹幕感”和“群友整活感”,
|
||||
让输出明显区别于运营版日报。
|
||||
|
||||
'
|
||||
retry_config:
|
||||
max_retries: 3
|
||||
retry_enabled: true
|
||||
@@ -249,14 +310,14 @@ workflow:
|
||||
type: llm
|
||||
vision:
|
||||
enabled: false
|
||||
height: 118
|
||||
height: 154
|
||||
id: '200000002'
|
||||
position:
|
||||
x: 380
|
||||
y: 282
|
||||
x: 342
|
||||
y: 82
|
||||
positionAbsolute:
|
||||
x: 380
|
||||
y: 282
|
||||
x: 342
|
||||
y: 82
|
||||
selected: true
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
@@ -275,17 +336,148 @@ workflow:
|
||||
height: 88
|
||||
id: '200000003'
|
||||
position:
|
||||
x: 682
|
||||
y: 282
|
||||
x: 704
|
||||
y: 89
|
||||
positionAbsolute:
|
||||
x: 682
|
||||
y: 282
|
||||
x: 704
|
||||
y: 89
|
||||
selected: false
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 242
|
||||
- data:
|
||||
context:
|
||||
enabled: false
|
||||
variable_selector: []
|
||||
model:
|
||||
completion_params:
|
||||
temperature: 0.3
|
||||
mode: chat
|
||||
name: gpt-5.4
|
||||
provider: langgenius/openai_api_compatible/openai_api_compatible
|
||||
prompt_template:
|
||||
- id: 00000000-0000-0000-0000-000000000001
|
||||
role: system
|
||||
text: '你是「斗鱼直播日报助手」。
|
||||
|
||||
你会收到 task_type、提示词和结构化弹幕材料。
|
||||
|
||||
|
||||
输出总原则:
|
||||
|
||||
1. 只根据给定材料生成内容,不编造。
|
||||
|
||||
2. 使用中文自然表达,不要输出代码块。
|
||||
|
||||
3. 输出纯文本,不要添加额外前后缀说明。
|
||||
|
||||
4. 严格遵守长度约束:不超过 max_length。
|
||||
|
||||
|
||||
任务路由规则:
|
||||
|
||||
- 当 task_type=danmu_summary:输出“弹幕总结”风格,偏现场氛围、观众情绪与高频梗,不写运营策略。
|
||||
|
||||
- 当 task_type=daily_report:输出“完整日报正文”风格,包含主线、运营观察、热点时段、高频梗等。
|
||||
|
||||
- 当 task_type=fans_daily_report:输出“粉丝向乐子日报”风格,整体要开心、欢乐、带一点整活气质,
|
||||
更像群友复盘直播间名场面;不要写运营分析,不要出现策略、转化、建议等运营词。
|
||||
|
||||
|
||||
若 system_prompt 非空,优先遵循其格式和结构要求。
|
||||
|
||||
'
|
||||
- id: 00000000-0000-0000-0000-000000000002
|
||||
role: user
|
||||
text: '【task_type】
|
||||
|
||||
{{#200000001.task_type#}}
|
||||
|
||||
|
||||
【长度限制 max_length】
|
||||
|
||||
{{#200000001.max_length#}}
|
||||
|
||||
|
||||
【system_prompt】
|
||||
|
||||
{{#200000001.system_prompt#}}
|
||||
|
||||
|
||||
【user_prompt】
|
||||
|
||||
{{#200000001.user_prompt#}}
|
||||
|
||||
|
||||
【query(兼容字段)】
|
||||
|
||||
{{#200000001.query#}}
|
||||
|
||||
|
||||
【meta】
|
||||
|
||||
room_id={{#200000001.room_id#}}, anchor_day={{#200000001.anchor_day#}},
|
||||
nickname={{#200000001.nickname#}}
|
||||
|
||||
|
||||
【report_payload_json】
|
||||
|
||||
{{#200000001.report_payload_json#}}
|
||||
|
||||
|
||||
请按上述信息直接产出最终结果。
|
||||
|
||||
如果 task_type=fans_daily_report,请优先保留“现场弹幕感”和“群友整活感”,
|
||||
让输出明显区别于运营版日报。
|
||||
|
||||
'
|
||||
retry_config:
|
||||
max_retries: 3
|
||||
retry_enabled: true
|
||||
retry_interval: 1000
|
||||
selected: false
|
||||
title: LLM (1)
|
||||
type: llm
|
||||
vision:
|
||||
enabled: false
|
||||
height: 118
|
||||
id: '17766504655450'
|
||||
position:
|
||||
x: 704
|
||||
y: 257
|
||||
positionAbsolute:
|
||||
x: 704
|
||||
y: 257
|
||||
selected: false
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 242
|
||||
- data:
|
||||
outputs:
|
||||
- value_selector:
|
||||
- '17766504655450'
|
||||
- text
|
||||
value_type: string
|
||||
variable: text
|
||||
selected: false
|
||||
title: 输出 2
|
||||
type: end
|
||||
height: 88
|
||||
id: '1776650579720'
|
||||
position:
|
||||
x: 1046
|
||||
y: 272
|
||||
positionAbsolute:
|
||||
x: 1046
|
||||
y: 272
|
||||
sourcePosition: right
|
||||
targetPosition: left
|
||||
type: custom
|
||||
width: 242
|
||||
viewport:
|
||||
x: 60
|
||||
y: 40
|
||||
zoom: 1
|
||||
x: 231.0000000000001
|
||||
y: 237
|
||||
zoom: 0.7
|
||||
rag_pipeline_variables: []
|
||||
|
||||
Reference in New Issue
Block a user