Vibe Coding on Salesforce: Setup Guide for Agentforce for Developers (The New AI Dev Agent)
Oct 1, 2025
Show More Show Less
View Video Transcript
0:05
Hello everyone. In this video we are
0:08
going to see wbe coding on Salesforce
0:13
with agent force for developers. We got
0:18
a assistant using which we were able to
0:23
do smart Salesforce development
0:27
with the new wipe coding on Salesforce.
0:31
Instead of just planning and getting
0:33
some information from the AA assistant,
0:36
it has evolved into act mode. So you can
0:39
uh ask agent force uh for developer
0:44
um a assistant to create a task and uh
0:49
complete the task for you. Let's see
0:51
that in action.
0:55
There are some prerequisites that has to
0:57
be done in order to start uh wipe coding
1:00
on Salesforce.
1:02
Make sure you install Salesforce
1:04
extension in your visual uh studio code.
1:08
Once uh it is uh installed, create a
1:11
project and make sure you are
1:14
authorizing your uh project.
1:17
Uh so when we create a project or when
1:20
we create a project with the manifest,
1:23
we have to authorize that org so that it
1:26
is connected to your Salesforce or in
1:28
your Salesforce or this shouldn't be
1:30
disabled.
1:32
Agent Force for developers. If you go to
1:34
the Salesforce setup under development,
1:37
you will find agent force for
1:39
developers.
1:40
When you open it, it shouldn't be
1:42
disabled. It should be enabled. By
1:44
default, it is enabled in the orgs.
1:54
Next you have to install agent force for
1:59
uh developers extension also. Confirm
2:02
that extension is also um installed.
2:07
If I go to extensions.
2:14
So this is the agent force for
2:16
developers
2:18
that has to be installed.
2:21
Okay. The next uh
2:25
uh important prerequisite is make sure
2:28
the Salesforce CLA is up to date and uh
2:31
the version should be v2.2.91.5
2:35
or higher. If you go here and then if
2:39
you type SF update, it will update your
2:44
um Salesforce uh CLA. So it uh updated
2:48
it from 2.95.6 to 2.10 uh 107.6.
2:55
So it updated it. So it is definitely
3:01
above the pre requisite which is 2.91.5.
3:06
So it is definitely higher. Okay. Once
3:09
that is done
3:11
in your VS code,
3:13
you have to open this uh
3:16
in your command pallet. So if I go here,
3:23
if I use command shiftp,
3:26
I should be able to open preferences,
3:29
open user settings. Once you use that
3:32
command, it will open settings.json JSON
3:35
file here by default. Whatever settings
3:39
you have changed uh will be available on
3:44
top of it. Use a comma and then you have
3:46
to add these two lines of code.
3:50
I have shared that code
3:52
here. If you wanted to know more about
3:56
these uh properties so that you can
3:59
enable without uh any issues or concern,
4:02
you can go over this blog post.
4:06
Once that is done, you have to use the
4:11
agent force icon here
4:15
to access it. Once you access the agent
4:19
force after changing these uh settings
4:23
you will see the dev agent will be in
4:27
wipe code mode. Once this is done the
4:30
next step is you have to switch to act
4:34
mode. By default it will be in uh plan
4:38
mode. Instead of plan mode make it as
4:41
act mode.
4:43
Making it act uh mode will make sure it
4:47
can start uh uh creating files. Uh it
4:51
can update your um metadata files. It
4:54
can complete the task instead of just
4:57
giving you a plan for the act uh for the
4:59
task. So make sure it is in act mode.
5:04
Next
5:06
in the same VS code if you click manage
5:09
MCP servers for the Salesforce DX by
5:13
default it will be toggled off
5:16
toggle on so that it can it can make use
5:19
of Salesforce DX MCP server. So if I ask
5:24
any question it will go to the
5:26
Salesforce DX MCP server and it will
5:28
help me in uh creating the metadata file
5:32
getting some update uh from Salesforce
5:35
uh or for example if you want to list
5:38
all the objects in your org. If you
5:40
wanted to list all the lightning web
5:42
component so it will make use of uh the
5:46
Salesforce DX uh MCP uh uh server. So in
5:50
the MCP server there might be multiple
5:53
Salesforce DX MCP clients. So it will
5:56
try to find the right client and then it
5:57
will help you in uh uh developing uh uh
6:01
in the Salesforce environment.
6:03
Okay. Once this is also done, you should
6:07
be able to
6:09
uh start uh uh prompting
6:12
uh I'm going to prompt this.
6:16
I'm going to ask
6:18
the agent force div agent to create an
6:22
apex class with the name opportunity
6:24
helper and it should contain this method
6:27
and it should query all the opportunity
6:30
records where the amount is greater than
6:33
$50,000. It should also enforce user
6:36
mode and it should also use with
6:40
security enforced in the SOQL.
6:43
Once it understood all this, it should
6:47
uh uh also generate a test class and
6:50
then it should insert a mock data to
6:53
ensure new method gets 100% code
6:56
coverage and assert that
6:58
only two high value opportunities are
7:02
written. So let me try this prompt and
7:05
let me test it out.
7:10
uh if you wanted to add any context you
7:13
can add using this.
7:18
If you wanted to add multiple MCP
7:20
servers you have to go here and then you
7:23
have to start adding the MCP servers
7:26
that are available.
7:30
Okay. So here I'm going to ask this
7:33
prompt.
7:37
So this is the task so that it can act
7:40
on it.
7:59
So first it created the opportunity
8:01
helper class.
8:03
Let's look at that class.
8:09
So if I click save, it will create that
8:13
Apex class. Now it is creating uh
8:20
the metadata file. So that I'm saving
8:23
that also.
8:25
Next it is creating the test class.
8:39
I'm going to save it.
8:43
Now it is creating the meta.xml file.
8:47
I'm going to click save.
8:49
So it created uh the classes for me.
8:54
So this is the apex class
8:57
and uh this is the test class for that
9:00
apex class.
9:16
Please check the video description. In
9:18
the video description, I have shared my
9:20
blog post. from the blog post. You
9:23
should be able to get
9:26
the command to open
9:31
the file.
9:37
We have to open uh settings.json
9:41
file. So in order to open it, you can
9:43
use this command. Next, we have to add
9:47
these two lines of code. So this is also
9:49
available in the blog post. So you have
9:52
to add it here.
9:58
Uh you can start uh using uh Salesforce
10:02
uh advanced dev A assistant
10:06
to
10:09
create uh classes help in uh and then it
10:12
can also help in your Salesforce
10:14
development.
10:17
Thank you for watching.
#Business & Productivity Software
#Internet Software
#Programming
