{"componentChunkName":"component---src-templates-acg-portal-new-template-tsx","path":"/Kmh4stuj6","result":{"data":{"markdownRemark":{"html":"<p>通常情况下，我们通过表单配置来指定应用在不同场景下的实现不同能力，例如通过撰写角色人设使用回复风格、通过配置知识库进行RAG问答，但用户 Query 复杂的情况下，应用不一定会根据设计的逻辑进行处理，应用回复不符合预期。</p>\n<p>因此，除了通过自主规划Agent创建应用之外，你还可以通过工作流Agent创建应用。</p>\n</br>\n<h3 id=\"模式介绍\"><a href=\"#%E6%A8%A1%E5%BC%8F%E4%BB%8B%E7%BB%8D\" aria-label=\"模式介绍 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>模式介绍</h3>\n<p>工作流Agent<strong>无需设置角色人设，通过工作流编排的形式实现应用功能</strong>。</p>\n<p>用户的所有对话均会触发此工作流处理，适用于严格按照流程执行的任务，例如：</p>\n<ul>\n<li>客服对话智能体，判断终端用户的意图后严格按照任务分支自动执行，无需大模型思考选择。</li>\n<li>mbti小助手，根据开发者编排的问题逐个提问，严格按照任务分支和结果执行后续的流程。</li>\n</ul>\n<p>工作流Agent支持用户配置工作流完成整个应用的对话过程，通过开始节点的Rawquery传入问题，并以结束节点输出作为回复。开始节点和结束节点之前的完整流程构成一次对话的输入输出，以支持终端用户和应用的一次交互。</p>\n<p><img src=\"https://bce.bdstatic.com/doc/ai-cloud-share/AppBuilder/image_cd9bdfb.png\" alt=\"image.png\"></p>\n</br>\n<h3 id=\"工作流agent应用创建\"><a href=\"#%E5%B7%A5%E4%BD%9C%E6%B5%81agent%E5%BA%94%E7%94%A8%E5%88%9B%E5%BB%BA\" aria-label=\"工作流agent应用创建 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>工作流Agent应用创建</h3>\n<p>工作流Agent由应用配置、工作流编排、预览与调试区域三个部分组成：</p>\n<p><img src=\"https://bce.bdstatic.com/doc/ai-cloud-share/AppBuilder/image_992f2cc.png\" alt=\"image.png\"></p>\n</br>\n<h4 id=\"1-应用配置\"><a href=\"#1-%E5%BA%94%E7%94%A8%E9%85%8D%E7%BD%AE\" aria-label=\"1 应用配置 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>1. 应用配置</h4>\n<p>应用配置对整个应用全局生效，包含应用基本信息、记忆变量、开场白、推荐问和数字人形象等配置，你可以用过记忆变量节点对应用全局层面的记忆变量进行读取或写入。</p>\n<ul>\n<li><strong>应用基本信息</strong>：基本信息包含应用的名称、描述和应用头像信息，你可以点击头像上传头像，也可以点击AI生成功能进行应用头像的自动生成。</li>\n<li><strong>记忆变量</strong>：开发者可根据应用设定记忆变量，应用用户在对话过程中可以录入变量内容，每个变量支持存储一维、单个数据。在对话过程中，应用将依据存储的变量值进行答复。</li>\n<li><strong>开场白</strong>：开场白是智能体首次与用户接触时的初始对话。它简要介绍智能体的身份和功能，使用户了解如何与其有效沟通。</li>\n<li><strong>推荐问</strong>：在对话初期，智能体提供的预设问题，引导用户探索其功能和服务，帮助用户快速熟悉和利用智能体的能力。</li>\n<li><strong>数字人</strong>：为应用添加数字人形象，支持语音对话。</li>\n</ul>\n</br>\n<h4 id=\"2-工作流编排\"><a href=\"#2-%E5%B7%A5%E4%BD%9C%E6%B5%81%E7%BC%96%E6%8E%92\" aria-label=\"2 工作流编排 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>2. 工作流编排</h4>\n<p>工作流编排支持通过节点编排的形式决定工作流Agent每一步需要执行的任务，应用将会从开始节点起按照编排顺序执行。</p>\n<ul>\n<li><strong>节点</strong>：</li>\n</ul>\n<p>工作流Agent和工作流组件共有节点，在工作流Agent和工作流组件的画布中都存在，在每种画布中独立使用。（节点的具体用法可参考【<a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">工作流创建组件</a>】的说明文档）：</p>\n<table>\n<thead>\n<tr>\n<th>节点名称</th>\n<th>节点描述</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju#21-%E5%BC%80%E5%A7%8B%E8%8A%82%E7%82%B9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">开始节点</a></td>\n<td>工作流运行的起点，开始节点默认导入工作流所需的输入参数，包括用户输入的原始内容、用户与应用的对话历史和用户在应用对话中上传的文件变量，将会自动从用户输入中获取。</td>\n</tr>\n<tr>\n<td><a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju#22-%E5%A4%A7%E6%A8%A1%E5%9E%8B%E8%8A%82%E7%82%B9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">大模型节点</a></td>\n<td>调用大语言模型，根据输入参数和提示词生成回复。</td>\n</tr>\n<tr>\n<td><a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju#23-%E7%9F%A5%E8%AF%86%E5%BA%93%E8%8A%82%E7%82%B9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">知识库节点</a></td>\n<td>根据输入的参数，在选定的知识库中检索相关片段并召回，返回切片列表。</td>\n</tr>\n<tr>\n<td><a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju#24-%E5%88%86%E6%94%AF%E5%99%A8%E8%8A%82%E7%82%B9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">分支器节点</a></td>\n<td>连接多个下游分支节点，若设定条件成立则运行对应的条件分支，若均不成立则运行“否则”分支。</td>\n</tr>\n<tr>\n<td><a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju#25-api-%E8%8A%82%E7%82%B9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">API 节点</a></td>\n<td>配置外部 API 服务，并调用该服务。</td>\n</tr>\n<tr>\n<td><a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju#26-%E4%BB%A3%E7%A0%81%E8%8A%82%E7%82%B9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">代码节点</a></td>\n<td>编写代码，处理输入输出变量来生成返回值。</td>\n</tr>\n<tr>\n<td><a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju#27-%E7%BB%84%E4%BB%B6%E8%8A%82%E7%82%B9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">组件节点</a></td>\n<td>添加广场内或已发布的组件，支持能力扩展与复用。</td>\n</tr>\n<tr>\n<td><a href=\"#%E8%AF%AD%E6%B3%95%E9%94%99%E8%AF%AF%E6%88%96%E8%AF%A5%E9%93%BE%E6%8E%A5%E6%9C%AA%E7%94%9F%E6%95%88-\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">意图识别节点</a></td>\n<td>识别用户的输入意图，并分配到不同分支执行。</td>\n</tr>\n<tr>\n<td><a href=\"#%E8%AF%AD%E6%B3%95%E9%94%99%E8%AF%AF%E6%88%96%E8%AF%A5%E9%93%BE%E6%8E%A5%E6%9C%AA%E7%94%9F%E6%95%88-\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">记忆变量节点</a></td>\n<td>用于写入或读取 Agent 中的记忆变量，节点与 Agent 中的记忆变量名称需要相同才能匹配。</td>\n</tr>\n<tr>\n<td><a href=\"https://cloud.baidu.com/doc/qianfan/s/umh4su4ju#28-%E7%BB%93%E6%9D%9F%E8%8A%82%E7%82%B9\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">结束节点</a></td>\n<td>工作流的最终节点，输出工作流运行后的最终结果。</td>\n</tr>\n</tbody>\n</table>\n</br>\n<h4 id=\"3-预览与调试\"><a href=\"#3-%E9%A2%84%E8%A7%88%E4%B8%8E%E8%B0%83%E8%AF%95\" aria-label=\"3 预览与调试 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>3. 预览与调试</h4>\n<p>和自主规划Agent相同，你可以在右侧调试区域进行对话调试。预览与调试区域支持对话调试应用，用户输入的内容会作为Rawquery传入开始节点，在工作流执行后输出结束节点的内容成为一轮对话。\n<img src=\"https://bce.bdstatic.com/doc/ai-cloud-share/AppBuilder/image_0ca9a4f.png\" alt=\"image.png\"></p>","fields":{"slug":"Kmh4stuj6","title":"工作流Agent模式","date":"2026-11-11","extractedHeadings":[]},"headings":[{"value":"模式介绍","depth":3},{"value":"工作流Agent应用创建","depth":3},{"value":"1. 应用配置","depth":4},{"value":"2. 工作流编排","depth":4},{"value":"3. 预览与调试","depth":4}]}},"pageContext":{"isCreatedByStatefulCreatePages":false,"slug":"Kmh4stuj6","prev":{"id":"vmh4stwzq","name":"应用调优","path":"vmh4stwzq","filePath":"Agent/创建Agent/工作流Agent/应用调优/规则干预.md","seo":null,"parentIds":["Omvsyoy8e","wmvtgvt0l","Amh4stuqb","5mh4stwz5"],"parents":[{"id":"Omvsyoy8e","documentId":"fe1ac68a-d110-4349-b05e-b777185e33d2","name":"Agent","repoName":"qianfan","filePath":"Agent","disabled":false,"path":"Omvsyoy8e","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null},{"id":"wmvtgvt0l","documentId":"45fde43c-0137-4b89-a5c7-6a306a54aa04","name":"创建Agent","repoName":"qianfan","filePath":"Agent/创建Agent","disabled":false,"path":"wmvtgvt0l","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null},{"id":"Amh4stuqb","documentId":"21d8fdf3-f53b-4686-8daf-cb689cb57d94","name":"工作流Agent","repoName":"qianfan","filePath":"Agent/创建Agent/工作流Agent","disabled":false,"path":"Amh4stuqb","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null},{"id":"5mh4stwz5","documentId":"2de866ac-4145-4489-8882-19f7e6925e93","name":"应用调优","repoName":"qianfan","filePath":"Agent/创建Agent/工作流Agent/应用调优","disabled":false,"path":"5mh4stwz5","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null}]},"next":{"id":"Nmh4stsf3","name":"多智能体协同Agent","path":"Nmh4stsf3","filePath":"Agent/创建Agent/多智能体协同Agent/概述.md","seo":null,"parentIds":["Omvsyoy8e","wmvtgvt0l","Imh4stsc1"],"parents":[{"id":"Omvsyoy8e","documentId":"fe1ac68a-d110-4349-b05e-b777185e33d2","name":"Agent","repoName":"qianfan","filePath":"Agent","disabled":false,"path":"Omvsyoy8e","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null},{"id":"wmvtgvt0l","documentId":"45fde43c-0137-4b89-a5c7-6a306a54aa04","name":"创建Agent","repoName":"qianfan","filePath":"Agent/创建Agent","disabled":false,"path":"wmvtgvt0l","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null},{"id":"Imh4stsc1","documentId":"ce303805-b4cf-45b6-af7c-f3e699863548","name":"多智能体协同Agent","repoName":"qianfan","filePath":"Agent/创建Agent/多智能体协同Agent","disabled":false,"path":"Imh4stsc1","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null}]},"parents":[{"id":"Omvsyoy8e","documentId":"fe1ac68a-d110-4349-b05e-b777185e33d2","name":"Agent","repoName":"qianfan","filePath":"Agent","disabled":false,"path":"Omvsyoy8e","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null},{"id":"wmvtgvt0l","documentId":"45fde43c-0137-4b89-a5c7-6a306a54aa04","name":"创建Agent","repoName":"qianfan","filePath":"Agent/创建Agent","disabled":false,"path":"wmvtgvt0l","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null},{"id":"Amh4stuqb","documentId":"21d8fdf3-f53b-4686-8daf-cb689cb57d94","name":"工作流Agent","repoName":"qianfan","filePath":"Agent/创建Agent/工作流Agent","disabled":false,"path":"Amh4stuqb","lastMergeTime":null,"isApiDoc":null,"httpMethod":null,"seo":null,"sourceOrgName":null,"sourceRepoName":null,"sourceDocumentId":"","solutionTag":null,"solutionColor":null}],"specificSeo":null}}}