WEBVTT

00:00.120 --> 00:02.800
Okay, so click here to rename this old one.

00:02.800 --> 00:06.840
Let's, let's let's give it something a name like Nan orchestrates.

00:07.640 --> 00:12.680
And then save that and then go back here again.

00:12.680 --> 00:15.640
And let's create a new brand new workflow.

00:15.640 --> 00:18.600
We're going to start with a little workflow here.

00:18.600 --> 00:24.520
And then and then we're going to go and look over at 11 labs okay.

00:24.560 --> 00:27.680
So for this workflow how do you think it's going to start.

00:27.720 --> 00:28.520
What's the trigger.

00:28.520 --> 00:30.080
What's going to be the first step.

00:30.560 --> 00:36.600
The trigger of course is going to be a webhook, because we're going to want this to be summoned by

00:36.600 --> 00:38.200
11 labs driving us.

00:38.200 --> 00:41.360
So so for sure the trigger will be some kind of a webhook.

00:41.520 --> 00:45.680
And as before, it's going to be post because it's pushing in information and we're going to want to

00:45.680 --> 00:49.200
respond with a respond to webhook node.

00:49.200 --> 00:52.480
So this this is going to be the starting point for us.

00:52.640 --> 00:53.760
So what do we want that to go into.

00:53.760 --> 01:01.140
We want that to go into one of our, uh, good old AI agents and uh, let's let's give ourselves an

01:01.140 --> 01:02.020
AI agent.

01:02.020 --> 01:02.940
Here it is.

01:03.100 --> 01:04.100
This isn't going to work.

01:04.100 --> 01:04.580
We know that.

01:04.580 --> 01:07.460
We're going to come back and figure out what that needs to be later.

01:07.860 --> 01:08.580
Chat model.

01:08.580 --> 01:09.740
We're going to use Gemini again.

01:09.780 --> 01:14.020
You can use anything you want, but but Gemini is the one I'm going to use for a bit.

01:14.020 --> 01:21.740
And again we want to use the latest and greatest, which is going to be Gemini three preview for me,

01:21.740 --> 01:23.620
and it might be Gemini three preview.

01:23.620 --> 01:27.900
I want to use not Pro preview, but I'm going to have to type it in.

01:27.900 --> 01:28.780
I can't find it.

01:28.820 --> 01:29.780
Models.

01:29.980 --> 01:32.580
Slash Gemini Dash three.

01:32.620 --> 01:32.940
Dash.

01:32.980 --> 01:33.380
Flash.

01:33.420 --> 01:33.900
Preview.

01:33.940 --> 01:34.660
There it is.

01:35.460 --> 01:37.540
And there we have it.

01:38.340 --> 01:41.900
Okay, uh, that is our, uh, chat model.

01:42.100 --> 01:46.220
Um, we're not going to have any memory because this isn't the real chat.

01:46.220 --> 01:48.860
This is being used to do some action.

01:49.100 --> 01:52.100
And so what what action are we going to have our agent do?

01:52.140 --> 01:52.900
Well, I tell you what.

01:52.940 --> 01:54.940
Why don't we go with an old chestnut?

01:54.940 --> 01:56.740
We're going to use a tool here.

01:56.740 --> 02:00.400
And we're going to use an old friend Google Sheets tool.

02:00.440 --> 02:02.720
Let's use Google Sheets because we know it well.

02:02.720 --> 02:05.840
We don't want to get stuck on another integration right now.

02:06.160 --> 02:13.560
Uh, and uh, we might as well go with our stock portfolio since we have that sheet all set up and we

02:13.600 --> 02:19.880
will use this particular flow is going to be able to look up, uh, how much of some stock we have in

02:19.880 --> 02:20.960
our portfolio.

02:20.960 --> 02:23.360
So let's configure it for that okay.

02:23.400 --> 02:27.160
And so I just one thing I'm going to do I'm actually going to change the tool description I'm going

02:27.200 --> 02:28.520
to say set manually.

02:28.520 --> 02:42.000
And I'm going to say use this tool to retrieve the uh equity portfolio of the user to answer questions

02:42.880 --> 02:45.240
about their holdings.

02:46.920 --> 02:47.560
Okay.

02:47.600 --> 02:48.440
Very good.

02:48.640 --> 02:53.120
Uh, and now let's go back and give this a whirl.

02:53.120 --> 02:56.640
So in order to give it a whirl, we're going to have to, to temporarily use a chat.

02:56.640 --> 03:00.020
So let's, let's, uh, let's turn the power of this thing off.

03:00.220 --> 03:02.180
Let's add a new trigger.

03:02.220 --> 03:10.380
Let's have a trigger which is going to be, um, a, uh, so I click down at the bottom there to, to

03:10.420 --> 03:15.060
to add another trigger, and we're going to have this be on chat message.

03:15.420 --> 03:17.260
So let's see our chat.

03:19.100 --> 03:23.660
Uh, and uh when a chat message is received that's going to go in here as well.

03:23.660 --> 03:24.620
You can have multiple.

03:24.620 --> 03:25.900
This one is switched off.

03:26.180 --> 03:30.060
And now we'll open up this chat and we will say hi there.

03:30.860 --> 03:31.980
And we'll add in memory.

03:31.980 --> 03:33.660
Why not just temporarily.

03:33.660 --> 03:34.580
Simple memory.

03:35.660 --> 03:36.300
Hi there.

03:37.900 --> 03:38.260
Check.

03:38.260 --> 03:39.060
It works.

03:40.580 --> 03:40.980
Hi.

03:41.020 --> 03:41.780
How can I help you?

03:41.820 --> 03:43.860
If you'd like to check out your equity portfolio.

03:44.060 --> 03:45.060
Uh, yes.

03:45.260 --> 03:51.500
How many SPI do I hold off?

03:51.500 --> 03:52.900
It goes, off it goes.

03:52.900 --> 03:53.140
Check.

03:53.140 --> 03:53.940
Everything works.

03:53.940 --> 03:56.100
I currently hold two shares of SPI.

03:56.260 --> 03:57.180
Excellent.

03:57.180 --> 03:57.940
All right.

03:57.980 --> 04:04.200
This is working, we can now safely delete this chat node right here.

04:04.560 --> 04:09.840
We can re-activate this one here by pressing the power button again.

04:09.840 --> 04:11.520
And it comes back on again.

04:11.520 --> 04:13.160
And we can also remove the memory.

04:13.160 --> 04:16.320
We don't care about memory since this is going to be used in a workflow.

04:16.520 --> 04:17.800
Uh delete this.

04:18.200 --> 04:19.240
Uh, there we go.

04:19.480 --> 04:20.960
And we've now tested it.

04:21.000 --> 04:25.960
We know that we can use this to collect, uh, we, uh, we're almost ready.

04:25.960 --> 04:28.520
Almost ready to go to 11, lads.

04:28.520 --> 04:29.120
One more thing to do.

04:29.160 --> 04:29.560
What is that?

04:29.560 --> 04:30.720
What's the one more thing to do?

04:30.760 --> 04:36.640
Okay, we need to add in something which is going to make sure that it replies to that webhook with

04:36.640 --> 04:39.120
whatever the the output of the agent is.

04:39.120 --> 04:45.040
So we press the plus button and it's respond to webhook is the name of the node we want to put it in

04:45.080 --> 04:49.520
there and we can say respond with the first incoming item.

04:49.520 --> 04:55.480
So respond with this which is going to give it JSON, which is going to say you currently hold two shares

04:55.480 --> 04:56.240
of Spy.

04:56.280 --> 04:58.240
That seems perfect I think.

04:58.240 --> 05:00.340
So We'll, uh, we'll leave it there.

05:00.380 --> 05:00.980
That seems good.

05:00.980 --> 05:06.740
We just need to make sure that I correctly set this up to using respond to webhook node, which I did,

05:07.020 --> 05:09.940
and this should now be almost perfect.

05:09.980 --> 05:15.020
The missing thing is that if we look here, we've still got this same connected chat trigger node.

05:15.020 --> 05:17.220
So when we first run this, it's going to fail.

05:17.260 --> 05:20.540
We're going to have to come in and fix this, which we will do.

05:20.980 --> 05:24.900
But first we go over to 11 labs and get this show on the road.

05:24.900 --> 05:26.900
So here we are back in 11 labs.

05:26.900 --> 05:29.020
We're still over in the developers section.

05:29.020 --> 05:31.940
Now we want to go back to the agents world.

05:31.940 --> 05:37.700
We're back to creating an agent in 11 labs, because we're going to have a workflow in 11 labs and in

05:37.700 --> 05:38.260
Nan.

05:38.500 --> 05:44.460
And so I'm going to press the new agent button, and we're going to go with a blank agent, and we will

05:44.460 --> 05:47.300
call it our na n agent.

05:47.580 --> 05:49.700
And we'll say create agent.

05:50.500 --> 05:52.020
And here it is.

05:52.500 --> 05:57.020
And uh, the system prompt can be you are a helpful assistant.

05:57.220 --> 06:00.570
Uh, we can We can have, uh, Eric be our person.

06:00.570 --> 06:01.530
Oh, do we want Eric?

06:01.530 --> 06:03.370
Let's have a look at who we've got.

06:03.410 --> 06:05.570
We should pick different people from time to time.

06:05.570 --> 06:06.930
We've had Jason.

06:06.930 --> 06:08.090
We've had, uh.

06:08.370 --> 06:12.570
Um, maybe we should try Russell this time.

06:13.250 --> 06:15.210
Uh, let's go with Russell.

06:15.490 --> 06:16.770
Uh, okay.

06:16.810 --> 06:17.930
And we've got more options.

06:17.930 --> 06:18.930
Should we wish them.

06:19.210 --> 06:20.370
Um, okay.

06:20.410 --> 06:26.010
And now we're going to go to the section that we I told you we would get to eventually, which is tools.

06:26.210 --> 06:26.690
Okay.

06:26.730 --> 06:28.090
So go to tools.

06:28.170 --> 06:30.370
Here we go I'm going to press Add Tool.

06:30.370 --> 06:31.730
We want to add a new tool.

06:31.730 --> 06:34.650
And the tool we're going to add is going to be a webhook tool.

06:35.290 --> 06:38.650
So uh describe the LM how and when to use the tool.

06:38.650 --> 06:44.250
So the name of the tool is going to be uh question tool.

06:44.530 --> 06:45.330
Oh that's not very clear.

06:45.330 --> 06:51.650
Let's make it a equity portfolio question tool description.

06:51.650 --> 07:00.910
Use this tool to ask uh, any question about the users?

07:01.070 --> 07:14.750
What about the users equity portfolio to a specialist assistant who should be able to answer?

07:15.310 --> 07:20.990
Okay, so the method I think we picked was was post, uh, which means we're going to be posting in

07:20.990 --> 07:23.830
some information because we have a question now it needs the URL.

07:23.830 --> 07:27.070
So let's go back to our workflow.

07:27.270 --> 07:28.670
Click on the webhook.

07:28.950 --> 07:30.510
Take the this test URL.

07:30.550 --> 07:37.350
You see there that the method is post could be post or get, but it's post back to 11 labs paste in

07:37.390 --> 07:38.390
the URL.

07:38.390 --> 07:41.950
So you see that's the URL that's been set up in the other system.

07:41.950 --> 07:44.710
And we're using that so we can call it's webhook.

07:44.710 --> 07:46.950
We can call and it ends webhook.

07:47.270 --> 07:48.590
There's a timeout time.

07:48.590 --> 07:50.710
Let's turn that up because we know it's an assistant.

07:50.710 --> 07:51.830
So it might take longer.

07:52.030 --> 07:54.150
We'll give it 60s to timeout.

07:54.710 --> 08:01.410
Uh and We are going to, um look at this.

08:01.410 --> 08:07.410
This is interesting pre tool speech force the agent speech before tool execution or let it decide automatically

08:07.410 --> 08:08.450
based on recent.

08:08.490 --> 08:13.050
Let's let's force it to say say something so that it doesn't feel like there's dead air.

08:13.370 --> 08:14.890
Uh, okay.

08:15.290 --> 08:21.370
Now this is where where things get interesting when you do a post, uh, API call.

08:21.610 --> 08:23.810
And we will have more on this in due course.

08:23.810 --> 08:29.170
But when you have a post, it means that you can pass in a body stuff that you're posting.

08:29.170 --> 08:34.090
And this gives us an opportunity to specify some information that we want to send down with it.

08:34.090 --> 08:38.930
And this is where we're going to pass in the actual question that the agent is going to ask and enter

08:38.930 --> 08:39.570
research.

08:39.610 --> 08:40.050
Okay.

08:40.090 --> 08:47.450
So first up in this body section we need to explain to the LM what information is it sending to N810.

08:47.610 --> 08:54.770
And so what we would need to say here is that this is where you describe this.

08:54.770 --> 09:04.750
This is this contains a description of the question to ask the equity.

09:07.950 --> 09:11.630
Portfolio specialist.

09:12.910 --> 09:13.470
Okay.

09:13.590 --> 09:16.270
And now there's going to be one field.

09:16.270 --> 09:18.270
It's going to be a type string.

09:18.270 --> 09:19.350
It's just text.

09:19.510 --> 09:22.190
The identifier is going to be just the word question.

09:22.510 --> 09:36.310
And the description here is going to be the specific question about the users equity portfolio for the

09:36.310 --> 09:37.470
specialist to answer.

09:39.590 --> 09:42.390
Now I'm being a little bit pedantic here.

09:42.390 --> 09:48.590
You can get away with this being much simpler and just understand that this this is how the tool will

09:48.590 --> 09:50.750
be described to the LMS.

09:50.750 --> 09:53.550
So it knows it has to specify this information.

09:53.550 --> 09:57.970
And this will be then used to make a web request to n810.

09:58.210 --> 09:59.530
That's how it's going to work.

09:59.530 --> 10:01.410
So I think we've done all we need to do here.

10:01.770 --> 10:03.650
And we can just press add tool.

10:04.610 --> 10:08.290
Oh the function that you're not allowed spaces in here.

10:08.450 --> 10:08.850
Haha.

10:09.330 --> 10:11.010
Uh let's change that.

10:13.930 --> 10:14.730
Because it's got to.

10:14.810 --> 10:15.810
It's like a function name.

10:15.850 --> 10:16.330
Okay.

10:16.490 --> 10:17.890
So I think now we should be good.

10:18.410 --> 10:18.930
Yes.

10:19.130 --> 10:19.610
Okay.

10:19.650 --> 10:21.450
Equity portfolio question tool.

10:21.650 --> 10:22.770
So let's recap.

10:22.770 --> 10:28.410
What we've done is in 11 labs we've added a tool a tool that our agent is able to use.

10:28.410 --> 10:30.050
And we've described that tool.

10:30.050 --> 10:35.650
And we know that what that tool will actually do is make a web request to a webhook for N810.

10:35.810 --> 10:37.290
That's what the tool will do.

10:37.330 --> 10:41.810
We've configured it to point it to the endpoint that we took from N810.

10:41.970 --> 10:43.890
That's that's where it will point to.

10:44.090 --> 10:50.370
And we've used natural language to describe how to, to make this web request so that the LLM can fill

10:50.370 --> 10:54.210
in the fields to pass in its question for N810.

10:54.370 --> 10:56.410
We're pretty much ready to roll.
