WEBVTT

00:00.280 --> 00:03.120
So now when we know what we cover in this section, let's dive in.

00:03.120 --> 00:07.880
The first practical exercise we'll accomplish and actually we'll build a telegram chatbot.

00:08.240 --> 00:13.240
Moreover, I need to mention that for each project we cover in this chapter, I prepared for you the

00:13.240 --> 00:18.560
file that explains and the entire automation step by step, and you can download that in the resources

00:18.560 --> 00:19.560
of this material.

00:19.640 --> 00:22.520
So let's say meanwhile we are creating the entire project.

00:22.560 --> 00:27.400
And you can go over here and actually, you know, have all of the data right there explained.

00:27.480 --> 00:28.120
Um, yeah.

00:28.160 --> 00:29.200
Very clearly.

00:29.480 --> 00:32.200
However, now let's read what we have inside.

00:32.200 --> 00:38.240
So in this exercise you will create your very own telegram chatbot using an AI then and OpenAI, this

00:38.240 --> 00:43.040
bot will respond to user messages in telegram using GPT ChatGPT responses.

00:43.200 --> 00:45.840
You will build the automation using these steps.

00:45.840 --> 00:48.120
The first step is trigger telegram.

00:48.120 --> 00:51.720
So start the workflow whenever someone sends a message to your telegram bot.

00:52.160 --> 00:54.120
And the second step is a agent.

00:54.120 --> 00:55.760
So we are using here ChatGPT.

00:56.000 --> 01:01.970
So here use the built in agent node connected to OpenAI chat model to generate smart replies.

01:02.170 --> 01:05.010
And last but not least, we've got respond via telegram.

01:05.010 --> 01:09.010
So take the response from GPT and send it back to the user using the telegram node.

01:09.170 --> 01:13.690
And as you can see right there, like this entire project is not that hard to set up.

01:13.930 --> 01:19.090
However, the most common problem can be with actually I'm creating credentials for telegram.

01:19.290 --> 01:25.330
Also remember in this course Damien actually explains you step by step, like we've got the entire section

01:25.330 --> 01:31.010
where Damien explains you step by step how to connect different applications to nine.

01:31.050 --> 01:32.690
So create credentials for them.

01:32.730 --> 01:39.130
For example, for deep sick OpenAI here, also for telegram, Google Drive, Google Services and so

01:39.130 --> 01:39.530
on.

01:39.570 --> 01:40.730
So it's very, very important.

01:40.730 --> 01:47.930
So for an example, when you have an A then paid subscription, you can set up let's say Google Sheets

01:47.970 --> 01:52.170
and here Google Docs and Google Drive just by clicking Sign in with Google.

01:52.210 --> 01:59.410
However, when you are hosting I'm here and I then on your server or inside your website and so on.

01:59.610 --> 02:05.050
However, when you're using an addon on your computer, using Docker or even your self-hosted using

02:05.050 --> 02:10.770
some host services, and in general you need to manually set up credentials.

02:10.770 --> 02:15.730
So it's very, very important also in this course and we've got the video about how to set up, you

02:15.730 --> 02:18.330
know an then on your own computer.

02:18.330 --> 02:20.410
So you can go over here and check it out.

02:20.410 --> 02:21.530
It's very important.

02:21.530 --> 02:27.170
And again remember right there you need to manually like set up your credentials so you don't have this

02:27.210 --> 02:33.330
option for an example like we have in the cloud that we can like connect Google services in one click,

02:33.730 --> 02:35.010
you know with an addon.

02:35.010 --> 02:36.450
So pay that in mind.

02:36.650 --> 02:42.130
And for now also I've got for you very important information because it's very very crucial for this

02:42.130 --> 02:44.930
section which is based on practical exercises.

02:44.930 --> 02:47.090
We've got three approaches to follow.

02:47.130 --> 02:49.370
Actually one of them I'm so one of three.

02:49.890 --> 02:52.290
So in this section you will build real automations.

02:52.290 --> 02:54.930
There are a few ways you can do the exercises.

02:55.210 --> 02:57.810
The first one is to try it on your own.

02:58.090 --> 03:04.140
So you know we've got the videos and then what you do at the start of each video, I show you the finished

03:04.140 --> 03:05.060
automation.

03:05.060 --> 03:06.980
So here I'm also we've got a file.

03:06.980 --> 03:08.700
So here we've got the file.

03:09.020 --> 03:13.100
And like later I will show you the automation and then I will build it.

03:13.100 --> 03:15.940
So what you can do you can um actually you know watch this part.

03:15.980 --> 03:20.580
Only when I explained automation, I show how it looks like after we do this.

03:20.980 --> 03:28.140
Then you post the video, look at the file and try to build it yourself, then actually play the video

03:28.140 --> 03:29.700
and compare how you did it.

03:29.700 --> 03:35.140
So this approach I can say is for more advanced users actually that are more familiar with the Na,

03:35.140 --> 03:37.540
then they are very confident in using that.

03:37.540 --> 03:39.860
So you know actually also you can try it out.

03:39.860 --> 03:43.660
I really recommend to do this because by this way you learn a lot.

03:43.940 --> 03:46.460
The second approach is to build together with me.

03:46.460 --> 03:50.100
So this is recommended approach because actually we've got like different steps.

03:50.100 --> 03:51.980
However you know you can choose one of them.

03:52.340 --> 03:57.540
And so here watch the video and build the automation step by step with me I explain everything and it's

03:57.540 --> 03:59.580
great way to learn.

03:59.580 --> 03:59.830
them.

03:59.830 --> 04:04.510
So you've got here all of the steps explained, and you can get familiar with nada.

04:04.510 --> 04:06.110
And you can set up your credentials.

04:06.110 --> 04:08.230
You can set up your entire automation.

04:08.590 --> 04:10.670
And for sure you need to practice.

04:10.710 --> 04:11.430
You need to practice.

04:11.470 --> 04:12.470
You need to practice.

04:12.630 --> 04:14.910
Otherwise you you can't actually learn.

04:14.950 --> 04:20.870
And then like you can't learn it from only the theory you need to get actually action.

04:21.030 --> 04:25.550
So it's very crucial essential to follow one of these approaches.

04:25.870 --> 04:27.230
Watch first, then build.

04:27.230 --> 04:32.190
If you like to see the whole process first, just watch the video, then build the automation after.

04:32.390 --> 04:36.830
Also, it's really nice approach that lets you to practice a lot.

04:37.110 --> 04:43.710
However, I think like um, it depends from um, yeah, from the preference because I would like for

04:43.710 --> 04:46.510
an example to follow the first approach.

04:46.550 --> 04:49.710
However, for most people the second one will be the best.

04:49.710 --> 04:57.830
So like choose one for your own and for sure please again practice creating our exercises in this section.

04:58.150 --> 05:03.870
I need to also explain a very important fact, because in the later part of the course where we have

05:03.870 --> 05:10.590
very sophisticated automations that require a lot of steps, a lot of different agents, like a lot

05:10.630 --> 05:14.710
of different nodes, sometimes even it takes a few days to set it up.

05:14.710 --> 05:17.030
Seriously, like me and Damien.

05:17.070 --> 05:22.110
And sometimes we are setting up automations for a long time because, you know, you need to think,

05:22.270 --> 05:25.270
you need to design the entire workflow.

05:25.910 --> 05:30.710
Um, so here maybe sometimes, um, let's be realistic.

05:30.750 --> 05:34.350
You wouldn't like to set up the entire automation on your own.

05:34.390 --> 05:36.710
It would take a few days.

05:37.190 --> 05:38.510
Um, for an example.

05:38.510 --> 05:43.870
With more basic automations, I will strongly encourage you to practice building it on your own.

05:43.910 --> 05:48.310
However, let's be realistic with more advanced projects we've got for you the templates.

05:48.350 --> 05:49.670
Also, we can build them.

05:49.710 --> 05:53.150
However, obviously you won't build all of the automations on your own.

05:53.310 --> 06:00.440
However, in this chapter, I would like actually you to get into the action and build all of these

06:00.440 --> 06:02.800
projects because they are not that hard.

06:02.840 --> 06:03.120
They are.

06:03.160 --> 06:04.120
They are simple.

06:04.480 --> 06:06.440
They don't take a lot of time.

06:06.680 --> 06:14.000
So here I would like you to again get into the action and build a real project inside Nadine.

06:14.320 --> 06:14.760
All right.

06:14.800 --> 06:16.480
So maybe now you think I'm.

06:16.480 --> 06:20.080
Stop talking, start doing and creating the entire project.

06:20.120 --> 06:23.920
Yeah, I just wanted to explain that very clearly, so you understand.

06:23.960 --> 06:25.960
However, for now, let me actually show you.

06:26.200 --> 06:28.560
Yeah, how this automation looks like.

06:28.720 --> 06:30.760
So this agent first.

06:31.000 --> 06:31.640
First things first.

06:31.640 --> 06:33.760
We've got a note which is for the telegram.

06:34.000 --> 06:38.720
So here we actually send the message to our chatbot.

06:39.000 --> 06:44.720
Then we've got the note with our agent where we use ChatGPT model to create for us the response.

06:44.840 --> 06:49.040
And at the end our agent should return and for us a message.

06:49.160 --> 06:51.160
So this is our output node.

06:51.560 --> 06:52.840
And it's not that hard.

06:52.880 --> 06:53.800
It's very easy.

06:54.160 --> 06:58.690
And with all that being said, now let's build this agent from start to finish.

06:59.850 --> 07:00.730
So that's perfect.

07:00.730 --> 07:02.450
Let's start with the first step.

07:02.650 --> 07:06.690
Here we can add the first node which is on app event.

07:06.690 --> 07:09.690
And right there I can search for telegram.

07:10.410 --> 07:11.090
That's correct.

07:11.090 --> 07:12.090
I can pick that.

07:12.090 --> 07:14.290
And here we would like to trigger this.

07:14.490 --> 07:22.290
You know agent whenever we have a message there what's very important we need to set up our credential.

07:22.330 --> 07:23.570
And now what you can do.

07:23.730 --> 07:29.330
You can either stop the video and go over to the section where Damian explains how to set up actually

07:29.330 --> 07:34.850
the credential for for telegram with Na then or even now, I will show you very quickly how you can

07:34.850 --> 07:35.370
do this.

07:35.650 --> 07:38.050
So we can create new credential.

07:38.050 --> 07:40.730
And right there we need to have our token.

07:40.770 --> 07:41.370
All right.

07:41.930 --> 07:49.210
And what you can do right now either you can go ahead and continue with with the website version of

07:49.210 --> 07:53.290
telegram or just have an application on your desktop.

07:53.490 --> 07:56.210
So now I will use the application on my computer.

07:56.210 --> 07:58.460
And here I will set everything up.

07:59.180 --> 08:04.140
All right, so after you log in to your telegram account here, we need to do some specific actions

08:04.180 --> 08:06.860
actually to connect our telegram to Nadine.

08:06.860 --> 08:10.380
And now actually let me show you in general we need to create our bot.

08:10.620 --> 08:16.620
So we need to click here on the search option and search for the bot father.

08:18.020 --> 08:23.380
Right there we pick this um yeah this profile and we click on start.

08:24.100 --> 08:26.900
You've got all of the instructions right there how to operate that.

08:26.940 --> 08:29.220
However for now we need to type slash.

08:29.220 --> 08:31.660
So the new command and here new bot.

08:32.540 --> 08:33.500
All right a new bot.

08:33.540 --> 08:34.620
How are you going to call it.

08:34.620 --> 08:36.100
Please choose a name for your bot.

08:36.100 --> 08:40.500
So here um our first AI responder.

08:40.860 --> 08:42.140
Yeah we can name it.

08:42.180 --> 08:46.340
Hopefully we don't have any misspelling right there and now.

08:46.380 --> 08:46.660
Good.

08:46.700 --> 08:47.860
Now let's choose a username.

08:47.860 --> 08:48.860
So how do we call it.

08:48.860 --> 08:51.420
And here we need to provide the extension which is bot.

08:51.460 --> 08:54.940
So there let's paste it and provide a bot.

08:56.020 --> 08:56.420
All right.

08:56.420 --> 08:57.060
So done.

08:57.060 --> 08:58.500
Congratulations on your new bot.

08:58.540 --> 09:01.380
You will find it at and what is very important.

09:01.420 --> 09:07.420
Now you can see we've got http API that we need to copy and go over ahead.

09:07.620 --> 09:08.100
Um yeah.

09:08.140 --> 09:09.300
Back to our na den.

09:09.620 --> 09:11.860
And there we've got access token.

09:11.860 --> 09:15.220
We need to paste it and we can save.

09:15.380 --> 09:18.740
So by this way, we connected our telegram to Na Den.

09:18.780 --> 09:20.940
As you can see connection tested successfully.

09:21.140 --> 09:23.300
So it works for sure.

09:23.620 --> 09:27.020
And right there what we have we've got our telegram account.

09:27.340 --> 09:32.660
So what we need to do right now, um, we need to see how it works.

09:33.380 --> 09:37.620
So in general when we go back actually let me go over to my application right here.

09:38.540 --> 09:41.220
I've got here the link to my chatbot.

09:41.260 --> 09:42.020
All right.

09:42.060 --> 09:43.540
That doesn't work for now.

09:43.540 --> 09:48.700
So for example, when I, when I type something here and we don't have the response as you can see.

09:48.980 --> 09:49.580
Hi.

09:49.620 --> 09:51.420
How how are you.

09:51.980 --> 09:55.140
Because we need to provide the smart system.

09:55.140 --> 09:59.550
So here automation and then that will do the entire stuff.

09:59.550 --> 10:05.790
So for now, what we need to do, we need to pull our data from, um, yeah, from our telegram.

10:05.790 --> 10:08.150
So that's why I provided here the message.

10:08.150 --> 10:11.750
Also, we can use it or even, um, you can go over here.

10:11.790 --> 10:12.630
That's the step.

10:12.670 --> 10:18.230
And now it's this link to your, um, yeah, to your, um, to your telegram chat.

10:18.270 --> 10:19.030
I'm sorry.

10:19.190 --> 10:22.070
And there, let's say I can provide the following data.

10:22.790 --> 10:24.670
What's the weather?

10:24.710 --> 10:26.230
All right, maybe not.

10:26.430 --> 10:28.910
Um, what is the difference?

10:29.270 --> 10:34.630
Difference between a automations and a agents.

10:35.390 --> 10:40.030
So now it's listening and yeah, you've got actually we've got here the response.

10:40.030 --> 10:42.830
What's the difference between a automations and agents.

10:42.870 --> 10:43.870
All right we've got it.

10:44.390 --> 10:45.390
We can go back.

10:45.430 --> 10:48.590
And now there is this step for creating our system.

10:48.590 --> 10:53.310
So a agent we can click here and search for a agent.

10:53.830 --> 10:54.470
That's right.

10:55.030 --> 10:56.070
Um right there.

10:56.110 --> 10:58.200
What's very important.

10:58.400 --> 11:00.960
We can click here on define below.

11:01.160 --> 11:05.520
And here we need to fit our agent with data from telegram.

11:05.840 --> 11:11.320
So as we've covered previously in the course here, we just need to search for a specific field and

11:11.320 --> 11:11.840
drop it.

11:11.840 --> 11:14.360
So we've got JSON message dot text.

11:14.680 --> 11:15.720
So it's cool.

11:15.880 --> 11:18.880
And now we need to set up our chat model.

11:19.000 --> 11:25.600
So here either we can actually click here on chat model or just go back to canvas and right there and

11:25.600 --> 11:28.080
click on this small plus icon.

11:28.240 --> 11:31.840
And there we'll choose our open AI chat model.

11:32.520 --> 11:37.320
Also there you need to connect actually Na then with open AI.

11:37.600 --> 11:43.800
And now I'm again I refer you to the section where Damian explains everything step by step.

11:43.960 --> 11:47.840
So here you can check it out if you don't have like the credentials created.

11:48.360 --> 11:52.560
Um, so here, um, yeah, you can see I've got my OpenAI account.

11:52.920 --> 11:57.280
After you set up your AI agent, also remember to test the step.

11:57.280 --> 12:01.680
So here as I did, I tested this agent and I've got my response.

12:01.840 --> 12:07.160
And now I will be using that in my last output node which is a telegram.

12:07.840 --> 12:15.040
We want to use it to actually send a text message right here and right there you've got your credentials.

12:15.040 --> 12:20.640
So the account we connected and it's very important because we've got chat ID and text.

12:20.840 --> 12:24.400
So right there we need to provide the ID from chat.

12:24.440 --> 12:26.200
We've got this ID field.

12:26.680 --> 12:30.160
Let's provide it here and there the text.

12:30.160 --> 12:34.480
So we want to take the output from a agent.

12:34.480 --> 12:35.040
All right.

12:35.640 --> 12:38.000
And now what we can do we can test the step.

12:38.240 --> 12:39.520
And now we should receive.

12:39.560 --> 12:39.880
All right.

12:39.880 --> 12:41.680
As you can see I've got a notification.

12:41.840 --> 12:46.840
So I have the response from yeah my bot.

12:47.320 --> 12:49.760
And now let's actually test it out how it works.

12:49.760 --> 12:55.320
So what we can do we can go over here back to canvas and make it active.

12:55.800 --> 12:57.090
So let's make it active.

12:57.090 --> 13:00.570
And now, um, we can type something here.

13:00.570 --> 13:05.410
So previously, as you may see, actually, we didn't receive any response.

13:05.410 --> 13:05.770
Right.

13:05.770 --> 13:07.730
Because we didn't have a system.

13:07.730 --> 13:09.370
However, right now I can type something.

13:09.370 --> 13:09.730
All right.

13:09.730 --> 13:11.490
So hi, how are you?

13:12.370 --> 13:14.530
Just simple message.

13:14.690 --> 13:15.010
Yeah.

13:15.050 --> 13:15.410
Hello.

13:15.410 --> 13:17.890
I'm just a program, but I'm here and ready to help you.

13:17.890 --> 13:19.290
How can I assist you today?

13:20.090 --> 13:24.970
Um, please tell me, what is API?

13:25.770 --> 13:28.770
All right, let's see if that responds to us.

13:29.730 --> 13:33.250
So we need to wait actually a few seconds.

13:33.250 --> 13:34.570
And now you can see it works.

13:34.570 --> 13:37.490
So API stands for Application Programming Interface.

13:37.810 --> 13:43.090
It's a set of rules and protocols that allows different software applications to communicate with each

13:43.130 --> 13:43.730
other.

13:43.930 --> 13:44.730
So nice.

13:44.730 --> 13:46.530
Let's ask the next question.

13:46.930 --> 13:51.170
So um, maybe what is a Zapier?

13:52.290 --> 13:53.570
What is Zapier?

13:54.210 --> 14:01.220
This is another automation platform, Zapier is an automation tool that connects different web applications

14:01.220 --> 14:02.180
and services.

14:02.500 --> 14:08.580
So by this way, in this video, we created this fully functional chatbot for different circumstances.

14:08.780 --> 14:11.380
Now actually everything is connected right here.

14:11.500 --> 14:16.940
And even let me actually show you on executions right there you can see.

14:16.980 --> 14:18.060
Yeah, we've got it.

14:18.340 --> 14:25.700
So we have um, all of these actually, we had um, let's see, we had these two.

14:26.100 --> 14:31.100
Um, no, actually for we had these four messages right there.

14:31.740 --> 14:32.180
Um, no.

14:32.180 --> 14:32.580
Free.

14:32.620 --> 14:33.420
I'm sorry.

14:33.860 --> 14:36.900
And there we've got our free responses.

14:36.900 --> 14:40.820
So this one, this one and this one even.

14:40.860 --> 14:43.940
Let's actually preview here what's, um.

14:43.940 --> 14:44.660
All right.

14:44.700 --> 14:45.460
Please load.

14:45.740 --> 14:48.660
Let's preview for example here was the response.

14:49.060 --> 14:53.060
So right there we've got API stands for Application Programming Interface.

14:53.460 --> 15:00.900
Also there when we go over here Zapier is an online automation tool that connects different web applications,

15:00.900 --> 15:03.060
so for sure it works perfectly.

15:03.500 --> 15:05.020
So we've got it in this video.

15:05.060 --> 15:10.020
You accomplished your first exercise in this chapter, which is all about practicing, exercising,

15:10.060 --> 15:14.380
getting familiar with and in general taking your knowledge and using it.

15:14.420 --> 15:19.620
Remember, if you've got any problems in the course and your automations, feel free to contact us through

15:19.620 --> 15:20.740
the Q&amp;A section.

15:20.860 --> 15:27.540
Or even if you want to get even better with Na, then like Unlock the Real World Automations and more.

15:27.700 --> 15:34.100
And feel free to check out our A community which is all about agents, automations, and AI then and

15:34.100 --> 15:34.540
here.

15:34.580 --> 15:36.820
And we cover very powerful solutions.

15:37.020 --> 15:41.860
So if you want to master the software here, actually you can check it out and you can find it in this

15:41.860 --> 15:45.620
course in the bonus section or here even at the beginning of this course.

15:45.820 --> 15:47.860
So I strongly encourage you to join.

15:47.900 --> 15:49.980
However, feel free to do this or not.

15:50.420 --> 15:52.620
Um, for now, thank you for watching this video.

15:52.660 --> 15:55.900
I hope you enjoyed it and I will see you in the next material.
