So now when we know what we cover in this section, let's dive in.
The first practical exercise we'll accomplish and actually we'll build a telegram chatbot.
Moreover, I need to mention that for each project we cover in this chapter, I prepared for you the
file that explains and the entire automation step by step, and you can download that in the resources
of this material.
So let's say meanwhile we are creating the entire project.
And you can go over here and actually, you know, have all of the data right there explained.
Um, yeah.
Very clearly.
However, now let's read what we have inside.
So in this exercise you will create your very own telegram chatbot using an AI then and OpenAI, this
bot will respond to user messages in telegram using GPT ChatGPT responses.
You will build the automation using these steps.
The first step is trigger telegram.
So start the workflow whenever someone sends a message to your telegram bot.
And the second step is a agent.
So we are using here ChatGPT.
So here use the built in agent node connected to OpenAI chat model to generate smart replies.
And last but not least, we've got respond via telegram.
So take the response from GPT and send it back to the user using the telegram node.
And as you can see right there, like this entire project is not that hard to set up.
However, the most common problem can be with actually I'm creating credentials for telegram.
Also remember in this course Damien actually explains you step by step, like we've got the entire section
where Damien explains you step by step how to connect different applications to nine.
So create credentials for them.
For example, for deep sick OpenAI here, also for telegram, Google Drive, Google Services and so
on.
So it's very, very important.
So for an example, when you have an A then paid subscription, you can set up let's say Google Sheets
and here Google Docs and Google Drive just by clicking Sign in with Google.
However, when you are hosting I'm here and I then on your server or inside your website and so on.
However, when you're using an addon on your computer, using Docker or even your self-hosted using
some host services, and in general you need to manually set up credentials.
So it's very, very important also in this course and we've got the video about how to set up, you
know an then on your own computer.
So you can go over here and check it out.
It's very important.
And again remember right there you need to manually like set up your credentials so you don't have this
option for an example like we have in the cloud that we can like connect Google services in one click,
you know with an addon.
So pay that in mind.
And for now also I've got for you very important information because it's very very crucial for this
section which is based on practical exercises.
We've got three approaches to follow.
Actually one of them I'm so one of three.
So in this section you will build real automations.
There are a few ways you can do the exercises.
The first one is to try it on your own.
So you know we've got the videos and then what you do at the start of each video, I show you the finished
automation.
So here I'm also we've got a file.
So here we've got the file.
And like later I will show you the automation and then I will build it.
So what you can do you can um actually you know watch this part.
Only when I explained automation, I show how it looks like after we do this.
Then you post the video, look at the file and try to build it yourself, then actually play the video
and compare how you did it.
So this approach I can say is for more advanced users actually that are more familiar with the Na,
then they are very confident in using that.
So you know actually also you can try it out.
I really recommend to do this because by this way you learn a lot.
The second approach is to build together with me.
So this is recommended approach because actually we've got like different steps.
However you know you can choose one of them.
And so here watch the video and build the automation step by step with me I explain everything and it's
great way to learn.
them.
So you've got here all of the steps explained, and you can get familiar with nada.
And you can set up your credentials.
You can set up your entire automation.
And for sure you need to practice.
You need to practice.
Otherwise you you can't actually learn.
And then like you can't learn it from only the theory you need to get actually action.
So it's very crucial essential to follow one of these approaches.
Watch first, then build.
If you like to see the whole process first, just watch the video, then build the automation after.
Also, it's really nice approach that lets you to practice a lot.
However, I think like um, it depends from um, yeah, from the preference because I would like for
an example to follow the first approach.
However, for most people the second one will be the best.
So like choose one for your own and for sure please again practice creating our exercises in this section.
I need to also explain a very important fact, because in the later part of the course where we have
very sophisticated automations that require a lot of steps, a lot of different agents, like a lot
of different nodes, sometimes even it takes a few days to set it up.
Seriously, like me and Damien.
And sometimes we are setting up automations for a long time because, you know, you need to think,
you need to design the entire workflow.
Um, so here maybe sometimes, um, let's be realistic.
You wouldn't like to set up the entire automation on your own.
It would take a few days.
Um, for an example.
With more basic automations, I will strongly encourage you to practice building it on your own.
However, let's be realistic with more advanced projects we've got for you the templates.
Also, we can build them.
However, obviously you won't build all of the automations on your own.
However, in this chapter, I would like actually you to get into the action and build all of these
projects because they are not that hard.
They are.
They are simple.
They don't take a lot of time.
So here I would like you to again get into the action and build a real project inside Nadine.
All right.
So maybe now you think I'm.
Stop talking, start doing and creating the entire project.
Yeah, I just wanted to explain that very clearly, so you understand.
However, for now, let me actually show you.
Yeah, how this automation looks like.
So this agent first.
First things first.
We've got a note which is for the telegram.
So here we actually send the message to our chatbot.
Then we've got the note with our agent where we use ChatGPT model to create for us the response.
And at the end our agent should return and for us a message.
So this is our output node.
And it's not that hard.
It's very easy.
And with all that being said, now let's build this agent from start to finish.
So that's perfect.
Let's start with the first step.
Here we can add the first node which is on app event.
And right there I can search for telegram.
That's correct.
I can pick that.
And here we would like to trigger this.
You know agent whenever we have a message there what's very important we need to set up our credential.
And now what you can do.
You can either stop the video and go over to the section where Damian explains how to set up actually
the credential for for telegram with Na then or even now, I will show you very quickly how you can
do this.
So we can create new credential.
And right there we need to have our token.
All right.
And what you can do right now either you can go ahead and continue with with the website version of
telegram or just have an application on your desktop.
So now I will use the application on my computer.
And here I will set everything up.
All right, so after you log in to your telegram account here, we need to do some specific actions
actually to connect our telegram to Nadine.
And now actually let me show you in general we need to create our bot.
So we need to click here on the search option and search for the bot father.
Right there we pick this um yeah this profile and we click on start.
You've got all of the instructions right there how to operate that.
However for now we need to type slash.
So the new command and here new bot.
All right a new bot.
How are you going to call it.
Please choose a name for your bot.
So here um our first AI responder.
Yeah we can name it.
Hopefully we don't have any misspelling right there and now.
Good.
Now let's choose a username.
So how do we call it.
And here we need to provide the extension which is bot.
So there let's paste it and provide a bot.
All right.
So done.
Congratulations on your new bot.
You will find it at and what is very important.
Now you can see we've got http API that we need to copy and go over ahead.
Um yeah.
Back to our na den.
And there we've got access token.
We need to paste it and we can save.
So by this way, we connected our telegram to Na Den.
As you can see connection tested successfully.
So it works for sure.
And right there what we have we've got our telegram account.
So what we need to do right now, um, we need to see how it works.
So in general when we go back actually let me go over to my application right here.
I've got here the link to my chatbot.
All right.
That doesn't work for now.
So for example, when I, when I type something here and we don't have the response as you can see.
Hi.
How how are you.
Because we need to provide the smart system.
So here automation and then that will do the entire stuff.
So for now, what we need to do, we need to pull our data from, um, yeah, from our telegram.
So that's why I provided here the message.
Also, we can use it or even, um, you can go over here.
That's the step.
And now it's this link to your, um, yeah, to your, um, to your telegram chat.
I'm sorry.
And there, let's say I can provide the following data.
What's the weather?
All right, maybe not.
Um, what is the difference?
Difference between a automations and a agents.
So now it's listening and yeah, you've got actually we've got here the response.
What's the difference between a automations and agents.
All right we've got it.
We can go back.
And now there is this step for creating our system.
So a agent we can click here and search for a agent.
That's right.
Um right there.
What's very important.
We can click here on define below.
And here we need to fit our agent with data from telegram.
So as we've covered previously in the course here, we just need to search for a specific field and
drop it.
So we've got JSON message dot text.
So it's cool.
And now we need to set up our chat model.
So here either we can actually click here on chat model or just go back to canvas and right there and
click on this small plus icon.
And there we'll choose our open AI chat model.
Also there you need to connect actually Na then with open AI.
And now I'm again I refer you to the section where Damian explains everything step by step.
So here you can check it out if you don't have like the credentials created.
Um, so here, um, yeah, you can see I've got my OpenAI account.
After you set up your AI agent, also remember to test the step.
So here as I did, I tested this agent and I've got my response.
And now I will be using that in my last output node which is a telegram.
We want to use it to actually send a text message right here and right there you've got your credentials.
So the account we connected and it's very important because we've got chat ID and text.
So right there we need to provide the ID from chat.
We've got this ID field.
Let's provide it here and there the text.
So we want to take the output from a agent.
All right.
And now what we can do we can test the step.
And now we should receive.
All right.
As you can see I've got a notification.
So I have the response from yeah my bot.
And now let's actually test it out how it works.
So what we can do we can go over here back to canvas and make it active.
So let's make it active.
And now, um, we can type something here.
So previously, as you may see, actually, we didn't receive any response.
Right.
Because we didn't have a system.
However, right now I can type something.
All right.
So hi, how are you?
Just simple message.
Yeah.
Hello.
I'm just a program, but I'm here and ready to help you.
How can I assist you today?
Um, please tell me, what is API?
All right, let's see if that responds to us.
So we need to wait actually a few seconds.
And now you can see it works.
So API stands for Application Programming Interface.
It's a set of rules and protocols that allows different software applications to communicate with each
other.
So nice.
Let's ask the next question.
So um, maybe what is a Zapier?
What is Zapier?
This is another automation platform, Zapier is an automation tool that connects different web applications
and services.
So by this way, in this video, we created this fully functional chatbot for different circumstances.
Now actually everything is connected right here.
And even let me actually show you on executions right there you can see.
Yeah, we've got it.
So we have um, all of these actually, we had um, let's see, we had these two.
Um, no, actually for we had these four messages right there.
Um, no.
Free.
I'm sorry.
And there we've got our free responses.
So this one, this one and this one even.
Let's actually preview here what's, um.
All right.
Please load.
Let's preview for example here was the response.
So right there we've got API stands for Application Programming Interface.
Also there when we go over here Zapier is an online automation tool that connects different web applications,
so for sure it works perfectly.
So we've got it in this video.
You accomplished your first exercise in this chapter, which is all about practicing, exercising,
getting familiar with and in general taking your knowledge and using it.
Remember, if you've got any problems in the course and your automations, feel free to contact us through
the Q&A section.
Or even if you want to get even better with Na, then like Unlock the Real World Automations and more.
And feel free to check out our A community which is all about agents, automations, and AI then and
here.
And we cover very powerful solutions.
So if you want to master the software here, actually you can check it out and you can find it in this
course in the bonus section or here even at the beginning of this course.
So I strongly encourage you to join.
However, feel free to do this or not.
Um, for now, thank you for watching this video.
I hope you enjoyed it and I will see you in the next material.