WEBVTT

00:00.040 --> 00:00.600
Okay.

00:00.640 --> 00:04.160
And next I want to save this because we're going to go build a new one.

00:04.160 --> 00:08.320
And to save it you can either just press this red save button here on a PC.

00:08.360 --> 00:12.200
It's control S on a mac, it's command S done.

00:12.200 --> 00:13.720
And then that goes to saved.

00:13.720 --> 00:16.040
And now I'm going to go and click on on personal.

00:16.040 --> 00:19.880
Or I can click on overview and come back here to this screen.

00:19.880 --> 00:22.560
It's time for us to create a new workflow okay.

00:22.600 --> 00:23.520
Create workflow.

00:23.560 --> 00:26.440
The red button up here we're going to add a first step.

00:26.440 --> 00:29.320
It's going to be as before on Chatmessage.

00:29.640 --> 00:31.600
Or I will do different things sooner or later.

00:31.800 --> 00:35.120
And then we will give ourselves another AI agent.

00:35.240 --> 00:36.480
You're getting to be a pro at this.

00:36.480 --> 00:39.200
You don't need me to tell you we're going to have simple memory.

00:39.520 --> 00:41.520
And, uh, there we go.

00:41.560 --> 00:44.440
And chat model will use OpenAI again.

00:44.440 --> 00:47.800
OpenAI chat model all set up.

00:47.800 --> 00:48.560
That's all great.

00:48.560 --> 00:49.680
We'll test it with a.

00:49.680 --> 00:50.280
Hi there.

00:52.320 --> 00:56.720
And hopefully everything is perfect okay.

00:56.760 --> 00:58.040
Time for a new tool.

00:58.080 --> 00:59.840
All right I'm going to press the plus button here.

00:59.840 --> 01:09.850
And I'm going to type email and we are going to go to the email type Gmail, consume the Gmail API.

01:09.890 --> 01:12.930
And now I come here and I say create new credentials.

01:13.130 --> 01:16.290
And we're back to this sign in with Google button.

01:16.290 --> 01:17.330
Let's give it a try.

01:17.330 --> 01:18.850
And I press this button.

01:19.090 --> 01:19.810
Up it comes.

01:19.810 --> 01:24.450
It's popped up with this box again I'm going to connect it to my business email.

01:24.450 --> 01:28.770
It could also be to my um, my my Gmail itself.

01:28.930 --> 01:31.290
I'm going to give it access to everything.

01:31.290 --> 01:32.330
And I'm going to say continue.

01:32.330 --> 01:35.410
If you're not comfortable with that, then obviously give it whatever you would like.

01:35.410 --> 01:38.690
But we're going to be always in control of what we do, and we're going to be careful with this.

01:39.010 --> 01:40.330
Um, okay.

01:40.370 --> 01:41.130
So we've done that.

01:41.130 --> 01:41.850
We've connected it.

01:41.890 --> 01:47.250
We press X, now we get to choose what tools we want to give our model access to.

01:47.290 --> 01:51.170
And you should only pick the tools that you are comfortable giving the access to.

01:51.210 --> 01:56.410
Of course, in later weeks we will talk more about security of AI agents.

01:56.410 --> 01:58.730
We'll talk about something called the Lethal Trifecta.

01:58.890 --> 02:04.740
Um, that the simplest way to make sure that you're that you're happy with what we're doing is only

02:04.740 --> 02:10.300
ever give your model access to a tool that you are comfortable for it to use, and that's what we'll

02:10.300 --> 02:10.740
do now.

02:10.780 --> 02:14.580
Okay, so it's time to set up our tool to access our Gmail.

02:14.780 --> 02:17.660
So the resource we want to look at is going to be messages.

02:17.660 --> 02:21.060
We want it to look at emails in our email operation.

02:21.060 --> 02:22.660
We don't want it to send emails.

02:22.660 --> 02:24.580
We just want it to get emails.

02:24.580 --> 02:32.100
I'm going to choose get many uh, and uh, we are going to then come down here and say we want to apply

02:32.100 --> 02:32.660
a filter.

02:32.660 --> 02:34.340
I've got a lot of emails in my inbox.

02:34.340 --> 02:35.740
I don't want it to read all of them.

02:35.900 --> 02:42.300
I want it to read anything that was received after yesterday, received in the last day.

02:42.500 --> 02:44.380
So I do received after.

02:44.660 --> 02:48.340
And now I can select a date and time and I can select yesterday.

02:48.540 --> 02:54.220
Uh, but doing that would be kind of laborious because I'd be hard coding in this platform.

02:54.260 --> 02:57.620
Yesterday's date set there, and that's kind of ugly.

02:57.620 --> 03:04.150
So I don't want to fixed thing here I want an expression, and you'll often see fields where you can

03:04.150 --> 03:06.470
flip between fixed and expression.

03:06.470 --> 03:08.230
And I'm going to click on expression.

03:08.230 --> 03:10.510
I could also click here to let the model pick a date.

03:10.510 --> 03:12.070
But I'm going to have an expression.

03:12.270 --> 03:16.870
And what I'm going to do is I'm now going to to put in here some code.

03:16.910 --> 03:20.830
This this is a low code course, not a no code course.

03:20.830 --> 03:25.190
So just occasionally you're going to see fragments of code, which for the engineers here is going to

03:25.190 --> 03:29.070
be a cinch for some of you will be stuff to to pick up as we go.

03:29.310 --> 03:34.150
And it's something where, you know, you'll, you'll basically get used to sort of copying things and

03:34.150 --> 03:36.030
getting a handle for what's going on.

03:36.190 --> 03:42.310
This is using it's so when we have code, it is mostly JavaScript code you'll be looking at.

03:42.350 --> 03:45.630
Sometimes it can use Python, but we'll be we'll be using JavaScript.

03:45.830 --> 03:50.950
And particularly when you see two curly braces like that, it means whatever's going in here is going

03:50.990 --> 03:51.910
to be JavaScript.

03:51.910 --> 03:53.270
And that's what that is.

03:53.430 --> 03:58.750
And it's something that handles dates and times using a JavaScript library called Luxon, which is one

03:58.750 --> 04:03.760
that is sort of built into NH n and was particularly easy way to handle dates and times.

04:03.760 --> 04:07.160
And I mean, you know, you can just read this and it looks pretty much like English.

04:07.160 --> 04:11.560
It's going to take now and it's going to minus one day, just as it appears to say.

04:11.600 --> 04:15.840
And below it tells you the result of running that which is in fact a day before right now.

04:16.080 --> 04:19.600
So and it even tells us a tip anything here is JavaScript.

04:19.600 --> 04:20.680
So that's what I've done.

04:20.680 --> 04:27.880
I have I have said now that I want this operation to get many messages from my Gmail account received

04:27.880 --> 04:30.120
after a day from now.

04:30.280 --> 04:32.200
Okay, so this is all pretty clear.

04:32.200 --> 04:35.320
I think we will now go back to this screen.

04:35.600 --> 04:37.640
Here we have our AI agent.

04:37.640 --> 04:39.240
It's got its OpenAI model.

04:39.240 --> 04:43.360
It's got simple memory and it's got this new mail tool.

04:43.680 --> 04:47.160
I also want to mention at this point there's this this button over here called Tidy Up.

04:47.160 --> 04:47.800
Very convenient.

04:47.800 --> 04:50.080
If I press this, it just reshuffles everything.

04:50.080 --> 04:53.560
It also resizes nicely to that's a nice little button to know about.

04:53.600 --> 04:54.000
Okay.

04:54.040 --> 04:57.160
And here we have an empty chat.

04:57.640 --> 05:00.330
First up, let's, uh, let's get an email.

05:00.330 --> 05:02.170
So here is my email program.

05:02.170 --> 05:06.810
I'm going to send an email to myself, from myself, from a different email account, from my Gmail.

05:06.970 --> 05:09.050
I'm going to say, I have exciting news.

05:09.050 --> 05:12.170
My agent in NHSN is able to read my email.

05:12.170 --> 05:13.410
This is huge.

05:13.450 --> 05:16.290
So many possibilities and I'm going to send that email.

05:16.530 --> 05:22.490
So I have I have sent that, uh, I will wait a couple of seconds for that to send, uh, going over

05:22.490 --> 05:23.130
the ether.

05:23.370 --> 05:38.730
And now now I'm going to say, uh, please read the most recent email that I received and summarize

05:40.490 --> 05:44.330
and summarize the, the the summarize what it contains.

05:46.930 --> 05:47.410
There we go.

05:47.450 --> 05:48.210
Are we ready?

05:48.250 --> 05:49.050
Off we go.

05:49.170 --> 05:50.250
We give it a run.

05:50.530 --> 05:51.210
It goes.

05:51.210 --> 05:53.130
It's connecting to Gmail.

05:53.690 --> 05:55.410
It's now using that tool.

05:58.370 --> 05:59.660
It's having a think.

06:02.820 --> 06:07.300
The most recent email you received is from Edward Donner with the subject Important News.

06:07.620 --> 06:12.740
The content snippet indicates it shares exciting news that his agent can now read his email, which

06:12.740 --> 06:15.500
he describes as huge with many possibilities.

06:15.500 --> 06:16.980
This capability opens up.

06:17.260 --> 06:17.900
Aha!

06:18.780 --> 06:19.900
So there you have it.

06:19.980 --> 06:22.380
There you see, it did in fact, work.

06:22.540 --> 06:25.860
Uh, we were able to read the email that I just sent.

06:25.860 --> 06:28.100
Our agent was able to do it.

06:28.220 --> 06:29.340
That's pretty cool.

06:29.460 --> 06:36.180
Uh, you can see now that we were able, with just a few clicks to get an agent, uh, reading emails.

06:36.180 --> 06:41.500
And as you saw, we could add more tools to be able to read them and also write them as well.

06:41.540 --> 06:41.860
Okay.

06:41.900 --> 06:44.820
And now I'm going to come up with, uh, another tool.

06:45.180 --> 06:49.940
I'd encourage you, by the way, to check the results of this tool and you'll see your recent emails

06:49.940 --> 06:50.580
appearing there.

06:50.580 --> 06:54.260
But we're going to come in here and we're going to create a new tool, another Gmail tool.

06:54.500 --> 06:59.470
This time I want it to be able to sort of send an email, but but not I want to be more careful than

06:59.470 --> 06:59.870
that.

06:59.870 --> 07:01.150
I don't want to give my lamb.

07:01.190 --> 07:03.630
Access to tools that I'm not completely comfortable.

07:03.630 --> 07:07.550
So what I'm going to do is I'm going to have it be able to create a draft resources.

07:07.550 --> 07:09.230
Draft operation is create.

07:09.230 --> 07:12.430
It can choose the subject and it will be a text email.

07:12.430 --> 07:19.270
It can choose the message, but I'm only going to allow it to be sent or to have in the two email will

07:19.270 --> 07:22.430
have to be to my other my gmail email address.

07:22.430 --> 07:24.870
I don't want it to be able, even though it's only a draft.

07:24.870 --> 07:29.630
I'm going to really constrain it because I want to be in total control of this.

07:29.990 --> 07:31.110
So that's what I've got.

07:31.230 --> 07:35.670
Uh, you could press that button if you wanted it to decide who the email was going to itself.

07:35.830 --> 07:37.110
Um, so there we go.

07:37.150 --> 07:38.550
That is what we're going to do.

07:38.590 --> 07:46.030
I'm going to now come back to here, and now I'm going to to ask my next question to my agent, okay.

07:46.070 --> 07:59.400
And I'm going to say, please draft an email that, uh, says that, uh, I very much Agree with this

07:59.400 --> 08:00.200
sentiment.

08:01.640 --> 08:04.000
This is huge news.

08:04.360 --> 08:05.320
All right.

08:05.480 --> 08:08.200
And so we're asking our agents to do that.

08:08.200 --> 08:10.840
And it's going to create a draft in Gmail.

08:10.840 --> 08:14.520
And it says the workflow has been successfully completed.

08:14.800 --> 08:16.000
Now I'm going to go and check.

08:16.160 --> 08:17.720
And I've come back into my email program.

08:17.720 --> 08:24.160
And sure enough right here, there is indeed a draft email that is coming from me to me that says,

08:24.160 --> 08:24.920
Hi Edward.

08:24.960 --> 08:28.840
I call myself by my my, my formal name, like my my parents call me.

08:29.000 --> 08:30.960
Uh, I very much agree with your sentiment.

08:30.960 --> 08:31.960
This is huge news.

08:31.960 --> 08:37.960
The possibilities ahead are truly exciting with that little dead giveaway of the long m dash as the

08:37.960 --> 08:40.760
the hint that this was a GPT generated.

08:40.760 --> 08:41.920
Best regards editor.

08:41.920 --> 08:43.360
I'm very formal with myself.

08:43.560 --> 08:45.280
Uh, but there you have it.

08:45.320 --> 08:46.600
Super simple.

08:46.600 --> 08:52.720
We got our agent to read an email and then to draft a response to it.

08:52.760 --> 08:54.720
It was all perfectly straightforward.

08:54.720 --> 08:55.600
Let's tidy this up.

08:55.600 --> 08:56.280
There we go.

08:56.320 --> 08:58.170
It was all perfectly straightforward.

08:58.170 --> 08:59.690
And of course we could have gone further.

08:59.690 --> 09:04.570
We could have had it create a new email and respond to it and save it and submit it.

09:04.930 --> 09:11.250
But we chose to be to have more constraints, to only give our agent access to the tools that we were

09:11.250 --> 09:11.810
comfortable with.

09:11.890 --> 09:17.490
In my case, only drafting an email and only drafting an email where the recipient was my own Gmail

09:17.490 --> 09:18.090
account.

09:18.090 --> 09:20.370
So I was very careful with this.

09:20.610 --> 09:25.170
And that's a good, good practice until you're comfortable that you have the right checks and balances

09:25.170 --> 09:30.210
in place, only equip your agent with tools that you are comfortable with it using.

09:30.570 --> 09:34.850
And so we have we have read email and we have drafted a response.

09:35.050 --> 09:40.370
And you can imagine, as I said to myself, the the possibilities are huge.

09:40.370 --> 09:43.290
There is so much that you could do with that.

09:43.290 --> 09:45.970
And of course in due course we will be doing so much.

09:46.330 --> 09:48.810
But baby steps, that's good enough for now.

09:49.050 --> 09:50.610
Let's let's go to the wrap.

09:50.650 --> 09:51.730
And there we have it.

09:51.730 --> 09:54.770
That completes day three of week one.

09:54.810 --> 09:58.660
We have done our first few integrations and they were juicy ones.

09:58.660 --> 10:03.260
We integrated well, you know, I say we integrated with docs, we integrated with Google Sheets, but

10:03.260 --> 10:06.260
I'm using docs in the more general sense of the Google Drive.

10:06.420 --> 10:11.940
So so we've done that integration and we integrated with email and you should be experimenting.

10:11.940 --> 10:15.780
The whole purpose of this is not just to listen to what I have to say, but to do it yourself.

10:15.780 --> 10:20.900
It's the best way to learn, the best way to build expertise, build a few workflows, look at the nodes,

10:20.900 --> 10:27.220
look at the actual tool uses and see what got passed in and what came out, and experiment with a few

10:27.260 --> 10:28.140
workflows.

10:28.340 --> 10:31.100
And tomorrow we're going to get more into integrations.

10:31.100 --> 10:32.060
We're going to do more.

10:32.100 --> 10:37.180
We're going to keep looking at the JSON and the table, and we're going to get more and more comfortable

10:37.180 --> 10:40.100
with integrating with stuff and with data.

10:40.300 --> 10:41.700
And with that.

10:41.940 --> 10:43.740
That concludes week one.

10:43.780 --> 10:44.300
Day three.

10:44.340 --> 10:47.300
Can you believe it 20% of the way through already?

10:47.340 --> 10:49.460
Maybe you can, because already we've got a lot.

10:49.500 --> 10:50.620
We've been doing lots of stuff.

10:50.620 --> 10:54.660
We've built what could basically be an automated business process already.

10:54.660 --> 10:56.740
Well, it just gets better and better.

10:56.740 --> 10:57.620
I'll see you tomorrow.
