{ "id": "workflow-1769507614568", "name": "xigang", "version": "1.0.0", "nodes": [ { "id": "start-node-default", "type": "start", "name": "start-node-default", "position": { "x": 100, "y": 200 }, "data": { "label": "Start" } }, { "id": "check-outline", "type": "ifElse", "name": "check-outline", "position": { "x": 350, "y": 200 }, "data": { "branches": [ { "id": "branch-0", "label": "存在大纲", "condition": "项目目录中存在大纲文件(outline.md或大纲.md或类似文件)" }, { "id": "branch-1", "label": "不存在大纲", "condition": "项目目录中不存在大纲文件" } ], "outputPorts": 2 } }, { "id": "prompt-add-outline", "type": "prompt", "name": "prompt-add-outline", "position": { "x": 650, "y": 350 }, "data": { "label": "提示新增大纲", "prompt": "请先创建小说大纲文件,然后再使用此助手。\n\n大纲文件应包含:\n- 故事背景设定\n- 主要人物设定\n- 整体剧情结构\n- 主要情节节点\n\n请创建大纲后重新运行。" } }, { "id": "end-no-outline", "type": "end", "name": "end-no-outline", "position": { "x": 1050, "y": 405 }, "data": { "label": "结束" } }, { "id": "check-progress", "type": "ifElse", "name": "check-progress", "position": { "x": 660, "y": 120 }, "data": { "branches": [ { "id": "branch-0", "label": "存在进度文件", "condition": "项目中存在进度文档文件(progress.md或进度.md)" }, { "id": "branch-1", "label": "不存在进度文件", "condition": "项目中不存在进度文档文件" } ], "outputPorts": 2 } }, { "id": "analyze-progress", "type": "subAgent", "name": "analyze-progress", "position": { "x": 975, "y": 210 }, "data": { "description": "分析项目进度并创建进度文件", "prompt": "请执行以下任务:\n\n1. 扫描项目目录中的所有文件\n2. 读取大纲文件,理解整体剧情结构\n3. 检查已存在的章节文件和细纲文件\n4. 对比大纲,确定当前项目已完成到哪个情节节点\n5. 创建或更新进度文件(progress.md),记录:\n - 当前进度位置\n - 已完成的章节/细纲\n - 下一步需要创作的情节节点\n - 整体完成百分比", "model": "sonnet", "outputPorts": 1 } }, { "id": "create-detailed-outline", "type": "subAgent", "name": "create-detailed-outline", "position": { "x": 1275, "y": 210 }, "data": { "description": "创建剧情细纲", "prompt": "请基于大纲和进度文件,创作接下来的剧情细纲:\n\n任务要求:\n1. 读取大纲文件,理解整体设定和剧情走向\n2. 读取进度文件,确定当前创作位置\n3. 读取已有的细纲文件,了解之前的剧情发展\n4. 为接下来的3-5个情节节点创建详细细纲\n\n细纲要求:\n- 符合大纲设定,不偏离主线\n- 与之前细纲保持连贯性,不存在矛盾\n- 剧情有吸引力,包含冲突和转折\n- 人物行为符合其设定\n- 每个细纲包含:场景、人物、事件、冲突、结果\n\n请将细纲写入新的细纲文件中。", "model": "opus", "outputPorts": 1 } }, { "id": "review-and-refine", "type": "subAgent", "name": "review-and-refine", "position": { "x": 1590, "y": 210 }, "data": { "description": "检查并完善大纲和细纲", "prompt": "请执行大纲与细纲的互相检查和完善:\n\n任务步骤:\n1. 读取完整的大纲文件\n2. 读取所有细纲文件(包括刚创建的)\n3. 检查细纲是否符合大纲设定:\n - 人物设定是否一致\n - 世界观设定是否一致\n - 剧情走向是否符合大纲主线\n4. 检查细纲之间是否存在矛盾\n5. 反向检查:细纲中好的设定是否可以补充到大纲中\n6. 生成完善建议\n7. 如果发现需要修改的地方,更新相关文件\n\n输出格式:\n- 检查报告(列出发现的问题)\n- 完善建议\n- 如果确认无误,输出\"细纲检查通过,符合大纲设定\"", "model": "opus", "outputPorts": 1 } }, { "id": "end-node-default", "type": "end", "name": "end-node-default", "position": { "x": 1935, "y": 225 }, "data": { "label": "End" } } ], "connections": [ { "id": "conn-1", "from": "start-node-default", "to": "check-outline", "fromPort": "output", "toPort": "input" }, { "id": "conn-2", "from": "check-outline", "to": "check-progress", "fromPort": "branch-0", "toPort": "input" }, { "id": "conn-3", "from": "check-outline", "to": "prompt-add-outline", "fromPort": "branch-1", "toPort": "input" }, { "id": "conn-4", "from": "prompt-add-outline", "to": "end-no-outline", "fromPort": "output", "toPort": "input" }, { "id": "conn-5", "from": "check-progress", "to": "create-detailed-outline", "fromPort": "branch-0", "toPort": "input" }, { "id": "conn-6", "from": "check-progress", "to": "analyze-progress", "fromPort": "branch-1", "toPort": "input" }, { "id": "conn-7", "from": "analyze-progress", "to": "create-detailed-outline", "fromPort": "output", "toPort": "input" }, { "id": "conn-8", "from": "create-detailed-outline", "to": "review-and-refine", "fromPort": "output", "toPort": "input" }, { "id": "conn-9", "from": "review-and-refine", "to": "end-node-default", "fromPort": "output", "toPort": "input" } ], "createdAt": "2026-01-27T09:53:34.568Z", "updatedAt": "2026-01-27T09:53:34.568Z", "conversationHistory": { "schemaVersion": "1.0.0", "messages": [ { "id": "07765d6b-cfca-4aca-848a-0bd4f9b05c37", "sender": "user", "content": "这是一个小说剧情细分助手,第一步检查是否存在大纲,如果不存在大纲则提示作者新增大纲并退出。如果存在大纲,则检查会否存在进度文档,如果不存在进度文件,则检查所有文件,并确定当前项目在大纲中的进度,新增进度文件,然后进入存在进度文件的流程。如果存在进度文件,则对比项目大纲,进行接下来接下来的剧情的细分,设置接下来的剧情细纲,剧情细纲要求符合大纲设定,和之前的细纲不存在冲突,剧情有吸引力不矛盾。最后检查细纲和大纲,互相补充完善", "timestamp": "2026-01-27T09:52:27.792Z" }, { "id": "bae66f19-83e5-44c5-a6be-113e1f2fe42a", "sender": "ai", "content": "创建小说剧情细分助手工作流,包含大纲检查、进度检查、剧情细分和互相补充完善功能", "timestamp": "2026-01-27T09:52:27.792Z" } ], "currentIteration": 1, "maxIterations": 20, "createdAt": "2026-01-27T09:46:16.577Z", "updatedAt": "2026-01-27T09:52:27.792Z", "sessionId": "6800ea8a-fb73-443f-85dc-2e488bd75464" }, "subAgentFlows": [] }