{ "id": "workflow-1769511490193", "name": "dagang", "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-settings", "type": "subAgent", "name": "check-settings", "position": { "x": 350, "y": 200 }, "data": { "description": "检查设定是否存在", "prompt": "检查项目中是否已有小说设定文件(如世界观、角色设定、背景设定等)。如果存在,请列出已有的设定内容;如果不存在或设定不完整,请明确说明需要补充哪些设定。", "model": "sonnet", "outputPorts": 1 } }, { "id": "settings-exists-check", "type": "ifElse", "name": "settings-exists-check", "position": { "x": 650, "y": 200 }, "data": { "branches": [ { "id": "branch-0", "label": "设定存在", "condition": "设定文件已存在且内容完整" }, { "id": "branch-1", "label": "设定缺失", "condition": "设定文件不存在或内容不完整" } ], "outputPorts": 2 } }, { "id": "prompt-supplement-settings", "type": "prompt", "name": "prompt-supplement-settings", "position": { "x": 950, "y": 350 }, "data": { "label": "提示补充设定", "prompt": "您的小说设定尚未完整。请先补充以下设定内容后再进行大纲创作:\n\n1. 世界观设定(时代背景、地理环境、社会结构等)\n2. 角色设定(主要角色性格、背景、动机等)\n3. 核心主题/内核(您想通过故事表达什么)\n\n请补充完整设定后重新启动流程。", "variables": {} } }, { "id": "discuss-story-core", "type": "subAgent", "name": "discuss-story-core", "position": { "x": 950, "y": 50 }, "data": { "description": "与作者讨论故事和内核", "prompt": "基于已有的设定内容,与作者深入讨论想要讲述的故事。探讨以下问题:\n\n1. 这个故事的核心主题是什么?\n2. 作者想通过故事表达什么思想或情感?\n3. 故事的基调如何?(温馨、悬疑、悲剧、喜剧等)\n4. 最想打动读者的点是什么?\n\n请引导作者深入思考,帮助明确故事内核。", "model": "opus", "outputPorts": 1 } }, { "id": "discuss-plot-conflicts", "type": "subAgent", "name": "discuss-plot-conflicts", "position": { "x": 1250, "y": 50 }, "data": { "description": "讨论剧情节点和主要冲突", "prompt": "基于已有设定和确定的故事内核,与作者一起规划剧情结构:\n\n1. 故事的开端、发展、高潮、结局如何安排?\n2. 主要的冲突点有哪些?(人物冲突、价值观冲突、外部冲突等)\n3. 关键转折点是什么?\n4. 各章节/段落的主要情节安排\n\n请引导作者思考,确保剧情逻辑连贯且服务于故事内核。", "model": "opus", "outputPorts": 1 } }, { "id": "generate-outline", "type": "subAgent", "name": "generate-outline", "position": { "x": 1550, "y": 50 }, "data": { "description": "生成剧情大纲", "prompt": "基于以上所有讨论内容(设定、故事内核、剧情节点、冲突设计),生成一份完整的小说剧情大纲。大纲应包括:\n\n1. 故事梗概(100-200字)\n2. 主要人物介绍\n3. 分章/分段剧情概要\n4. 核心冲突的发展脉络\n5. 主题表达方式说明\n\n请生成结构清晰、内容充实的大纲供作者审阅。", "model": "opus", "outputPorts": 1 } }, { "id": "check-conflicts", "type": "subAgent", "name": "check-conflicts", "position": { "x": 1850, "y": 50 }, "data": { "description": "检查剧情与设定的冲突", "prompt": "仔细核对生成的剧情大纲与原始设定之间是否存在冲突:\n\n1. 角色行为是否符合其设定性格\n2. 剧情发展是否符合世界观设定\n3. 时间线、因果关系是否自洽\n4. 是否有违反已有设定的情节\n\n请列出所有发现的冲突,并说明冲突的具体内容。", "model": "sonnet", "outputPorts": 1 } }, { "id": "has-conflicts-check", "type": "ifElse", "name": "has-conflicts-check", "position": { "x": 2150, "y": 50 }, "data": { "branches": [ { "id": "branch-0", "label": "有冲突", "condition": "检测到剧情与设定存在冲突" }, { "id": "branch-1", "label": "无冲突", "condition": "未发现冲突或所有冲突已解决" } ], "outputPorts": 2 } }, { "id": "resolve-conflicts", "type": "askUserQuestion", "name": "resolve-conflicts", "position": { "x": 2385, "y": 210 }, "data": { "questionText": "发现剧情与设定存在冲突,您希望如何处理?", "options": [ { "id": "opt-keep-plot", "label": "保留剧情,修改设定", "description": "剧情更重要,相应调整原有设定以配合剧情发展" }, { "id": "opt-keep-setting", "label": "保留设定,修改剧情", "description": "设定更核心,调整剧情使其符合原有设定" }, { "id": "opt-review-both", "label": "重新审视", "description": "需要进一步讨论,综合考虑后决定" } ], "multiSelect": false, "useAiSuggestions": false, "outputPorts": 3 } }, { "id": "apply-plot-changes", "type": "subAgent", "name": "apply-plot-changes", "position": { "x": 2115, "y": 435 }, "data": { "description": "根据用户选择修改剧情", "prompt": "根据作者的选择,对剧情大纲进行相应修改:\n\n- 如果选择保留剧情修改设定:说明需要调整的设定内容\n- 如果选择保留设定修改剧情:调整大纲中冲突的部分,使其符合设定\n- 如果选择重新审视:提出折中方案供作者参考\n\n请执行修改并输出更新后的大纲。", "model": "opus", "outputPorts": 1 } }, { "id": "end-node-default", "type": "end", "name": "end-node-default", "position": { "x": 3050, "y": 50 }, "data": { "label": "完成" } }, { "id": "end-node-incomplete", "type": "end", "name": "end-node-incomplete", "position": { "x": 1320, "y": 345 }, "data": { "label": "待补充设定" } } ], "connections": [ { "id": "conn-1", "from": "start-node-default", "to": "check-settings", "fromPort": "output", "toPort": "input" }, { "id": "conn-2", "from": "check-settings", "to": "settings-exists-check", "fromPort": "output", "toPort": "input" }, { "id": "conn-3", "from": "settings-exists-check", "to": "discuss-story-core", "fromPort": "branch-0", "toPort": "input" }, { "id": "conn-4", "from": "settings-exists-check", "to": "prompt-supplement-settings", "fromPort": "branch-1", "toPort": "input" }, { "id": "conn-5", "from": "prompt-supplement-settings", "to": "end-node-incomplete", "fromPort": "output", "toPort": "input" }, { "id": "conn-6", "from": "discuss-story-core", "to": "discuss-plot-conflicts", "fromPort": "output", "toPort": "input" }, { "id": "conn-7", "from": "discuss-plot-conflicts", "to": "generate-outline", "fromPort": "output", "toPort": "input" }, { "id": "conn-8", "from": "generate-outline", "to": "check-conflicts", "fromPort": "output", "toPort": "input" }, { "id": "conn-9", "from": "check-conflicts", "to": "has-conflicts-check", "fromPort": "output", "toPort": "input" }, { "id": "conn-10", "from": "has-conflicts-check", "to": "resolve-conflicts", "fromPort": "branch-0", "toPort": "input" }, { "id": "conn-11", "from": "has-conflicts-check", "to": "end-node-default", "fromPort": "branch-1", "toPort": "input" }, { "id": "conn-12", "from": "resolve-conflicts", "to": "apply-plot-changes", "fromPort": "branch-0", "toPort": "input" }, { "id": "conn-13", "from": "resolve-conflicts", "to": "apply-plot-changes", "fromPort": "branch-1", "toPort": "input" }, { "id": "conn-14", "from": "resolve-conflicts", "to": "apply-plot-changes", "fromPort": "branch-2", "toPort": "input" }, { "id": "conn-15", "from": "apply-plot-changes", "to": "check-conflicts", "fromPort": "output", "toPort": "input" } ], "createdAt": "2026-01-27T10:58:10.193Z", "updatedAt": "2026-01-27T10:58:10.193Z", "conversationHistory": { "schemaVersion": "1.0.0", "messages": [ { "id": "235ec221-0d26-4598-8327-be967867b658", "sender": "user", "content": "这里是完成小说大纲的流程,需要确认设定的存在,设定不存在则提示补充设定,然后退出;如果存在设定,则按照设定已经存在的内容,和作者讨论想要讲述的故事和内核,然后按照已有的信息,和作者一起讨论剧情节点和主要冲突等内容,补充大纲完成需要的信息,然后完成作者认可的剧情大纲,最后比对剧情和设定的冲突,存在冲突则向作者确认保留哪个,直到没有冲突", "timestamp": "2026-01-27T09:58:45.310Z" }, { "id": "68ce810d-b531-42f6-9e66-57e993c8e6e0", "sender": "ai", "content": "创建小说大纲工作流程:包含设定检查、故事讨论、剧情节点规划、大纲生成和冲突检测", "timestamp": "2026-01-27T09:58:45.310Z" } ], "currentIteration": 1, "maxIterations": 20, "createdAt": "2026-01-27T09:53:41.428Z", "updatedAt": "2026-01-27T09:58:45.310Z", "sessionId": "117a84b6-f8ba-4060-b9e2-34c6f038da30" }, "subAgentFlows": [] }