WEBVTT

00:00:00.000 --> 00:00:02.620
I'm super excited to share with you all pro code

00:00:02.620 --> 00:00:05.700
tools like VS Code and GitHub Copilot for the

00:00:05.700 --> 00:00:07.919
first time ever on this channel. Right now you're

00:00:07.919 --> 00:00:11.699
looking at my M365 Copilot app and in the very

00:00:11.699 --> 00:00:14.419
last video we built a super cool agent called

00:00:14.419 --> 00:00:16.899
BossBrain that knows everything there is to know

00:00:16.899 --> 00:00:18.780
about your boss and helps you create awesome

00:00:18.780 --> 00:00:21.160
documents. So what we're going to do is we're

00:00:21.160 --> 00:00:23.469
going to collect these three dots and select

00:00:23.469 --> 00:00:25.769
edit because we're going to move this over to

00:00:25.769 --> 00:00:28.350
copilot studio so the way this is going to work

00:00:28.350 --> 00:00:31.449
before we go into vs code that looks like this

00:00:31.449 --> 00:00:34.570
the pro code tool we're going to move this agent

00:00:34.570 --> 00:00:38.329
to copilot studio and then we're going to move

00:00:38.329 --> 00:00:41.210
it into vs code on the top right hand side after

00:00:41.210 --> 00:00:44.229
you selected edit if you select these three dots

00:00:44.229 --> 00:00:47.969
you can then copy this from agent builder to

00:00:47.969 --> 00:00:50.270
studio you can do this with any agent that you've

00:00:50.270 --> 00:00:53.630
built you just select get started and you might

00:00:53.630 --> 00:00:56.229
only have one environment i have a couple so

00:00:56.229 --> 00:00:58.929
i'm going to select shafi studios select continue

00:00:58.929 --> 00:01:01.909
and now everything from this agent builder the

00:01:01.909 --> 00:01:05.769
icon The description, the instructions, the prompts

00:01:05.769 --> 00:01:08.049
are all going to get copied over to Copilot Studio.

00:01:08.290 --> 00:01:11.549
And here it is. Looks like everything is here.

00:01:11.689 --> 00:01:13.950
All these instructions, the knowledge source.

00:01:14.170 --> 00:01:16.450
And all you got to do is on the top right hand

00:01:16.450 --> 00:01:18.969
side, you're going to select create. This then

00:01:18.969 --> 00:01:23.150
fully creates it as a Copilot Studio agent. The

00:01:23.150 --> 00:01:25.129
first thing we're going to do is we're going

00:01:25.129 --> 00:01:28.409
to select edit. And instead of boss brain, I'm

00:01:28.409 --> 00:01:32.780
going to call this boss brain. reply master because

00:01:32.780 --> 00:01:35.280
we're going to reply to our boss right so i'm

00:01:35.280 --> 00:01:37.620
going to click save here and the next thing i'm

00:01:37.620 --> 00:01:41.109
going to do inside copilot studio is this agent

00:01:41.109 --> 00:01:45.549
model. I have become a fan of Anthropix Cloud.

00:01:45.890 --> 00:01:48.829
I'm going to click Sonnet 4 .6. You may or may

00:01:48.829 --> 00:01:51.810
not have it, but if you do, maybe try it because

00:01:51.810 --> 00:01:53.950
it does a really good job on the reasoning side.

00:01:54.090 --> 00:01:56.489
Then I'm going to go down to the instructions

00:01:56.489 --> 00:01:59.269
and VS Code is going to massage all these instructions

00:01:59.269 --> 00:02:01.510
for us, which is super nice. You don't have to

00:02:01.510 --> 00:02:04.230
worry about that as much. And then what I'm going

00:02:04.230 --> 00:02:08.909
to do is this is new in Copilot Studio now. we

00:02:08.909 --> 00:02:11.430
have something called WorkIQ, which for some

00:02:11.430 --> 00:02:14.050
reason is disabled by default. And if you don't

00:02:14.050 --> 00:02:17.669
know what WorkIQ is, just select Learn More here.

00:02:17.889 --> 00:02:20.729
And this site here talks about how WorkIQ, this

00:02:20.729 --> 00:02:23.409
MCP, is actually in preview right now. So it's

00:02:23.409 --> 00:02:26.949
not fully out. But what WorkIQ is, is it's built

00:02:26.949 --> 00:02:30.229
on three tightly integrated layers, data, memory,

00:02:30.370 --> 00:02:32.889
and inference. Data unifies signals from files,

00:02:32.969 --> 00:02:35.009
emails, meetings, chats, and business systems.

00:02:35.030 --> 00:02:38.139
So that's your data. memory builds persistent

00:02:38.139 --> 00:02:40.539
understanding of how people and teams work so

00:02:40.539 --> 00:02:42.180
these are kind of like the people and the projects

00:02:42.180 --> 00:02:44.280
you work with and inference brings together model

00:02:44.280 --> 00:02:47.060
skills and tools so kind of think about it as

00:02:47.060 --> 00:02:49.680
the semantic index or microsoft graph that we

00:02:49.680 --> 00:02:52.939
had in the past but amplified even more and much

00:02:52.939 --> 00:02:55.340
improved i'm going to certainly turn this on

00:02:55.340 --> 00:02:58.219
because now it has access to all my emails and

00:02:58.219 --> 00:03:00.280
chats and all that good stuff the next thing

00:03:00.280 --> 00:03:02.259
i'm going to do is i'm going to add a bunch of

00:03:02.259 --> 00:03:05.240
tools and the reason for that is because when

00:03:05.240 --> 00:03:08.300
i actually tried to add them in vs code it told

00:03:08.300 --> 00:03:11.620
me that because i have to log in it wasn't able

00:03:11.620 --> 00:03:14.400
to do it so it pushed me back to copilot studio

00:03:14.400 --> 00:03:17.599
i'm going to go to model context protocol and

00:03:17.599 --> 00:03:20.099
i'm going to add these different mcp servers

00:03:20.099 --> 00:03:22.520
down along the bottom here one of the first things

00:03:22.520 --> 00:03:25.840
i want to do is select this team's work iq and

00:03:25.840 --> 00:03:27.620
you can see that i'm already logged in if you're

00:03:27.620 --> 00:03:29.639
not logged in then you have to create a new connection

00:03:29.639 --> 00:03:33.050
so this is for a Teams message that I want to

00:03:33.050 --> 00:03:36.150
get from the agent when it does its work. So

00:03:36.150 --> 00:03:38.710
that's one. And by the way, I want you to notice

00:03:38.710 --> 00:03:41.430
that when you scroll down, when you add an MCP

00:03:41.430 --> 00:03:43.889
server, the cool thing about them is they have

00:03:43.889 --> 00:03:47.729
a bunch of tools. So this one MCP server can

00:03:47.729 --> 00:03:51.439
list Teams, list chats, list channels. It is

00:03:51.439 --> 00:03:53.860
a bunch of stuff, right? So it's not just one

00:03:53.860 --> 00:03:57.300
thing. It's all of these different tools or capabilities

00:03:57.300 --> 00:04:00.259
that this MCP server has. So that's one. Now

00:04:00.259 --> 00:04:02.139
I'm going to select tools again, and I'm going

00:04:02.139 --> 00:04:04.759
to add another tool. And by the way, notice that

00:04:04.759 --> 00:04:08.599
when I flip that switch on for work IQ, this

00:04:08.599 --> 00:04:11.680
work IQ and this work IQ, they both automatically

00:04:11.680 --> 00:04:14.120
got added. Now I'm going to add another tool

00:04:14.120 --> 00:04:17.839
because part of what I want to do on the MCP

00:04:17.839 --> 00:04:21.629
side here is I also want to send an email receive

00:04:21.629 --> 00:04:23.910
an email and send an email i'm going to select

00:04:23.910 --> 00:04:28.449
this work iq mail notice all these are in preview

00:04:28.449 --> 00:04:30.870
by the way and i'm just going to select add and

00:04:30.870 --> 00:04:34.089
configure your it team may or may not have these

00:04:34.089 --> 00:04:36.329
turned on or off because they're in preview so

00:04:36.329 --> 00:04:38.930
if you don't see them contact your IT team and

00:04:38.930 --> 00:04:41.430
ask them to enable those for you. Then I'm gonna

00:04:41.430 --> 00:04:44.449
go back to Tools again and I'm gonna add one

00:04:44.449 --> 00:04:48.050
more tool and that would be under MCP as well

00:04:48.050 --> 00:04:51.129
and the ability for me to create a Word document.

00:04:51.470 --> 00:04:55.810
So I'm gonna select this WorkIQ Word and that

00:04:55.810 --> 00:04:58.870
allows... the agent to be able to create a word

00:04:58.870 --> 00:05:02.029
document on my behalf so here it is and again

00:05:02.029 --> 00:05:05.089
notice that each of these has a bunch of tools

00:05:05.089 --> 00:05:07.490
and going back to tools and just kind of going

00:05:07.490 --> 00:05:10.449
back to the mail one i wanted to show this because

00:05:10.449 --> 00:05:12.870
this is a commonly asked question i can simply

00:05:12.870 --> 00:05:16.310
have this email mcp send a reply back if you

00:05:16.310 --> 00:05:19.720
scroll down here it says reply all or reply to

00:05:19.720 --> 00:05:22.800
message or you can actually create a draft message

00:05:22.800 --> 00:05:25.740
right here so you can make it so that if you're

00:05:25.740 --> 00:05:28.079
not comfortable with ai just sending the message

00:05:28.079 --> 00:05:30.759
you can give in the instructions say create a

00:05:30.759 --> 00:05:33.060
draft message so it puts it in your draft folder

00:05:33.060 --> 00:05:36.220
and you can also as you can see you can add attachments

00:05:36.220 --> 00:05:40.220
here so this this mcp email tool does a bunch

00:05:40.220 --> 00:05:42.740
of stuff we have all that the other thing that

00:05:42.740 --> 00:05:45.850
i'm going to do that the bs code can't do by

00:05:45.850 --> 00:05:49.050
itself is on the trigger side i want this to

00:05:49.050 --> 00:05:52.290
get activated when i get an email from albert

00:05:52.290 --> 00:05:54.889
from my boss right so i'm going to go ahead and

00:05:54.889 --> 00:05:57.949
select this add trigger here and it's going to

00:05:57.949 --> 00:06:01.110
be when a new email arrives v3 right here so

00:06:01.110 --> 00:06:03.430
i'm going to select that select next now one

00:06:03.430 --> 00:06:05.730
of the things i can do to make sure that this

00:06:05.730 --> 00:06:09.269
trigger only gets activated for arnold is after

00:06:09.269 --> 00:06:12.129
i log in here let me just log in real quick okay

00:06:12.129 --> 00:06:15.089
click next i can put his email in here so i can

00:06:15.089 --> 00:06:18.529
say from anytime i get an email from him that's

00:06:18.529 --> 00:06:20.470
when the trigger gets activated so let me type

00:06:20.470 --> 00:06:24.910
in albert boom there's albert einstein so this

00:06:24.910 --> 00:06:28.230
trigger only gets activated emails from him i'm

00:06:28.230 --> 00:06:30.759
gonna go ahead and create the trigger in case

00:06:30.759 --> 00:06:33.279
you get emails from tons of other people, this

00:06:33.279 --> 00:06:35.360
Autonomous Agent is not gonna get activated.

00:06:35.720 --> 00:06:38.100
It'll only be from Albert. This is kind of like

00:06:38.100 --> 00:06:42.720
the framework of this Copilot Studio Agent. And

00:06:42.720 --> 00:06:45.560
now with the instructions and kind of all the

00:06:45.560 --> 00:06:48.259
details, we're gonna have VS Code do this for

00:06:48.259 --> 00:06:50.800
us. So that's gonna be on the Pro Code side.

00:06:50.959 --> 00:06:55.060
So with that, let's jump into VS Code. I'm gonna

00:06:55.060 --> 00:06:58.060
open up VS Code and for people that haven't even

00:06:58.569 --> 00:07:01.629
looked at this visual studio code is a full name

00:07:01.629 --> 00:07:03.889
you probably just have to go to your search bar

00:07:03.889 --> 00:07:07.350
in windows and then it'll show up as one of the

00:07:07.350 --> 00:07:09.889
applications and if you don't have it as one

00:07:09.889 --> 00:07:11.490
of the applications then it's something that

00:07:11.490 --> 00:07:14.310
you have to download now a quick time out here

00:07:14.310 --> 00:07:17.569
it did take me quite some time to kind of set

00:07:17.569 --> 00:07:21.810
this up you'll see that not only do i have vs

00:07:21.810 --> 00:07:26.139
code set up here but i actually have this Copilot

00:07:26.139 --> 00:07:29.980
Studio add -on. And I also, if I go to my extensions

00:07:29.980 --> 00:07:32.439
here, you'll see that I've installed a bunch

00:07:32.439 --> 00:07:34.980
of extensions like GitHub Copilot Chat, which

00:07:34.980 --> 00:07:37.680
is key. That's what we're gonna be using. And

00:07:37.680 --> 00:07:41.420
this Copilot Studio extension, I added a Microsoft

00:07:41.420 --> 00:07:45.000
Learn MCP server, and also this plugin here for

00:07:45.000 --> 00:07:47.459
skills for Copilot. So there's a ton of stuff

00:07:47.459 --> 00:07:49.759
that I had to do on the backend to actually set

00:07:49.759 --> 00:07:51.980
this environment up correctly. But now that it's

00:07:51.980 --> 00:07:55.139
up correctly and it has all these different components

00:07:55.139 --> 00:07:58.279
in there i can use it with confidence to help

00:07:58.279 --> 00:08:02.740
me amplify these agents my ask of you is if you're

00:08:02.740 --> 00:08:05.560
interested in me kind of doing a video on how

00:08:05.560 --> 00:08:07.779
i set up this environment because it's very time

00:08:07.779 --> 00:08:10.839
consuming let me know in the comments or if i

00:08:10.839 --> 00:08:13.800
get a bunch of likes maybe a several thousand

00:08:13.800 --> 00:08:16.800
likes i'll consider doing that video but if i

00:08:16.800 --> 00:08:19.040
don't then you know we'll move on with other

00:08:19.040 --> 00:08:22.300
topics now on The top left hand side, let me

00:08:22.300 --> 00:08:24.620
go back to kind of what we were looking at over

00:08:24.620 --> 00:08:27.300
here. You have this option when you start off

00:08:27.300 --> 00:08:30.220
of a new file or opening a folder. And these

00:08:30.220 --> 00:08:32.799
are recent things that I've done. And then also

00:08:32.799 --> 00:08:37.110
you can. learn about stuff by doing some walkthroughs,

00:08:37.110 --> 00:08:38.649
which is pretty cool. So what I'm going to do

00:08:38.649 --> 00:08:41.029
is I'm going to select open folder and I'm going

00:08:41.029 --> 00:08:44.450
to open up my repository of agents that I've

00:08:44.450 --> 00:08:46.370
been working on. So I'm going to go to this folder

00:08:46.370 --> 00:08:49.169
called source and repos, and I'm just going to

00:08:49.169 --> 00:08:51.049
select this folder. All right. So that's the

00:08:51.049 --> 00:08:53.730
main folder that I've selected, but that's just

00:08:53.730 --> 00:08:55.789
the beginning, right? So that just kind of got

00:08:55.789 --> 00:08:58.769
us to this ground floor. What we got to do next

00:08:58.769 --> 00:09:02.509
is we got to go to this copilot studio extension

00:09:02.509 --> 00:09:06.830
over here. And when I select it, it says, do

00:09:06.830 --> 00:09:09.909
you want to clone an agent right here? And so

00:09:09.909 --> 00:09:13.190
when I select clone an agent, it's actually logged

00:09:13.190 --> 00:09:16.269
into my Copilot Studio account. And it's going

00:09:16.269 --> 00:09:18.269
to show me the different environments that I

00:09:18.269 --> 00:09:20.330
have. So we'll just give it a second here. All

00:09:20.330 --> 00:09:23.049
right, selecting Shafi Studios. And then this

00:09:23.049 --> 00:09:26.830
is the Boss Brain Reply Master that we just built

00:09:26.830 --> 00:09:28.690
together in Copilot Studio. So I'm going to select

00:09:28.690 --> 00:09:30.730
that. And it's going to say, where do you want

00:09:30.730 --> 00:09:36.919
to put it? select new folder and I'm going to

00:09:36.919 --> 00:09:43.779
call it boss brain reply master. Okay. Select

00:09:43.779 --> 00:09:45.720
folder. So that's where it's going to go. That's

00:09:45.720 --> 00:09:47.500
where it's going to live. It's creating a local

00:09:47.500 --> 00:09:50.480
copy or cloning that and putting it on my hard

00:09:50.480 --> 00:09:52.980
drive. So whatever changes we make, it's happening

00:09:52.980 --> 00:09:56.899
locally. Now that we did that, if you notice

00:09:56.899 --> 00:09:59.500
up on the left hand side, we have these different

00:09:59.500 --> 00:10:01.879
menu icons, right? And so right now I'm in this

00:10:01.879 --> 00:10:05.379
explorer. And as it opened up this Boss Brain

00:10:05.379 --> 00:10:09.440
Reply Master, notice if I go to Actions, these

00:10:09.440 --> 00:10:13.019
are the different tools that we added. WorkIQ,

00:10:13.080 --> 00:10:16.779
Mail, Teams, Word, it's all there. And then the

00:10:16.779 --> 00:10:19.740
other two that were there already. So everything

00:10:19.740 --> 00:10:23.460
that resides in that Copilot Studio Agent, you

00:10:23.460 --> 00:10:26.820
can now see in this format instead. And if I

00:10:26.820 --> 00:10:30.399
go to this Agent MCL, this is actually the instructions

00:10:30.399 --> 00:10:32.970
that you're seeing. in terms of like the general

00:10:32.970 --> 00:10:35.250
guidelines, the skills. And this is something

00:10:35.250 --> 00:10:38.490
that we just developed in that agent boss in

00:10:38.490 --> 00:10:40.909
that previous video, it's all here. But we're

00:10:40.909 --> 00:10:43.450
gonna have the agent massage it for us. Now,

00:10:43.590 --> 00:10:46.929
I wanted to kind of bring your attention to the

00:10:46.929 --> 00:10:49.610
right hand side of the screen, which is GitHub

00:10:49.610 --> 00:10:51.870
Copilot Chat. That was one of the plugins that

00:10:51.870 --> 00:10:55.309
I had to add to VS Code. And if you look on the

00:10:55.309 --> 00:10:57.629
bottom right here, there's a bunch of different

00:10:57.629 --> 00:11:02.210
icons. And this icon is one of the key, as well

00:11:02.210 --> 00:11:04.470
as the large language model that you're using,

00:11:04.570 --> 00:11:07.330
as well as these tools. So when you select this

00:11:07.330 --> 00:11:10.649
icon, you can either have a GitHub Copilot chat

00:11:10.649 --> 00:11:14.429
in agent mode, in ask mode or in plan mode. And

00:11:14.429 --> 00:11:17.330
if I select agent mode and I select these two

00:11:17.330 --> 00:11:20.049
lines, which is the tool section, you'll see

00:11:20.049 --> 00:11:22.370
that in agent mode, because of all these check

00:11:22.370 --> 00:11:25.289
boxes, it has access to everything. It can make

00:11:25.289 --> 00:11:29.070
edits, it can execute, it can read. It can search.

00:11:29.169 --> 00:11:31.629
It can do a lot of stuff. If I change the mode

00:11:31.629 --> 00:11:35.850
to ask and I selected this tools menu, you'll

00:11:35.850 --> 00:11:38.710
notice that there's less items that are with

00:11:38.710 --> 00:11:41.850
the checkbox. It's just these, right? So depending

00:11:41.850 --> 00:11:45.009
on what mode you're in, it can do more or less.

00:11:45.090 --> 00:11:48.750
And that's by you selecting this. Now, if you

00:11:48.750 --> 00:11:52.240
notice these four, actually. are something that

00:11:52.240 --> 00:11:55.000
I installed from this website that I'll show

00:11:55.000 --> 00:11:57.179
you. And this is something that I can show if

00:11:57.179 --> 00:11:59.139
there's more interest in the future. This is

00:11:59.139 --> 00:12:02.139
the skills for co -pilot. And if you notice,

00:12:02.179 --> 00:12:05.139
those four items are actually here. So manage,

00:12:05.179 --> 00:12:07.059
author, test, and troubleshoot. So if you're

00:12:07.059 --> 00:12:09.320
going to author something, there's expertise

00:12:09.320 --> 00:12:11.500
on topics, actions, and knowledge. So this is

00:12:11.500 --> 00:12:13.679
something that you have to add. Now going back

00:12:13.679 --> 00:12:15.879
to VS Code, and we're just kind of laying out

00:12:15.879 --> 00:12:17.799
the groundwork. One of the first things that

00:12:17.799 --> 00:12:20.039
you got to do, and I can expand this out so you

00:12:20.039 --> 00:12:23.110
can see it better. is you need to type in slash

00:12:23.110 --> 00:12:25.330
these are how you access your different commands

00:12:25.330 --> 00:12:29.309
and do init press enter press enter again and

00:12:29.309 --> 00:12:32.509
what this does is this initializes the agent

00:12:32.509 --> 00:12:36.549
it gives github copilot a chance to look through

00:12:36.549 --> 00:12:39.690
everything that was cloned or downloaded from

00:12:39.690 --> 00:12:42.990
copilot studio to see what's what and where is

00:12:42.990 --> 00:12:45.129
everything and what's this agent all about and

00:12:45.129 --> 00:12:47.870
then it makes notes so let's give it a chance

00:12:47.870 --> 00:12:51.059
for it to kind of do its diagnosis because you

00:12:51.059 --> 00:12:54.000
have to initialize then you have to plan and

00:12:54.000 --> 00:12:56.299
then you execute and that's kind of how you go

00:12:56.299 --> 00:12:59.179
about using these pro code tools all right so

00:12:59.179 --> 00:13:01.980
the initialization came back and it basically

00:13:01.980 --> 00:13:04.779
said look now i have a full picture let me create

00:13:04.779 --> 00:13:07.899
a workspace instructions and then it says what

00:13:07.899 --> 00:13:10.120
this gives you any copilot chat in the workspace

00:13:10.120 --> 00:13:12.820
so kind of like it understands it it created

00:13:12.820 --> 00:13:14.879
this file which we can take a look at and it

00:13:14.879 --> 00:13:17.659
gives you some suggestion for customizations

00:13:17.659 --> 00:13:20.279
that you can do now along the way you'll start

00:13:20.279 --> 00:13:23.919
seeing these blue little boxes where you can

00:13:23.919 --> 00:13:29.139
keep or undo and these numbers of plus 52 and

00:13:29.139 --> 00:13:31.840
minus one that means 52 things were added and

00:13:31.840 --> 00:13:34.940
one was removed and when you select it and you

00:13:34.940 --> 00:13:37.799
go to this file that it created you can just

00:13:37.799 --> 00:13:42.100
go to it and notice that it is right here it's

00:13:42.100 --> 00:13:45.179
this copilot instructions .github that was actually

00:13:45.179 --> 00:13:48.879
created And all these green areas are the things

00:13:48.879 --> 00:13:52.259
that it took notes of and it added itself around

00:13:52.259 --> 00:13:56.039
key patterns and important notes. And we're just

00:13:56.039 --> 00:13:58.379
going to go ahead and select keep so it changes

00:13:58.379 --> 00:14:00.679
colors. All right. So that's kind of like the

00:14:00.679 --> 00:14:03.059
process that you'll keep seeing. And it'll also

00:14:03.059 --> 00:14:06.220
ask you if you want to allow it access or not

00:14:06.220 --> 00:14:08.759
at different points. Now, I just remembered there

00:14:08.759 --> 00:14:12.620
was one MCP server that I forgot to add. So I'm

00:14:12.620 --> 00:14:16.120
going to go back. to copilot studio here and

00:14:16.120 --> 00:14:19.879
there was a one drive mcp server that i wasn't

00:14:19.879 --> 00:14:22.820
able to add i forgot so i gotta select add tool

00:14:22.820 --> 00:14:27.039
and go to mcp because i want these files to be

00:14:27.039 --> 00:14:29.580
grabbed from the email but also placed in a onedrive

00:14:29.580 --> 00:14:33.480
folder so this is the work iq onedrive right

00:14:33.480 --> 00:14:36.799
over here i'm going to select that and add it

00:14:36.799 --> 00:14:39.840
as well all right so that got added but there's

00:14:39.840 --> 00:14:42.230
one thing that is something that you need to

00:14:42.230 --> 00:14:44.669
know about now with that added that's in the

00:14:44.669 --> 00:14:47.129
cloud and here we are on my hard drive so what

00:14:47.129 --> 00:14:49.190
you got to do when you make changes like that

00:14:49.190 --> 00:14:51.950
is you got to go back to this copilot studio

00:14:51.950 --> 00:14:55.389
icon and you have these two arrows over here

00:14:55.389 --> 00:14:58.169
there's an arrow pointing down and there's an

00:14:58.169 --> 00:15:00.769
arrow going up over here and so up is going to

00:15:00.769 --> 00:15:03.490
the cloud and down is coming to my computer and

00:15:03.490 --> 00:15:06.029
so because we made a change from up there and

00:15:06.029 --> 00:15:08.509
we want it to come down, let's go ahead and press

00:15:08.509 --> 00:15:11.669
this down arrow and synchronize with this thing

00:15:11.669 --> 00:15:14.250
that I just added, the OneDrive MCP. All right,

00:15:14.289 --> 00:15:16.470
so I got a message down here that it's successfully

00:15:16.470 --> 00:15:19.110
completed getting changes. And just to verify,

00:15:19.210 --> 00:15:22.990
if we go here and if we go to these actions over

00:15:22.990 --> 00:15:25.799
here. you'll see that the OneDrive just got added

00:15:25.799 --> 00:15:28.039
as well. All right. Technically, we should do

00:15:28.039 --> 00:15:30.720
another initialize, but I'll save you guys the

00:15:30.720 --> 00:15:33.200
pain of that. So just remember, like do a slash

00:15:33.200 --> 00:15:35.399
in it again because we added something. Now,

00:15:35.480 --> 00:15:37.600
the next thing I'm going to do is I expand this

00:15:37.600 --> 00:15:41.360
out is and I want to do like a slash plan. And

00:15:41.360 --> 00:15:43.580
I put together some text here that we can read

00:15:43.580 --> 00:15:47.259
together. This is what I want. VS Code to help

00:15:47.259 --> 00:15:49.639
me with. Here it is. The trigger on this agent

00:15:49.639 --> 00:15:52.659
activates only Monday to Friday when I receive

00:15:52.659 --> 00:15:54.899
an email from my boss. We already did this part,

00:15:55.019 --> 00:15:57.940
but not the Monday to Friday part. If he sends

00:15:57.940 --> 00:16:00.139
me a document, I want you to save this document

00:16:00.139 --> 00:16:02.679
to my OneDrive in a folder with today's date

00:16:02.679 --> 00:16:05.100
and his name. For example, Albert, May 20th.

00:16:05.620 --> 00:16:08.120
Next, I want you to edit the Word document he

00:16:08.120 --> 00:16:10.700
sent based on his expectations from the email

00:16:10.700 --> 00:16:14.240
and what we know. about what's important to him

00:16:14.240 --> 00:16:17.919
from our knowledge sources and WorkIQ. This revised

00:16:17.919 --> 00:16:21.039
document should be saved in the same folder that

00:16:21.039 --> 00:16:23.200
you created in the previous step. I want you

00:16:23.200 --> 00:16:25.759
to then reply to his email, summarize the work

00:16:25.759 --> 00:16:28.259
done, attach the new Word document to the email

00:16:28.259 --> 00:16:31.139
and send it. Now you can save it to draft and

00:16:31.139 --> 00:16:34.100
also remember somebody had asked can I attach

00:16:34.100 --> 00:16:36.740
or take PDF files and put them somewhere? Yeah.

00:16:37.210 --> 00:16:39.090
you can see that in this case we're actually

00:16:39.090 --> 00:16:41.590
taking his document and putting it in our onedrive

00:16:41.590 --> 00:16:44.070
so it's the same example and the last part is

00:16:44.070 --> 00:16:46.789
next send me a team's message updating me what

00:16:46.789 --> 00:16:48.909
has been done so i can review it all and make

00:16:48.909 --> 00:16:50.909
sure all the various tools triggers and topics

00:16:50.909 --> 00:16:53.789
are created so we're asking this agent to do

00:16:53.789 --> 00:16:56.129
all this stuff so i'm going to go ahead and just

00:16:56.129 --> 00:17:00.250
copy it right here and i'm going to do a slash

00:17:00.250 --> 00:17:03.700
plan that i did and just paste it and then hit

00:17:03.700 --> 00:17:07.299
enter so this is the plan that i want vs code

00:17:07.299 --> 00:17:09.519
github copilot to come up with let's see what

00:17:09.519 --> 00:17:11.700
it does here by the way while it's doing that

00:17:11.700 --> 00:17:14.720
one thing i didn't show you is this chat menu

00:17:14.720 --> 00:17:17.339
actually has like different large language models

00:17:17.339 --> 00:17:19.779
so if i select this and go to other models you'll

00:17:19.779 --> 00:17:21.980
see that there's a long list of models that i

00:17:21.980 --> 00:17:25.160
have access to including Gemini and including

00:17:25.160 --> 00:17:29.039
Cloud. So I'm using Cloud Opus 4 .6. This is

00:17:29.039 --> 00:17:31.599
separate. This is GitHub Copilot Chat versus

00:17:31.599 --> 00:17:34.720
Copilot Studio. So those two are different from

00:17:34.720 --> 00:17:37.420
each other, the LLMs, but just kind of know that

00:17:37.420 --> 00:17:40.500
you can pick your large language model of choice

00:17:40.500 --> 00:17:43.819
inside GitHub Copilot Chat as well. All right.

00:17:43.859 --> 00:17:46.140
So as the agent is going through everything,

00:17:46.339 --> 00:17:48.819
it's actually asking me some questions. So it

00:17:48.819 --> 00:17:50.940
says for the Monday to Friday filter, should

00:17:50.940 --> 00:17:53.420
the emails arriving on weekends be silently ignored

00:17:53.420 --> 00:17:57.099
or queued and processed on the next Monday? Very

00:17:57.099 --> 00:17:59.980
interesting. I'm just going to say silently ignored.

00:18:00.299 --> 00:18:03.839
Okay. Now on the other one, it says the Teams

00:18:03.839 --> 00:18:05.980
messages updating you should go to a specific

00:18:05.980 --> 00:18:08.440
Teams or channel or just one -on -one chat with

00:18:08.440 --> 00:18:10.319
me. So I'm just going to select this first one.

00:18:10.839 --> 00:18:13.180
which is one. And then it says, should the original

00:18:13.180 --> 00:18:15.880
document from Albert also be saved to the OneDrive

00:18:15.880 --> 00:18:18.640
folder or only the revised version? So both the

00:18:18.640 --> 00:18:20.799
original and the revised. Exactly. That's what

00:18:20.799 --> 00:18:22.900
I want. Good. So we selected all that and it's

00:18:22.900 --> 00:18:25.279
continuing to work. It says, now I have everything.

00:18:25.440 --> 00:18:28.160
Let me create the plan. All right. So it came

00:18:28.160 --> 00:18:30.579
back with a very detailed plan. So let's just

00:18:30.579 --> 00:18:32.940
kind of briefly look at it. So this is the automated

00:18:32.940 --> 00:18:36.579
boss email processing pipeline. And it has different

00:18:36.579 --> 00:18:39.960
phases. If you look here, phase one is this weekday

00:18:39.960 --> 00:18:42.980
filter. Phase two is updating the instructions

00:18:42.980 --> 00:18:45.920
with a bunch of different things here. Phase

00:18:45.920 --> 00:18:48.500
three is on the action side and descriptions.

00:18:48.599 --> 00:18:51.779
And phase four is the process boss email topic.

00:18:51.920 --> 00:18:54.019
It's going to create an entire topic for us.

00:18:54.119 --> 00:18:56.740
And then here it has a conversation starter and

00:18:56.740 --> 00:18:58.940
how it's going to go about this and additional

00:18:58.940 --> 00:19:01.359
instructions. I just remembered that I want to

00:19:01.359 --> 00:19:07.920
make sure, make. sure the email you send is in

00:19:07.920 --> 00:19:14.900
html and formatted professionally so i just want

00:19:14.900 --> 00:19:17.339
to add that to the list because sometimes i find

00:19:17.339 --> 00:19:19.519
that when these agents send emails it's just

00:19:19.519 --> 00:19:21.779
like a bunch of run -on sentences like there's

00:19:21.779 --> 00:19:24.099
no prayer paragraphing so i want to make sure

00:19:24.099 --> 00:19:26.119
it looks professional And so it's saying, yeah,

00:19:26.200 --> 00:19:28.440
let me update the plan in phase three. It's gonna

00:19:28.440 --> 00:19:31.359
do that. Now, when the plan is complete, you

00:19:31.359 --> 00:19:33.500
can always make adjustments like the one I just

00:19:33.500 --> 00:19:37.119
made. And ultimately, you just say. Go for it,

00:19:37.140 --> 00:19:39.000
do it, right? And it's going to start doing this

00:19:39.000 --> 00:19:41.160
stuff, which is going to save you a ton of time.

00:19:41.279 --> 00:19:43.640
So here it is. The plan was updated. Now the

00:19:43.640 --> 00:19:46.240
reply is going to explicitly require professional

00:19:46.240 --> 00:19:49.720
HTML format. All right. So sounds good. So one

00:19:49.720 --> 00:19:51.920
of the things I wanted to mention was this updated

00:19:51.920 --> 00:19:56.099
plan .md. So it's over here. And when we open

00:19:56.099 --> 00:19:59.019
it up. This is the entire plan right here. It

00:19:59.019 --> 00:20:02.000
has all the decisions and all the steps and everything.

00:20:02.180 --> 00:20:05.319
So it's a very, very detailed plan that VS Code

00:20:05.319 --> 00:20:08.220
and GitHub Copilot came up with. All right, so

00:20:08.220 --> 00:20:11.299
this is looking good to me. I think now we're

00:20:11.299 --> 00:20:13.500
at this phase where we're just gonna say execute

00:20:13.500 --> 00:20:16.019
the plan, right? So let me go ahead and expand

00:20:16.019 --> 00:20:19.400
this out again and make sure that we are actually

00:20:19.400 --> 00:20:23.759
in agent mode. And I'm gonna say, let's execute

00:20:23.759 --> 00:20:27.700
the plan. Now, remember, as it's going through

00:20:27.700 --> 00:20:30.660
this, again, it'll show you files that are changed

00:20:30.660 --> 00:20:34.319
like this workflow JSON and the number of changes.

00:20:34.579 --> 00:20:36.720
I'm just going to go ahead and trust it and select

00:20:36.720 --> 00:20:38.680
keep. Now, remember, I'm in a demo environment.

00:20:38.900 --> 00:20:41.059
So if you're in a production environment or a

00:20:41.059 --> 00:20:43.259
development environment, just make sure you're

00:20:43.259 --> 00:20:45.880
comfortable when you accept changes or the access

00:20:45.880 --> 00:20:48.000
that you give it. But it's going to certainly

00:20:48.000 --> 00:20:50.460
be asking you if you want to keep these changes,

00:20:50.680 --> 00:20:53.019
if you want to allow access. So totally up to

00:20:53.019 --> 00:20:55.609
you. I'm just going to accept everything. by

00:20:55.609 --> 00:20:57.829
the way one more tip if you look along the bottom

00:20:57.829 --> 00:21:00.349
here it says default approvals and if you select

00:21:00.349 --> 00:21:04.009
this little arrow you can actually bypass approvals

00:21:04.009 --> 00:21:07.690
or do autopilot preview which autonomously iterates

00:21:07.690 --> 00:21:09.269
from start to finish i'm just going to select

00:21:09.269 --> 00:21:12.089
that gives you a warning remember again i'm in

00:21:12.089 --> 00:21:15.049
a demo environment but just for the sake of breezing

00:21:15.049 --> 00:21:17.269
through all this i'm going to select that instead

00:21:17.269 --> 00:21:19.549
of having to approve every single prompt that

00:21:19.549 --> 00:21:22.390
it gives me all right so it says that it finished

00:21:22.390 --> 00:21:25.410
it says all phases complete no validation errors

00:21:25.410 --> 00:21:27.690
here's a summary of all the things that it did

00:21:27.690 --> 00:21:30.869
and it says the next step is to push this to

00:21:30.869 --> 00:21:33.890
copilot studio using vs code and to publish these

00:21:33.890 --> 00:21:36.789
changes so let's take its word for it so what

00:21:36.789 --> 00:21:39.369
we're going to do is on the bottom right if you

00:21:39.369 --> 00:21:43.059
remember this copilot studio extension here you

00:21:43.059 --> 00:21:45.000
can see there's a lot of changes that have happened

00:21:45.000 --> 00:21:47.339
so i'm going to click this up arrow and i want

00:21:47.339 --> 00:21:50.019
to push everything back to copilot studio see

00:21:50.019 --> 00:21:52.339
what happens here but you're getting the status

00:21:52.339 --> 00:21:54.599
messages on the bottom right by the way okay

00:21:54.599 --> 00:21:57.980
so successfully completed and now what we're

00:21:57.980 --> 00:22:00.319
going to do is we're going to go back to copilot

00:22:00.319 --> 00:22:03.650
studio and if I select overview I'm going to

00:22:03.650 --> 00:22:06.809
do a refresh on my browser to see if we can sync

00:22:06.809 --> 00:22:09.230
everything back up and if we can notice what

00:22:09.230 --> 00:22:12.289
the differences are that VS Code and GitHub Copilot

00:22:12.289 --> 00:22:14.490
created for us so let's take a look here so right

00:22:14.490 --> 00:22:17.190
away I'm seeing some differences here for example

00:22:17.190 --> 00:22:20.430
here it says current context date there's a formula

00:22:20.430 --> 00:22:24.390
and as we scroll down here this section is new

00:22:24.390 --> 00:22:27.890
like saving the original document editing the

00:22:27.890 --> 00:22:30.930
document saving the revised document these are

00:22:30.930 --> 00:22:34.069
all instructions that it gave it replying using

00:22:34.069 --> 00:22:38.569
html notifying all of this stuff and then if

00:22:38.569 --> 00:22:41.309
we look at topics let's see if there's anything

00:22:41.309 --> 00:22:44.150
that got added on the topic side and so this

00:22:44.150 --> 00:22:48.210
process boss email this is a topic that it actually

00:22:48.210 --> 00:22:51.849
created for us so it's got the trigger the generative

00:22:51.849 --> 00:22:54.849
answers conditions so all of this it did itself

00:22:54.849 --> 00:22:56.930
so we got to test it out before we do i want

00:22:56.930 --> 00:22:59.990
to show you this if you select more in this test

00:22:59.990 --> 00:23:03.730
bar on the right hand side and you go to manage

00:23:03.730 --> 00:23:07.210
connections the first time chances are that even

00:23:07.210 --> 00:23:09.650
though you connect it it's going to say not connected

00:23:09.650 --> 00:23:12.329
this is just by experience you see all this all

00:23:12.329 --> 00:23:15.160
this here not connected so it's going to give

00:23:15.160 --> 00:23:18.200
you errors and so what i would do is just always

00:23:18.200 --> 00:23:22.160
the first time around do this and select connect

00:23:22.160 --> 00:23:25.079
and make sure you're logged in for all the different

00:23:25.079 --> 00:23:27.930
tools that you're using so just Connect, submit,

00:23:28.170 --> 00:23:30.170
connect, submit, and so on. All right, so now

00:23:30.170 --> 00:23:32.470
they look good. They're all connected. And you

00:23:32.470 --> 00:23:34.470
can just close this window up. Now we're gonna

00:23:34.470 --> 00:23:36.609
actually have to lob an email to wake up this

00:23:36.609 --> 00:23:38.730
trigger that we have, like when a new email arrives,

00:23:38.950 --> 00:23:40.849
right? So I'm gonna go to my Outlook here. And

00:23:40.849 --> 00:23:43.269
I have this email set up from Albert Einstein

00:23:43.269 --> 00:23:46.130
going to Arnold and saying, hey, Arnold, this

00:23:46.130 --> 00:23:48.930
document, this is the magic carpet design document

00:23:48.930 --> 00:23:52.339
from our last video. it's a great document but

00:23:52.339 --> 00:23:54.880
there's nothing here about the fabric of the

00:23:54.880 --> 00:23:57.339
carpet as you know i like silk and i want to

00:23:57.339 --> 00:23:59.279
make sure that the specs match your requirements

00:23:59.279 --> 00:24:02.059
we can use that in some kind of fashion he wants

00:24:02.059 --> 00:24:04.579
to use silk on the carpet i would also like more

00:24:04.579 --> 00:24:06.779
details about the fuels that you're using miles

00:24:06.779 --> 00:24:09.319
per gallon and how we can optimize natural resources

00:24:09.319 --> 00:24:12.680
versus fossil fuels so albert's going to send

00:24:12.680 --> 00:24:17.619
this off to arnold And if we go to Arnold Schwarzenegger's

00:24:17.619 --> 00:24:20.279
email over here, here's the email that just popped

00:24:20.279 --> 00:24:23.579
in. And then that should wake up this autonomous

00:24:23.579 --> 00:24:27.240
agent that we've set up. But the thing is, sometimes

00:24:27.240 --> 00:24:30.019
it doesn't. So here's another tip that I have,

00:24:30.140 --> 00:24:32.599
especially the first time around, right? It should

00:24:32.599 --> 00:24:35.079
subsequently, but the first time around as you're

00:24:35.079 --> 00:24:37.880
testing it, I would select these three dots here

00:24:37.880 --> 00:24:40.599
and go to test trigger when a new email arrives.

00:24:41.369 --> 00:24:43.349
we're going to select one of the emails that

00:24:43.349 --> 00:24:46.730
we had logged in and when we select start testing

00:24:46.730 --> 00:24:49.349
it's going to go through the entire flow and

00:24:49.349 --> 00:24:51.029
we're going to see what it's actually doing it's

00:24:51.029 --> 00:24:53.049
going to tell us step by step what it's doing

00:24:53.049 --> 00:24:55.390
all right so it took some time but the agent

00:24:55.390 --> 00:24:58.009
finished everything it had to do and by the way

00:24:58.009 --> 00:25:00.509
one recommendation i have is as you go through

00:25:00.509 --> 00:25:02.930
this testing and you kind of look at all the

00:25:02.930 --> 00:25:04.750
different things that are happening you kind

00:25:04.750 --> 00:25:07.849
of expand these out there's a lot to be learned

00:25:07.849 --> 00:25:10.599
from from these and so if there's error messages

00:25:10.599 --> 00:25:13.779
or there's challenges i would actually copy and

00:25:13.779 --> 00:25:17.259
paste these back to vs code and say hey can you

00:25:17.259 --> 00:25:20.299
help me improve this agent based on this feedback

00:25:21.150 --> 00:25:23.150
in this case everything actually went through

00:25:23.150 --> 00:25:25.809
and all the way in the bottom it gives us a summary

00:25:25.809 --> 00:25:28.450
of all the things it does and you can see all

00:25:28.450 --> 00:25:31.450
the different tasks and activities and tools

00:25:31.450 --> 00:25:33.369
that it leveraged and each of these you can kind

00:25:33.369 --> 00:25:35.329
of open up and you can see what happens on the

00:25:35.329 --> 00:25:38.109
right hand side here so anyways it gave us a

00:25:38.109 --> 00:25:40.150
good result and it summarized what it is here

00:25:40.720 --> 00:25:43.220
But let's take a look at this together. If I

00:25:43.220 --> 00:25:47.960
go back to the email for Albert Einstein, you'll

00:25:47.960 --> 00:25:50.799
see that one, there was an invitation to this

00:25:50.799 --> 00:25:53.619
magic carpet revised document that's on the OneDrive,

00:25:53.880 --> 00:25:56.880
but also an email that Arnold sent automatically

00:25:56.880 --> 00:25:59.759
that talks about this silk fabric integration,

00:26:00.140 --> 00:26:03.200
like a summary of it, and then the fuel MPG components

00:26:03.200 --> 00:26:07.079
over here. So this is very well done. And up

00:26:07.079 --> 00:26:09.400
along the top, you can see the document was also

00:26:09.400 --> 00:26:12.579
attached. and below there's actually a onedrive

00:26:12.579 --> 00:26:15.980
link so the document is there and then if we

00:26:15.980 --> 00:26:19.819
go to the actual onedrive which is right over

00:26:19.819 --> 00:26:22.519
here you can see that this folder was created

00:26:22.519 --> 00:26:25.039
and then these are the two files that were in

00:26:25.039 --> 00:26:28.559
the folder the original one as well as the revised

00:26:28.559 --> 00:26:32.240
one and if we look at the revised one which was

00:26:32.240 --> 00:26:35.900
also in the email you'll see references to silk

00:26:35.900 --> 00:26:39.519
and mpg so here's the revised one and as we scroll

00:26:39.519 --> 00:26:41.799
down a little bit you'll see this fabric design

00:26:41.799 --> 00:26:45.279
silk integrated luxury layer which is nice and

00:26:45.279 --> 00:26:47.579
then if we go down more you'll see this natural

00:26:47.579 --> 00:26:51.160
resource optimization for the mpg and all that

00:26:51.160 --> 00:26:54.279
stuff so this is a document that was the onedrive

00:26:54.279 --> 00:26:57.640
and then finally the chat it came in through

00:26:57.640 --> 00:27:00.039
this kind of unknown user maybe this is something

00:27:00.039 --> 00:27:02.940
we can optimize but you can see that there's

00:27:02.940 --> 00:27:06.099
a summary that was sent at 8 46 with respect

00:27:06.099 --> 00:27:10.480
to the email that albert we received from albert

00:27:10.480 --> 00:27:13.180
the onedrive the revised document to reply all

00:27:13.180 --> 00:27:16.160
that stuff so that is it and i think that there

00:27:16.160 --> 00:27:20.769
is a ton of value in this VS code, get up copilot

00:27:20.769 --> 00:27:23.890
chat and all the plugins. And there's a lot that

00:27:23.890 --> 00:27:26.289
it can do that would take me additional time.

00:27:26.450 --> 00:27:29.789
It's not perfect, but it's another tool that

00:27:29.789 --> 00:27:33.289
you can use to create these really powerful agents.

00:27:33.390 --> 00:27:36.069
So again, if you're interested in actual setup,

00:27:36.329 --> 00:27:39.430
I'm looking for many, many likes in the thousands

00:27:39.430 --> 00:27:42.589
for sure. And if not, that's okay. We have other

00:27:42.589 --> 00:27:45.150
topics like there's copilot code work that's

00:27:45.150 --> 00:27:47.309
coming that I'm very excited about. So thanks

00:27:47.309 --> 00:27:49.960
again for watching. Give the video a like, consider

00:27:49.960 --> 00:27:52.519
subscribing. I'll catch you on the next one.
