{"id":17951,"date":"2024-08-14T10:24:56","date_gmt":"2024-08-14T02:24:56","guid":{"rendered":"https:\/\/www.1ai.net\/?p=17951"},"modified":"2024-08-14T10:24:56","modified_gmt":"2024-08-14T02:24:56","slug":"%e6%89%a3%e5%ad%90coze%e6%95%99%e7%a8%8b%ef%bc%8ccoze-%e5%a4%9a-agent%e6%a8%a1%e5%bc%8f%e5%88%b0%e5%ba%95%e6%80%8e%e4%b9%88%e7%94%a8%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/17951.html","title":{"rendered":"Coze tutorial: How to use Coze multi-agent mode?"},"content":{"rendered":"<div data-block=\"true\" data-editor=\"wyh\" data-offset-key=\"95pmp-0-0\">\n<div class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\" data-offset-key=\"95pmp-0-0\">\n<p>Often used<a href=\"https:\/\/www.1ai.net\/en\/tag\/coze\" title=\"_Other Organiser\" target=\"_blank\" >Coze<\/a>one<a href=\"https:\/\/www.1ai.net\/en\/tag\/agent\" title=\"[View articles tagged with [Agent]]\" target=\"_blank\" >Agent<\/a>Mode, but bot&#039;s multi-agent is rarely used. Today, let&#039;s experience the charm of multi-agents.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17952\" title=\"f56de589j00si6rsd0011d000mz00gip\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/f56de589j00si6rsd0011d000mz00gip.jpg\" alt=\"f56de589j00si6rsd0011d000mz00gip\" width=\"827\" height=\"594\" \/><\/p>\n<p><strong>Multi-Agent Building Tutorial<\/strong><\/p>\n<p><strong>1: Understanding the multi-agent model<\/strong><\/p>\n<p>When creating a bot on the Button platform, the default is single agent mode. However, when single agent mode is used to handle complex tasks, you need to write very detailed prompts, and you may also need to add plug-ins and workflows, which makes debugging complicated. A small change may affect the function of the entire bot, resulting in a gap between the actual effect and the expected effect.<\/p>\n<p>To solve this problem, Button provides a multi-agent mode, which can simplify task processing as follows:<\/p>\n<ol>\n<li>You can set independent prompts for different agents and split complex tasks into multiple simple tasks.<\/li>\n<li>Each Agent can have its own plug-ins and workflows, reducing the complexity of a single Agent.<\/li>\n<li>During debugging, you only need to modify the Agent with the problem to improve repair efficiency and accuracy.<\/li>\n<\/ol>\n<p>In short, the multi-agent model makes it easier and more efficient to handle complex tasks through division of labor and cooperation.<\/p>\n<p><strong>Create BOT Multiple Agent Mode<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17953\" title=\"373bf20ej00si6rt6000id000kr00h5p\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/373bf20ej00si6rt6000id000kr00h5p.jpg\" alt=\"373bf20ej00si6rt6000id000kr00h5p\" width=\"747\" height=\"617\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17954\" title=\"e716947ej00si6rtj0011d000tl00egp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/e716947ej00si6rtj0011d000tl00egp.jpg\" alt=\"e716947ej00si6rtj0011d000tl00egp\" width=\"1065\" height=\"520\" \/><\/p>\n<p><strong>Arrangement Page<\/strong><\/p>\n<p>Compared with the single agent mode, it lacks some methods<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17955\" title=\"64c876f6j00si6ru70014d000u000ewp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/64c876f6j00si6ru70014d000u000ewp.jpg\" alt=\"64c876f6j00si6ru70014d000u000ewp\" width=\"1080\" height=\"536\" \/><\/p>\n<p><strong>Configuration of multi-agent mode<\/strong><\/p>\n<p>The multi-agent mode is similar to the workflow mode, except that it has no output nodes; because each node is an output method.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17956\" title=\"1daefe13j00si6rui000yd000u000ewp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/1daefe13j00si6rui000yd000u000ewp.jpg\" alt=\"1daefe13j00si6rui000yd000u000ewp\" width=\"1080\" height=\"536\" \/><\/p>\n<p>At the same time, its start node is different from the workflow, and there is no place to add multiple variables, so it becomes two ways:<\/p>\n<p>1: &quot;The last reply node to the user&quot; will continue the chat every time until the chat message is cleared again<\/p>\n<p>2: &quot;Starting Node&quot; is always at the starting node<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17957\" title=\"967f8a11j00si6ruz000od000u0009ep\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/967f8a11j00si6ruz000od000u0009ep.jpg\" alt=\"967f8a11j00si6ruz000od000u0009ep\" width=\"1080\" height=\"338\" \/><\/p>\n<p><strong>Adding Nodes<\/strong><\/p>\n<p>There is a place called &quot;Add Node&quot; in the lower middle part of the screen. All the arrows in the picture point to a node.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17958\" title=\"9ba275f5j00si6rv90015d000u000eyp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/9ba275f5j00si6rv90015d000u000eyp.jpg\" alt=\"9ba275f5j00si6rv90015d000u000eyp\" width=\"1080\" height=\"538\" \/><\/p>\n<p><strong>In adding nodes, there are three types of nodes:<\/strong><\/p>\n<p>1: Agent: is a separate new bot<\/p>\n<p>2: Bot: A bot created and running for the user<\/p>\n<p>3: Global jump adjustment: This node is equivalent to a director, monitoring each node to prevent errors<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17959\" title=\"49f29d32j00si6rvw000qd000ja00c6p\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/49f29d32j00si6rvw000qd000ja00c6p.jpg\" alt=\"49f29d32j00si6rvw000qd000ja00c6p\" width=\"694\" height=\"438\" \/><\/p>\n<p><strong>Agent Node<\/strong><\/p>\n<p>Here I will demonstrate the built agent node to you directly. There are four sections in total:<\/p>\n<p>1: &quot;Applicable scenarios&quot; let this node understand what it needs to do; &quot;used to {guide users} and help users solve problems related to {information processing}.&quot;<\/p>\n<p>2: &quot;Agent prompt word&quot; The user processes the content of this node, and a prompt word is set for this purpose; &quot;Used to {guide users} and help users solve problems related to {information processing}. Guide users to enter variables {location}, {travel destination} and {number of days to play},&quot;<\/p>\n<p>3: &quot;Skills&quot; can add plug-ins, workflows,<strong>knowledge base<\/strong><\/p>\n<p>4: &quot;User Question Suggestions&quot; Three messages pop up after answering the user&#039;s question, giving suggestions to the user<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17960\" title=\"a31ad746j00si6rw9001hd000u000f3p\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/a31ad746j00si6rw9001hd000u000f3p.jpg\" alt=\"a31ad746j00si6rw9001hd000u000f3p\" width=\"1080\" height=\"543\" \/><\/p>\n<p><strong>Bot Node<\/strong><\/p>\n<p>Create a bot and bring its capabilities to multi-agent mode<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17961\" title=\"ec61539cj00si6rwj000rd000u000egp\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/ec61539cj00si6rwj000rd000u000egp.jpg\" alt=\"ec61539cj00si6rwj000rd000u000egp\" width=\"1080\" height=\"520\" \/><\/p>\n<p><strong>Global jump condition<\/strong><\/p>\n<p>When the user input meets the conditions, it will automatically call the node it is connected to<\/p>\n<p><img decoding=\"async\" id=\"dingyue_83_1723601949133\" contenteditable=\"false\" src=\"http:\/\/dingyue.ws.126.net\/2024\/0814\/4c2de3dfj00si6rx2000vd000j300ebp.jpg\" \/><\/p>\n<p>These are the various configurations and basic information of the multi-agent mode. I hope they can inspire you.<\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Coze single-agent mode is often used, but the multi-agent mode of bot is seldom used. Today, let's experience the charm of multi-agents. Teaching Multi-Agent Building I: Understanding Multi-Agent Mode When you create a bot on the Coze platform, the default mode is single-agent. However, when dealing with complex tasks in single Agent mode, you need to write very detailed prompts, and you may also need to add plug-ins and workflows, which will make debugging complicated, and a small change may affect the whole Bot's functionality, resulting in a gap between the actual effect and the expectation. To solve this problem, Buckle provides a multi-agent mode, which simplifies task processing in this way: you can set up independent<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[1405,726,4005],"collection":[],"class_list":["post-17951","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-agent","tag-coze"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/17951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=17951"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/17951\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=17951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=17951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=17951"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=17951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}