Multi Agent Orchestration in Salesforce: A Step by Step Guide to Connect Agent as Subagent
Sep 25, 2026
Show More Show Less
View Video Transcript
0:07
Hello everyone. In this video, we are
0:10
going to see multi- aent orchestration
0:12
in Salesforce. If you have a use case
0:15
where you have built multiple agent
0:17
force agents and then if you want to
0:19
orchestrate then you can make use of
0:22
this guide for your reference. In
0:25
Salesforce when you build agent force
0:28
agent using agent script which is the
0:30
new builder you can add another agent
0:34
force agent as a sub agent. So whenever
0:38
a prompt is sent sent it will go to the
0:40
agent router and the agent router finds
0:44
that particular sub agent which is an
0:46
agent which is added as a sub agent
0:49
matches the prompt.
0:52
it will route that particular uh
0:54
conversation to the another agent force
0:58
agent and then it will orchestrate so
1:01
that it will be easy for us to achieve
1:03
multi- aent orchestration in Salesforce.
1:07
Let's see a simple demo.
1:10
I'm invoking my employee agent force
1:12
agent. I'm going to say I want to log a
1:15
task.
1:18
In order to do that, I should be on an
1:20
account record.
1:24
So I'm going to say log logger task.
1:28
It is collaborating with other agent and
1:32
then it created an agent uh sorry a task
1:35
record. Let me refresh my screen
1:38
and then I can see the demo task that
1:41
was created. I'm going to say I want to
1:46
update a case.
1:48
It is orchestrating to another agent and
1:52
then it is asking me the email address.
1:58
It is collaborating with other agent. It
2:00
is returning the open cases.
2:03
I'm going to say for case number
2:08
update the comments as testing.
2:14
So it is collaborating with other agent.
2:16
It is adding a case comment and then it
2:18
is saying that it was able to add a
2:20
comment for this case. Let's go and
2:22
verify that.
2:25
So it just now added a comment.
2:29
Let's look at the agent force agent
2:31
implementation and how I was able to
2:34
orchestrate multiple agents.
2:38
So this employee agent force agent is
2:40
the primary agent force agent for me.
2:48
This is the draft version. So in order
2:50
to add other agent force agents you have
2:53
to click this plus icon and then select
2:56
connect agent as sub agent. So that you
2:58
will be able to add other agent force
3:00
agents that are developed developed in
3:02
this org and then you will be able to
3:04
add as a sub agent here. So here I have
3:07
added let me go to the active version.
3:11
So here I have added two agent force
3:15
agents as sub agents case management
3:18
agent and event and task management. So
3:22
these two are the agent force agents.
3:30
So for my
3:33
event and task service rep they will
3:36
just have access to this. For my support
3:39
representatives I will give access to
3:41
this particular agent force agent. If
3:43
I'm a supervisor who is handling
3:45
multiple
3:47
people under me, then I should have
3:51
access to both the agents so that it can
3:53
easily help me. Instead of selecting
3:56
multiple agents here and then sending
3:58
the prompt with the help of just one
4:01
agent, employee agent force agent, I was
4:03
able to orchestrate multiple agents like
4:07
event and task management agent and also
4:10
case management agent. So if I need any
4:12
help related to case then it will invoke
4:17
this case management agent from this
4:20
employee agent uh so that it can help me
4:23
related to cases. Let me show you. So if
4:27
I say the same prompt here log
4:32
task
4:33
in the summary you should be able to see
4:35
that. So it created a task in the
4:37
summary
4:39
the input was received. it got
4:41
transferred to event and task management
4:43
uh
4:45
um sub agent and in the sub agent the
4:48
input was sent it transferred it to the
4:51
task management. So this is my subtopic
4:54
task management and in the task
4:56
management I have create task agent
4:59
action which makes use of a flow and
5:01
then it creates a task record. So it
5:04
invoked this agent force action to
5:07
create a task. So if you have an use
5:10
case where you wanted to
5:13
orchestrate multiple agents then have
5:16
one primary agent you can add multiple
5:20
agent force agents as sub agents with
5:23
the help of uh connect agent as sub
5:26
agent option.
5:32
I hope it was helpful.
5:38
Thank you for watching.
#Internet Software
#Science
