创建时间: 2026-06-29 15:11 | 步骤: 15 个
根据用户输入的科普主题,通过意图解析、知识检索提取、视觉分镜规划与提示词构建,链式生成画风一致的封面及多分镜科普图文,最终组装输出包含一句话说明、优缺点的结构化结果。
{
"workflow_id": "science_popularization_image_text_workflow",
"input": {
"shotLevel": {
"field_name": "shotLevel",
"default": "simple",
"description": "画面复杂度,可选值:simple(简单)、medium(中等)、complex(复杂)",
"example": "simple",
"required": false,
"type": "string"
},
"prompt": {
"field_name": "prompt",
"default": "",
"description": "科普主题原文",
"example": "汽车常见悬挂系列",
"required": true,
"type": "string"
},
"aspect_ratio": {
"field_name": "aspect_ratio",
"default": "3:4",
"description": "成品图像宽高比例,可选枚举:1:1、3:4、4:3、16:9、9:16",
"example": "4:3",
"required": false,
"type": "string"
}
},
"steps": [
{
"id": "step_1_intent_analyzer",
"point_code": "",
"result": [],
"backend_type": "prompt_api",
"api_code": "intent_analyzer",
"status": "PENDING",
"name": "科普主题意图深度解析",
"action": "run",
"params": {
"shotLevel": "{{@input.shotLevel}}",
"prompt": "{{@input.prompt}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
}
},
{
"point_code": "",
"id": "step_2_generate_keywords",
"result": [],
"backend_type": "prompt_api",
"api_code": "generate_keywords",
"status": "PENDING",
"name": "科普检索关键词生成",
"action": "run",
"params": {
"topic": "{{@input.prompt}}",
"sub_topics": "{{@step_1_intent_analyzer.result.data.sub_topics}}"
},
"depends_on": [
"step_1_intent_analyzer"
]
},
{
"point_code": "1",
"id": "step_3_search_news",
"result": [],
"backend_type": "sys_api",
"api_code": "3395",
"status": "PENDING",
"name": "搜索科普资讯",
"action": "run",
"params": {
"news": "{{@step_2_generate_keywords.result.data.result}}"
},
"depends_on": [
"step_2_generate_keywords"
]
},
{
"point_code": "",
"id": "step_4_knowledge_extract",
"result": [],
"backend_type": "prompt_api",
"api_code": "knowledge_extract",
"status": "PENDING",
"name": "科普知识结构化提取",
"action": "run",
"params": {
"sub_topics": "{{@step_1_intent_analyzer.result.data.sub_topics}}",
"search_results": "{{@step_3_search_news.result.data.data}}"
},
"depends_on": [
"step_3_search_news",
"step_1_intent_analyzer"
]
},
{
"point_code": "",
"id": "step_5_storyboard_planner",
"result": [],
"backend_type": "prompt_api",
"api_code": "storyboard_planner",
"status": "PENDING",
"name": "科普分镜构图规划",
"action": "run",
"params": {
"sub_topics": "{{@step_1_intent_analyzer.result.data.sub_topics}}",
"shotLevel": "{{@input.shotLevel}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
},
"depends_on": [
"step_1_intent_analyzer"
]
},
{
"point_code": "",
"id": "step_6_prompt_builder_vision",
"result": [],
"backend_type": "prompt_api",
"api_code": "prompt_builder_vision",
"status": "PENDING",
"name": "科普图文生图提示词构建",
"action": "run",
"params": {
"knowledge_facts": "{{@step_4_knowledge_extract.result.data.knowledge_facts}}",
"style_base": "{{@step_5_storyboard_planner.result.data.style_base}}",
"visual_layouts": "{{@step_5_storyboard_planner.result.data.visual_layouts}}"
},
"depends_on": [
"step_5_storyboard_planner",
"step_4_knowledge_extract"
]
},
{
"point_code": "1",
"id": "step_7_generate_cover",
"result": [],
"backend_type": "sys_api",
"api_code": "3373",
"status": "PENDING",
"name": "生成封面图",
"action": "run",
"params": {
"prompt": "{{@step_6_prompt_builder_vision.result.data.image_prompts.1.positive_prompt}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
},
"depends_on": [
"step_6_prompt_builder_vision"
]
},
{
"id": "step_8_poll_cover",
"point_code": "",
"result": [],
"backend_type": "sys_api",
"api_code": "polling",
"status": "PENDING",
"name": "轮询封面图状态",
"action": "run",
"params": {
"result_url": "{{@step_7_generate_cover.result.data.result_url}}"
},
"depends_on": [
"step_7_generate_cover"
],
"polling": {
"interval_seconds": 5,
"timeout_seconds": 600,
"success_condition": "{{@step_8_poll_cover.result.data.task_status}} === 'SUCCEEDED'"
}
},
{
"point_code": "1",
"id": "step_9_generate_shot1",
"result": [],
"backend_type": "sys_api",
"api_code": "3373",
"status": "PENDING",
"name": "生成分镜图1",
"action": "run",
"params": {
"referImages": [
"{{@step_8_poll_cover.result.data.result_url}}"
],
"prompt": "{{@step_6_prompt_builder_vision.result.data.image_prompts.2.positive_prompt}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
},
"depends_on": [
"step_8_poll_cover",
"step_6_prompt_builder_vision"
]
},
{
"id": "step_10_poll_shot1",
"point_code": "",
"result": [],
"backend_type": "sys_api",
"api_code": "polling",
"status": "PENDING",
"name": "轮询分镜图1状态",
"action": "run",
"params": {
"result_url": "{{@step_9_generate_shot1.result.data.result_url}}"
},
"depends_on": [
"step_9_generate_shot1"
],
"polling": {
"interval_seconds": 5,
"timeout_seconds": 600,
"success_condition": "{{@step_10_poll_shot1.result.data.task_status}} === 'SUCCEEDED'"
}
},
{
"point_code": "1",
"id": "step_11_generate_shot2",
"result": [],
"backend_type": "sys_api",
"api_code": "3373",
"status": "PENDING",
"name": "生成分镜图2",
"action": "run",
"params": {
"referImages": [
"{{@step_8_poll_cover.result.data.result_url}}",
"{{@step_10_poll_shot1.result.data.result_url}}"
],
"prompt": "{{@step_6_prompt_builder_vision.result.data.image_prompts.3.positive_prompt}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
},
"depends_on": [
"step_10_poll_shot1",
"step_8_poll_cover",
"step_6_prompt_builder_vision"
]
},
{
"id": "step_12_poll_shot2",
"point_code": "",
"result": [],
"backend_type": "sys_api",
"api_code": "polling",
"status": "PENDING",
"name": "轮询分镜图2状态",
"action": "run",
"params": {
"result_url": "{{@step_11_generate_shot2.result.data.result_url}}"
},
"depends_on": [
"step_11_generate_shot2"
],
"polling": {
"interval_seconds": 5,
"timeout_seconds": 600,
"success_condition": "{{@step_12_poll_shot2.result.data.task_status}} === 'SUCCEEDED'"
}
},
{
"point_code": "1",
"id": "step_13_generate_shot3",
"result": [],
"backend_type": "sys_api",
"api_code": "3373",
"status": "PENDING",
"name": "生成分镜图3",
"action": "run",
"params": {
"referImages": [
"{{@step_8_poll_cover.result.data.result_url}}",
"{{@step_12_poll_shot2.result.data.result_url}}"
],
"prompt": "{{@step_6_prompt_builder_vision.result.data.image_prompts.4.positive_prompt}}",
"aspect_ratio": "{{@input.aspect_ratio}}"
},
"depends_on": [
"step_12_poll_shot2",
"step_8_poll_cover",
"step_6_prompt_builder_vision"
]
},
{
"id": "step_14_poll_shot3",
"point_code": "",
"result": [],
"backend_type": "sys_api",
"api_code": "polling",
"status": "PENDING",
"name": "轮询分镜图3状态",
"action": "run",
"params": {
"result_url": "{{@step_13_generate_shot3.result.data.result_url}}"
},
"depends_on": [
"step_13_generate_shot3"
],
"polling": {
"interval_seconds": 5,
"timeout_seconds": 600,
"success_condition": "{{@step_14_poll_shot3.result.data.task_status}} === 'SUCCEEDED'"
}
},
{
"point_code": "",
"id": "step_15_content_assembler",
"result": [],
"backend_type": "prompt_api",
"api_code": "content_assembler",
"status": "PENDING",
"name": "科普图文结构化组装",
"action": "run",
"params": {
"core_intent": "{{@input.prompt}}",
"knowledge_facts": "{{@step_4_knowledge_extract.result.data.knowledge_facts}}",
"image_urls": {
"shot_1": "{{@step_10_poll_shot1.result.data.result_url}}",
"shot_2": "{{@step_12_poll_shot2.result.data.result_url}}",
"cover": "{{@step_8_poll_cover.result.data.result_url}}",
"shot_3": "{{@step_14_poll_shot3.result.data.result_url}}"
}
},
"depends_on": [
"step_8_poll_cover",
"step_10_poll_shot1",
"step_12_poll_shot2",
"step_14_poll_shot3",
"step_4_knowledge_extract"
]
}
],
"output": {
"final_result_set": {
"field_name": "final_result_set",
"description": "最终结构化图文结果集,包含主题、封面及各分镜图文详情",
"value": "{{@step_15_content_assembler.result.data.final_result_set}}",
"type": "object"
}
}
}