Okay.
First up, we're going to build an integration with something that will send us push notifications to
our phones.
I'm going to use a tool called pushover, which is a nifty little tool which I love.
I use it in all my courses.
It's so straightforward and it's free for the first month at least.
And after then it's a tiny amount, but you only need it for the duration of this course unless you
unless you fall in love with it.
Uh, and so first up, please go to pushover.
Here it is.
Pushover.
Net.
Net, uh, and go to pushover.
Net.
And this is what it looks like.
And the first thing you want to do is go to to sign up and create a new account.
Now, when you create a new account, you are immediately going to see on the page when you log in a
API key called your user token or your user API key, and it starts with the letter U and it's there
on the top right.
And that is the first of two tokens that you care about.
Now I'm going to go over here to this is the page that you see when you log in.
And my user token is just above where my mouse is there, because it prints it right on your front screen,
so I can't share it with you.
Otherwise you'll see everything.
Uh, so.
So this is the first of the two tokens that you need, the two API keys.
You the second one you need, you have to create a new application.
Click here.
Create an application slash API token.
You go into there and you give your application a name.
It can be any name you want, whatever you want.
And then when you do that and you create it, you get a second token which is called the application
token.
And this token begins with a letter A.
So you now have two tokens, one that starts with the letter U and is for your whole user level, and
one which starts with the letter A, which is application level.
And now now that you have those, the only other thing to do is to install on your phone, your iPhone
or your Android phone the pushover app.
And then when you've done that, you'll see that it'll appear here and the list of devices, uh, and
then you will be connected and we are ready to start sending push notifications from N810.
And obviously you can also check with this screen here that you can receive notifications properly.
All right.
I'm going back to N810 now.
And I've already logged in and selected my instance.
And you're now pros.
You know about that I'm going to create a new blank workflow by pressing the Create Workflow button.
Here I'm going to add on the first step and by pressing Add First Step.
And it's going to be on chat message.
And then I'm going to press escape.
I have to click and press escape to come back here again okay.
Next up I'm going to press the plus button.
I'm going to add AI AI agent and click escape.
Give it the chat model.
I will give it open AI.
You can use any any ones that you like.
And there we have our chat model set up okay.
And we'll give it the simple memory.
This is all very expected.
And now it's time to add a tool.
And just before I create the tool reminder that you can click this button here, tidy up just to make
everything look pretty.
All right.
Press the plus to the tool, and I'm going to search for pushover.
And there is indeed a pushover tool.
Here it comes.
So up it comes.
And the first step is the authentication step.
We need to select a credential.
So we go here and we say create new credential.
And this as I say this is the first type of authentication the easy kind just an API key.
Now the thing to know is that the API key that you're going to paste in here needs to be the the one
that begins with the letter A, the application level token that you got when you created a new application.
Okay.
That's the one.
If it doesn't begin with the letter A, you've got the wrong one.
So that's what I'm pasting in here.
And I'm now going to press save.
And it's going to think about it.
And it's going to go green because I got it right.
And that's what you should see.
If you don't see green you've got something wrong.
Go back and check.
Uh it should begin with the letter A.
So I come back and uh no thank you.
And we've, we've connected to the pushover account.
Okay.
There's next.
This other field user key.
And guess what that needs to be.
That needs to be the you one.
The long key that you see on the page as soon as you've logged in to pushover.
That has the letter U as the first letter that goes there.
And this this field shows up in full when I paste, so I'm not going to do it right now.
The other thing I want to show you is that this message field, this is what will actually get sent.
If you put the word bananas in there, then any time you use this, this tool, it will always send
bananas to your phone.
That wouldn't be much good.
We want the LM to get to choose what to put in there.
And that's why we press this button here.
Let the model define this parameter defined automatically by the model.
That means that the LM gets to choose what goes in that field.
And that's exactly what we want.
So now I'm going to paste in my user key and then press save.
Okay I've done that.
So I said press save.
But I actually pressed escape to come back here.
But it is also often worth pressing.
Save, save.
You see here is currently showing in red like that.
You can either press Ctrl S on a PC command, S on a mac or click save.
It says saving and now it says saved and that is no longer highlighted.
Uh, and so that's that's something to do often.
All right.
Let's press this button to, to nicely reorganize things.
I'm going to add one more tool in here.
I'm just going to add a little tool and type the word date.
And I'm going to put a date and time tool in there.
Uh, and uh here we go.
Uh, and I'm going to be able to have an operation called Get Current Date.
You can see the different, uh, options that you have here.
Uh, we're going to get current dates, uh, and, uh, yeah, we're just going to leave it at that.
And this is a little tool that allows our Lem to get the current date.
As simple as that.
Okay, not very sophisticated, but maybe it'll be useful for us.
We'll see.
Okay, let's give this a whirl.
I'm gonna say hi there.
And you're not impressed with that starting point when it does its thing?
Hello.
How can I assist you today?
You know this too well.
All right.
I'm going to say please send me a push notification with today's date and watch the colors on the right.
And there we go.
Did you hear the boom boom?
I got a push notification.
Today's date is, uh.
And then we have today's date.
Ha!
It works.
Success.
By the way, if you didn't get a noise, there's various notification settings as to whether or not
it goes catching.
And I had to turn the priority to high on on the pushover tool to make it make that noise, which was
very satisfying.
But you don't need the noise if you don't want it.
But I got the notification.
Hopefully you did too.
If not, then just grit your teeth, go back, check the keys, do it again.
But that shows you the easiest way to build an integration using API keys, which is how it works with
pushover.
And now you have the capability to add push notifications to any workflow you build in Naa10.