WEBVTT

00:00.120 --> 00:00.640
Okay.

00:00.680 --> 00:05.960
First up, we're going to build an integration with something that will send us push notifications to

00:06.000 --> 00:06.800
our phones.

00:06.840 --> 00:11.760
I'm going to use a tool called pushover, which is a nifty little tool which I love.

00:11.760 --> 00:13.160
I use it in all my courses.

00:13.160 --> 00:16.960
It's so straightforward and it's free for the first month at least.

00:17.000 --> 00:21.520
And after then it's a tiny amount, but you only need it for the duration of this course unless you

00:21.560 --> 00:22.720
unless you fall in love with it.

00:22.880 --> 00:26.120
Uh, and so first up, please go to pushover.

00:27.320 --> 00:27.840
Here it is.

00:27.880 --> 00:28.320
Pushover.

00:28.560 --> 00:28.880
Net.

00:29.880 --> 00:31.680
Net, uh, and go to pushover.

00:31.840 --> 00:32.240
Net.

00:32.520 --> 00:34.000
And this is what it looks like.

00:34.040 --> 00:38.360
And the first thing you want to do is go to to sign up and create a new account.

00:38.640 --> 00:44.280
Now, when you create a new account, you are immediately going to see on the page when you log in a

00:44.680 --> 00:52.040
API key called your user token or your user API key, and it starts with the letter U and it's there

00:52.040 --> 00:53.120
on the top right.

00:53.320 --> 00:57.120
And that is the first of two tokens that you care about.

00:57.160 --> 01:01.040
Now I'm going to go over here to this is the page that you see when you log in.

01:01.040 --> 01:06.290
And my user token is just above where my mouse is there, because it prints it right on your front screen,

01:06.290 --> 01:07.490
so I can't share it with you.

01:07.530 --> 01:08.930
Otherwise you'll see everything.

01:09.130 --> 01:09.730
Uh, so.

01:09.730 --> 01:14.130
So this is the first of the two tokens that you need, the two API keys.

01:14.490 --> 01:18.970
You the second one you need, you have to create a new application.

01:18.970 --> 01:19.610
Click here.

01:19.610 --> 01:23.050
Create an application slash API token.

01:23.090 --> 01:26.330
You go into there and you give your application a name.

01:26.330 --> 01:28.770
It can be any name you want, whatever you want.

01:28.930 --> 01:35.250
And then when you do that and you create it, you get a second token which is called the application

01:35.250 --> 01:35.930
token.

01:35.930 --> 01:38.130
And this token begins with a letter A.

01:38.490 --> 01:43.450
So you now have two tokens, one that starts with the letter U and is for your whole user level, and

01:43.450 --> 01:46.890
one which starts with the letter A, which is application level.

01:47.370 --> 01:52.690
And now now that you have those, the only other thing to do is to install on your phone, your iPhone

01:52.690 --> 01:55.570
or your Android phone the pushover app.

01:55.770 --> 02:00.930
And then when you've done that, you'll see that it'll appear here and the list of devices, uh, and

02:00.930 --> 02:06.980
then you will be connected and we are ready to start sending push notifications from N810.

02:07.020 --> 02:12.020
And obviously you can also check with this screen here that you can receive notifications properly.

02:12.060 --> 02:12.660
All right.

02:12.700 --> 02:13.980
I'm going back to N810 now.

02:13.980 --> 02:15.820
And I've already logged in and selected my instance.

02:15.820 --> 02:16.780
And you're now pros.

02:16.780 --> 02:21.620
You know about that I'm going to create a new blank workflow by pressing the Create Workflow button.

02:21.620 --> 02:25.700
Here I'm going to add on the first step and by pressing Add First Step.

02:25.860 --> 02:28.340
And it's going to be on chat message.

02:28.500 --> 02:30.060
And then I'm going to press escape.

02:30.100 --> 02:33.820
I have to click and press escape to come back here again okay.

02:34.060 --> 02:36.180
Next up I'm going to press the plus button.

02:36.180 --> 02:40.980
I'm going to add AI AI agent and click escape.

02:41.300 --> 02:42.380
Give it the chat model.

02:42.380 --> 02:43.740
I will give it open AI.

02:43.780 --> 02:46.900
You can use any any ones that you like.

02:47.260 --> 02:51.380
And there we have our chat model set up okay.

02:51.380 --> 02:52.980
And we'll give it the simple memory.

02:53.460 --> 02:56.060
This is all very expected.

02:56.220 --> 02:58.740
And now it's time to add a tool.

02:58.980 --> 03:03.620
And just before I create the tool reminder that you can click this button here, tidy up just to make

03:03.750 --> 03:05.070
everything look pretty.

03:05.350 --> 03:05.910
All right.

03:06.190 --> 03:09.030
Press the plus to the tool, and I'm going to search for pushover.

03:09.030 --> 03:11.550
And there is indeed a pushover tool.

03:11.710 --> 03:12.710
Here it comes.

03:12.910 --> 03:13.910
So up it comes.

03:13.910 --> 03:17.150
And the first step is the authentication step.

03:17.150 --> 03:19.190
We need to select a credential.

03:19.310 --> 03:22.230
So we go here and we say create new credential.

03:22.430 --> 03:30.110
And this as I say this is the first type of authentication the easy kind just an API key.

03:30.430 --> 03:36.110
Now the thing to know is that the API key that you're going to paste in here needs to be the the one

03:36.110 --> 03:43.150
that begins with the letter A, the application level token that you got when you created a new application.

03:43.430 --> 03:43.830
Okay.

03:43.870 --> 03:44.630
That's the one.

03:44.630 --> 03:47.030
If it doesn't begin with the letter A, you've got the wrong one.

03:47.030 --> 03:48.990
So that's what I'm pasting in here.

03:49.190 --> 03:50.670
And I'm now going to press save.

03:50.670 --> 03:51.790
And it's going to think about it.

03:51.790 --> 03:54.230
And it's going to go green because I got it right.

03:54.430 --> 03:55.230
And that's what you should see.

03:55.230 --> 03:56.830
If you don't see green you've got something wrong.

03:56.830 --> 03:57.710
Go back and check.

03:57.950 --> 03:59.590
Uh it should begin with the letter A.

03:59.910 --> 04:03.030
So I come back and uh no thank you.

04:03.230 --> 04:06.830
And we've, we've connected to the pushover account.

04:06.870 --> 04:07.430
Okay.

04:07.470 --> 04:08.150
There's next.

04:08.190 --> 04:10.190
This other field user key.

04:10.350 --> 04:11.590
And guess what that needs to be.

04:11.630 --> 04:13.950
That needs to be the you one.

04:13.990 --> 04:19.190
The long key that you see on the page as soon as you've logged in to pushover.

04:19.190 --> 04:22.110
That has the letter U as the first letter that goes there.

04:22.110 --> 04:27.110
And this this field shows up in full when I paste, so I'm not going to do it right now.

04:27.270 --> 04:32.110
The other thing I want to show you is that this message field, this is what will actually get sent.

04:32.110 --> 04:37.150
If you put the word bananas in there, then any time you use this, this tool, it will always send

04:37.190 --> 04:38.670
bananas to your phone.

04:38.670 --> 04:39.630
That wouldn't be much good.

04:39.630 --> 04:43.550
We want the LM to get to choose what to put in there.

04:43.670 --> 04:46.270
And that's why we press this button here.

04:46.310 --> 04:51.310
Let the model define this parameter defined automatically by the model.

04:51.310 --> 04:54.750
That means that the LM gets to choose what goes in that field.

04:54.750 --> 04:56.430
And that's exactly what we want.

04:56.470 --> 04:59.750
So now I'm going to paste in my user key and then press save.

05:00.070 --> 05:00.990
Okay I've done that.

05:00.990 --> 05:01.830
So I said press save.

05:01.830 --> 05:04.190
But I actually pressed escape to come back here.

05:04.190 --> 05:06.440
But it is also often worth pressing.

05:06.440 --> 05:07.400
Save, save.

05:07.400 --> 05:10.640
You see here is currently showing in red like that.

05:10.640 --> 05:15.480
You can either press Ctrl S on a PC command, S on a mac or click save.

05:15.600 --> 05:19.920
It says saving and now it says saved and that is no longer highlighted.

05:20.080 --> 05:23.040
Uh, and so that's that's something to do often.

05:23.080 --> 05:23.400
All right.

05:23.400 --> 05:26.240
Let's press this button to, to nicely reorganize things.

05:26.640 --> 05:28.320
I'm going to add one more tool in here.

05:28.320 --> 05:31.640
I'm just going to add a little tool and type the word date.

05:31.640 --> 05:34.760
And I'm going to put a date and time tool in there.

05:34.960 --> 05:36.560
Uh, and uh here we go.

05:36.840 --> 05:42.000
Uh, and I'm going to be able to have an operation called Get Current Date.

05:42.000 --> 05:45.720
You can see the different, uh, options that you have here.

05:45.840 --> 05:51.560
Uh, we're going to get current dates, uh, and, uh, yeah, we're just going to leave it at that.

05:51.560 --> 05:56.840
And this is a little tool that allows our Lem to get the current date.

05:56.880 --> 05:57.920
As simple as that.

05:58.200 --> 06:01.480
Okay, not very sophisticated, but maybe it'll be useful for us.

06:01.480 --> 06:02.080
We'll see.

06:02.240 --> 06:03.600
Okay, let's give this a whirl.

06:03.600 --> 06:04.800
I'm gonna say hi there.

06:06.160 --> 06:09.170
And you're not impressed with that starting point when it does its thing?

06:09.170 --> 06:09.450
Hello.

06:09.450 --> 06:10.650
How can I assist you today?

06:10.690 --> 06:11.450
You know this too well.

06:11.450 --> 06:11.730
All right.

06:11.730 --> 06:23.210
I'm going to say please send me a push notification with today's date and watch the colors on the right.

06:25.410 --> 06:26.170
And there we go.

06:26.210 --> 06:27.130
Did you hear the boom boom?

06:27.450 --> 06:29.090
I got a push notification.

06:29.090 --> 06:31.610
Today's date is, uh.

06:31.610 --> 06:32.770
And then we have today's date.

06:32.850 --> 06:33.250
Ha!

06:33.530 --> 06:34.290
It works.

06:34.290 --> 06:35.010
Success.

06:35.010 --> 06:38.810
By the way, if you didn't get a noise, there's various notification settings as to whether or not

06:38.810 --> 06:39.850
it goes catching.

06:39.850 --> 06:45.650
And I had to turn the priority to high on on the pushover tool to make it make that noise, which was

06:45.650 --> 06:46.450
very satisfying.

06:46.490 --> 06:48.250
But you don't need the noise if you don't want it.

06:48.250 --> 06:50.010
But I got the notification.

06:50.010 --> 06:51.490
Hopefully you did too.

06:51.770 --> 06:55.770
If not, then just grit your teeth, go back, check the keys, do it again.

06:55.770 --> 07:01.610
But that shows you the easiest way to build an integration using API keys, which is how it works with

07:01.610 --> 07:02.250
pushover.

07:02.250 --> 07:08.650
And now you have the capability to add push notifications to any workflow you build in Naa10.
