How to use "Multi-agents mode" in Coze
Summary
TLDRThe video explains how to use multi-agent mode in Anthropic's conversational AI assistant Claude to break down complex tasks between multiple bots. It starts with a single personal assistant bot, then adds an email bot and calendar bot connected via "jump conditions" that trigger when certain keywords are mentioned. More bots like a Google Sheets bot are added, all glued together by the main menu assistant bot. This allows separating responsibilities so no one bot handles everything, enabling teamwork between bots to accomplish users' requests.
Takeaways
- 😊 Multi-agent mode allows you to create multiple bots that collaborate to complete complex tasks
- 👥 You can offload responsibilities across bots instead of overloading a single bot
- 🚦 Jump conditions allow you to switch between bots based on triggers like keywords
- 🤝 Bots can be connected using jump conditions to create a workflow
- 📝 You can reuse existing single agent bots in multi-agent mode
- 🔌 Plugins, workflows and knowledge bases provide bots with additional skills
- ➕ You can keep adding more nodes and functionality to handle complex scenarios
- 🌐 Global jump conditions let you route users back to a main menu bot
- 📋 The my assistant bot serves as a main menu to guide users
- ❓ Check the documentation and community forums if you need help with multi-agent mode
Q & A
What is multi-agent mode?
-Multi-agent mode is the ability to make multiple agents or bots work together and collaborate to complete complex tasks. It allows you to distribute responsibilities across bots with different skills.
How is multi-agent mode different from single agent mode?
-In single agent mode, you would write one long prompt and persona to complete multiple tasks. In multi-agent mode, you can split up the tasks across specialized bots, with each playing their own role.
What are nodes in multi-agent mode?
-Nodes are agents or bots that operate based on a prompt, skills like plugins/workflows/knowledge, and jump conditions to switch between bots.
How do you connect bots in multi-agent mode?
-Bots are connected using jump conditions that allow passing between bots based on certain trigger keywords a user says.
What was the first bot created in the example?
-The first bot was an email bot that could check, read, and send emails using the Microsoft Outlook plugin.
What was the second bot created?
-The second bot was a calendar bot that could create, update, and list calendar events using the Outlook calendar plugin.
How can you return back to the main menu bot?
-A global jump condition was created that would pass back to the main menu assistant bot if the user said "main menu".
What other bots were created?
-A Google Sheets bot was created to allow managing spreadsheets. More bots connecting other services could also be added.
Why use multiple bots versus just one bot?
-Using multiple bots allows you to separate concerns and responsibilities, avoiding overloading a single bot. It allows completing more complex workflows.
Where can you get more information on multi-agent mode?
-Check the Anthropic documentation and look for the section on multi-agent mode. Additional help is also available on Discord and Telegram.
Outlines
😀 Introducing multi-agent mode for coordinating multiple bots
Josh explains multi-agent mode which allows multiple bots to collaborate and complete complex tasks, unlike single agent mode where one bot handles everything. He demonstrates creating a 'system bot' and 'email bot', connecting them with a jump condition to pass control when the user wants to check email. The bots can have different skills and switch based on keywords to divide responsibilities.
😃 Adding a calendar bot and connecting it to the system
Josh adds a calendar bot to create, update, and list calendar events. He connects it to the system so when the user asks to create a calendar event, control passes to the calendar bot which then uses the Outlook calendar plugin to add the event. He can keep adding more bots for different services and connect them with jump conditions to create a workflow for complex tasks.
Mindmap
Keywords
💡multi-agent mode
💡node
💡jump condition
💡plugin
💡prompt
💡single agent mode
💡skills
💡global jump condition
💡bot
💡complex task
Highlights
Multi-agent mode allows multiple bots to collaborate on complex tasks
Bots can play different roles based on skills like plugins, workflows and knowledge bases
Nodes represent agents or bots that operate on a prompt and can have skills applied
Jump conditions allow switching between bots based on trigger keywords
Assistant bot acts as main menu, prompts user on bot capabilities
Email bot handles email responsibilities exclusively through Outlook plugin
Calendar bot creates, updates, lists calendar events via Outlook calendar plugin
Can connect more nodes and functionality through additional jump conditions
Added Google Sheets bot that connects via new jump conditions
Global jump condition added to return to main menu assistant bot
Jump conditions connect bots and trigger based on keywords
Team of bots divides workload instead of overwhelming single bot
Can expand complexity by adding more nodes, plugins, jump conditions
Documentation has more details on implementing multi-agent mode
Join Discord or Telegram groups for additional questions
Transcripts
what's up y'all it's Josh MOS and I'm
here to tell you about multi-agent mode
now multi-agent mode is the ability to
make multiple agents or Bots work
together and collaborate to complete
complex task now it's a bit different
from single agent mode usually you're
used to writing a really long prompt and
a Persona in order to complete multiple
tasks but now you can offload that to
multiple Bots and they can all play
their own role and in this video I'm
going to show you how to do that all
right so I'm here in the co workspace
and I'm in single agent bot mode and
that just means that my bot is able to
take take a prompt get some skills and
it's able to complete some simple task
right now this is a personal assistant
bot that's able to send emails and check
my emails from using the Microsoft
Outlook email plugin however I want to
step it up a notch I want my bot to have
the ability to create calendar
invitations and update my calendar or
even create Google Sheets or update
Google Sheets and read them back to me
so what I'll need to do is create a
multi-agent bot so that my bot doesn't
have to feel like it has to complete all
those responsibilities inside of one
prompt now this helps separate concerns
and this also helps complete complex
tasks and I'll show you how to do this
right now so the way to do this is by
going over here next to develop and
clicking single agent mode and then over
here to multi-agent mode multi-agent
mode and single agent mode have a few
similarities we still have Persona impr
prompt on the side here our variable
scheduled task and opening
dialogue however when we look to the
middle section section we have this
starting point and a node here this node
is an agent or a bot that operates off
this prompt it can also have skills
applied to it like plugins workflows and
knowledge and it can also operate off of
jump conditions in order to get pass
from one bot to the next and switch
whenever you trigger off of keywords so
I'll write a jump condition here so that
when a user wants to send an email we'll
get passed to the email bot so these
Bots work collaboratively in order to
get complex task done so let's start
putting the pieces together in order to
do that we're going to need a node and a
node can either be a new agent a bot
that you already created in single bot
mode right so these are some past Bots
that I've created and then also a global
jump condition which is a jump condition
that will apply to all the agents that
you have here on the board now what I'm
going to do is just add a new agent and
I'm going to make this agent into a bot
for our mail so let's go here and we'll
call this
bot right and we can
say you are a bot that
helps check
emails so from here what we're going to
do is add a new plugin for our Outlook
email right and we're going to choose
both of these options to get the mail
and also be able to send mail just like
how we had before in our single bot
mode now what I'll do is I'll take this
jump condition that I have here to
respond if a user wants to send emails
or check their emails and I'm going to
pass it over here to this email bot so
now I have both of these Bots here
connected to one another this my
assistant bot acts as my main menu and
it will start to prompt my user and ask
what responsibilities or what do we want
this bot to do and when I say something
along the lines of check my email it's
going to actually p pass me from this my
system bot to my email bot so let's take
a
look so it says here system next step
and it passed it to our email bot right
so let's check my email and now that I'm
here um signing in for the first time
with Microsoft Outlook email I just have
to click here to authorize my email
address authorization only takes a few
steps so let's actually just run this
again and see what it
outputs
so it's using system next step and now
the plugin and it's looking at my email
address and it seems that I have two new
emails
here great so these are the two emails
that I have in my Microsoft Outlook
email address now if I want to enhance
the email agent I can always come back
and add more to the prompt and give it
some skills like plugins workflows and
knowledge bases however I need a bot
that's going to solely handle the
responsibility of managing my calendar
and that can consist of SK like adding
events to my calendar inviting folks to
my calendar updating my calendar or even
listing what's on my calendar for the
day so in order to do that I need to add
another node and connect it to another
plugin so I'll create a node here and
I'll rename this node calendar bot
because this is going to represent our
calendar
agent and I'm going to give it a prompt
and I have a prompt here that I already
wrote and I'm stating that this is a bot
that that creates calendar events
updates calendar events and lists the
calendar events so what I'll do now is
I'll connect this jump condition that
I've already created that responds if a
user wants to send a calendar invitation
update a calendar invitation or list
them so I'll take this here and I'll
pass it over to our calendar bot and now
what I'll need to do with this calendar
bot is give us some
skills I'll go here to our plug-in list
and I'll also add Outlook calendar now
if you have another EMA email that you
have uh managing on another service you
can always create a plugin here with the
API but for now I'm going to use Outlook
calendar so I go here and I'll add all
the skills create event list event and
update
event so I'll go here and I'll click out
and I'll see that my skills are already
here ready to go so my bot is currently
chatting with our email bot so if I say
to my bot now create a account
calendar event on Feb
12th at 11
a.m. Pacific
Time title the event
webinar so I'll send this over to our
bot and we'll see how it system steps
and changes it from our email agent to
our calendar agent now and you'll see
that it's using the plugin and it's
stating that the calendar event was
created and we can view it here here so
let's wait for the response to finish
and we'll take a look at our calendar
and we'll see the changes so if we click
here we'll go straight to our calendar
and we'll see we have a webinar here at
11:00 a.m. on February 12th we're also
going to need to be able to connect more
functionality so we can continue to add
more nodes and connect nodes to each
other with jump conditions and it can
get even more complex so I can add
another node here to connect to a Google
sheet or another service that I need to
work with it could be notion you name it
or you can even create your own plugin
as well so these jump conditions is
what's really going to help put all this
together it's the glue and what we'll
use is these jump conditions in order to
create this flow of work that our Bots
our team need to accomplish in order to
execute the task that we're asking for
so this really helps take off the load
of one bot handling everything and this
team of bots can work together to give
you what you need I've gone ahead and
created some new addition to my
multi-agent bot so you can see here that
I have some new Jump conditions as well
and this jump condition that I have is
to connect to my new Google Sheets agent
that I have here now if you see I have
this jump condition and I can
disconnected to this Google sheet spot
and it will respond anytime a user talks
about Google Sheets so I have all these
different jump conditions and vice versa
on each of these agents that connect to
one another and they respond and Trigger
when any of these Bots are mentioned now
I also want to add one last thing here
to make this all kind of glued
together since I'm using this my
assistant as a main menu I want to be
able to come back to this main menu
anytime a user says something along the
lines of main menu so what I can do is
add a new node for a global jump
condition and in this Global jump
condition I'll just add a prompt here so
if the user wants to visit the main menu
so what I'll do is just put right here
above our my assistant bot and I'll drag
it over here and I'll connect it right
now we're chatting with our calendar bot
and I'll just say to
it bring me to the main
menu so now you'll start to see that
it's going to switch over to our my
assistant bot because we have this
Global jump condition so it's pretty
cool now it's listing out all the things
that I can do with this bot based on the
prompt that I have and that's it from
multi mode for now if you want more
information make sure you check out the
co documentation and look for
multi-agent mode if you have any
questions make sure to join us on
Discord and on Telegram and we'll see
you in the next video
Voir Plus de Vidéos Connexes
5.0 / 5 (0 votes)