in this video we will solve 2 problems at once when using the n8n service, the 1st problem concerns I don’t know a large number of people, watch when we need to choose a tool model to connect to our AI specialist like this and either an AI assistant or an AI seller, sometimes we are very constrained in choosing models, that is, for example, we registered in ChatGPT we don’t want to register there in Grok AI we don’t want to register in Perplexity AI we don’t want to register somewhere else because everywhere we have to pay, as it were separately for each model and this, well, it’s like a lot of money is spent in the 1st and 2nd we need to register in all services somewhere payments from Russia do not go through somewhere payments from Russia do not go through somewhere we need to organize dances with tambourines in order to replenish our API cabinet here we will solve this problem, that is, we will have access to all existing neural networks to all existing models by using this template this 1st means we will solve the problem with paying for the API and The second problem is when we create our own AI assistants, we needed it earlier, that is, before watching this video, you needed to think in advance how he or who will respond to this or that request, for example, we have a request for searching the Internet, it is logical for the Internet search to be carried out by Perplexity AI because I did reviews about Perplexity AI, it does the best job of searching on the Internet, it does not say any fake news, it looks for exactly what we need in order to connect Perplexity AI needed to separately install the Perplexity AI router and accordingly it worked here, we will have a dynamic selection of models, that is, our AI assistant himself will select the model dynamically, we need to search on the Internet, he connects Perplexity AI, we need to write the code, he connects Claude 3. 7 Sonnet, we need to write a cool text, he writes, he connects Clow 3 Clo 3 5 sonnet, he needs to find something on Twitter, he connects Grok, he needs to do some reasoning so that it wasn’t that expensive yet, he connects ChatGPT aa o3 mini Hight, that is, depending on the request that our AI assistant and assistant will receive , he will choose the model that he will use to answer this question, I think this is very important , we will also write a promo that will help the assistant choose the model that he needs, that is, choose exactly the dynamic model for his further answer , and most importantly , what is the advantage of this template, for example, that you can take what we will do today and insert these elements into any template of your own, that is, ready-made agents, for example, agents that generate news, we generate ideas, generate posts for social networks based on news, or in our main and assistant, this whole system is simply implemented into it and that’s all, that is, you 1 with this video solve a huge number of problems that are associated with templates and work service Serham Vosemyan let’s go, look, as always, we have 2 options on how to create AI AI assistants that will choose the model you need to answer, which means the 1st way is the easiest, you just click 3 buttons click import frum file and after that add a file in which this AI assistant has already been created where to get this file this file is in the 1st pinned message under this video or in the description section you go to my Telegram channel first you get into the bots here it tells you in detail how to access this template and you find yourself in a Telegram channel where a database of promts has been collected , there are more than 10,000 different promts for Chadzhi 5 for artificial intelligence of anyone , the database has been collected in English in Russian, there are corresponding sections with vacancies, there are databases of tables, databases of templates for n8n, databases of templates for make-up, a large enough database has been collected here , and of course a chat for communication, in order to get into this Telegram channel you need to go to the 1st pinned message or in the section with a description there will be all the instructions and, accordingly, the bot will tell you how to take this template, how to import it and how to start interacting with it. The 2nd method, at first glance, it seems more complicated, but if you watch this video carefully now , you can create this template yourself, but the only thing you have to watch this video to the end and be sure to like and write something in the commentary, so let’s now step by step I’ll show you how to implement and create this template .
So, for starters, we are creating a new Work Flow in the n8n service if you haven’t already have never used the n8n service, be sure to go to the 1st pinned message there will be detailed instructions and detailed video tutorials on how to use the n8n service respectively. We need to name this template, let's call it test speaker and test for a moment, that is, this is a test dynamic selection of AI AI model. 2nd step we choose what will run this process if you have an autonomous and legends, that is, and legends that works, roughly speaking, on its own, then you just connect this system here to your Telegram bot, I won’t dwell on this point in detail, watch my previous videos about n8n because in them I explained in detail how to connect Telegram Botox to anyone and the main agent and assistant salesperson, it doesn’t matter, now it’s just that if we need it, I just copy and paste this element, but I would like to skip this story because it takes a lot of time , and in the previous video I already talked about this in detail several times, be sure to watch my previous videos, but the point is what do you connect to to your Telegram bot and at the output you will receive answers from your Telegram bot, so as not to waste time here, I’ll just show you the start as a start, we will use a message, that is, we can just start testing this and the agent here, and then take this element from our previous templates , for example, from this template of ours, let’s take this element that will activate our bot exactly by mmm by message in Telegram to the template that you can download, I have attached both options you can use them without any difference, here you just need to register your app key for your bot and that’s it , it will be launched via Telegram, I’ll now show you how it will be launched through the messages that we will use here, that is, our main task is to create a template , and how will we use this template, where will we integrate it?
This is like the 2nd question, look , it means I choose when the message will come to the chat , the chat will be right here, that is, it will be right here, this chat will be saved, click save and next element we need to select a bot, that is, our AI agent, we select the AI agent here, we don’t change anything yet , but we only need to register the memory here accordingly, this is the first thing we select when a request arrives here, too, we don’t change anything and here we need to choose the model accordingly, see in all the previous videos we chose the models depending on the task that we needed to perform was an example ChatGPT model CLaude AI model or the Google model there, yes, it doesn’t matter the grog model, it also appeared here, but it doesn’t allow us , that is, what do we need for this? We need to register API keys for each service for each neural network , that is, if we choose ChatGPT, then there we need to register this API key accordingly , many wrote both in a personal message and in the comments that they do not have the opportunity to pay for app keys there using ChatGPT CLaude AI accepts some cards ChatGPT does not accept how to solve this problem I found a solution we will use this router open router chat mods means that it allows you to do it allows you to use an unlimited number , that is, all the neural networks that today have new old ones that have just appeared that in the future only grog will appear ChatGPT uses everything accordingly in 1 window for this we need to create an aa account, that is, we select an aa account and here we need to create an API key, which means we need to go to the open router site AI dot and here to register, I usually go through authorization through Google, that is, I choose Google and here it is necessary to look here, what is the advantage, there are all models here and access to all models is carried out through the ape key , and the coolest thing is, yes, those who live in Russia will understand that the coolest thing is that you can pay here, that is, we can pay not only with your card yes, issued somewhere , but we can also pay through cryptocurrency, that is, pay with crypto for using models of art and intelligence, I think it’s very cool and many people will just come in. The commission here for paying with crypto is generally minimal , and considering what the exchange rate is today, it’s generally just a fairy tale , then we create an appy key aa create it, click Creed aa we register the new key accordingly, write the name let’s create a 2nd key for myself n8n 2 and register the credit limit accordingly , for example let it be $10 , we copy this ape key, I'll cover it all up, then I copy it , copy this ape key and paste it here, so let's create a 2nd account, then I copy and add a stop , so I add this ape key here, click save , and I've got everything created, the 2nd ape key , which I can use after that, in my choice of models, these will appear in the selection of models, these are all the models that are on the market today, which are presented on the market today, this is very very very convenient, which means uh, good So let’s choose the 2nd account and first I’ll choose the ChatGPT model from Remini High, for which I will choose ChatGPT on behalf of Hai, it seems to cost a little more, but it allows of all the models it allows aa to do reasoning, that is, it reasons, unlike many models, better than from Belt and Hai , aa is better than other models, that’s all, I choose ChatGPT from Re Mini High, here I write down its name accordingly, that it’s from Re Mini High, well, so for you can just do it here 3 mini erase minihigh everything is fine I have registered the model erase minihightok just spelled out its name incorrectly I have registered the model cancel the 2nd step we need to register Promt so that our dynamic models do not come out in some chaotic order, we register a special pront that will help this and the agent accordingly choose the right reagent choose the right assistant for certain tasks what it looks like we prescribe the system message here we open this Promt accordingly so let's open it open it and here we register the next Promt and here we prescribe the next Promt to begin with the Promt will look like this you are a parshutization agent your task is to accept user requests and decide which model is best suited for each use case that the user may have You have 3 models that you can choose to process the user's request upne 3 minihigh anthropoclelud 3 and 7 sane why did I choose 3 models , then we can prescribe here 4 models 5 models 6 models, depending on the tasks that you will need here, it is important to take into account the more models we prescribe, the uh, as if in the chance that he might give the wrong answer somewhere there, it will increase, that is, the main change is to choose several models that I would like to use , I will have enough mobs for 3 mini high because on this model he can reason reason berplayeksti for searching the Internet and Claude 3.
7 Sonnet because he writes code cool, you can also take it loudly there, well, as if it’s already optional, that is, you want to use loudly you want to use only these 3 models okay, we chose these 3 models , where will we get these 3 models, look, uh, that open router service, here you can choose the model accordingly, for example, we chose Perplexity AI, yes, here’s perplayxte and look how many different varieties Perplexity AI has for me we need a regular perplayxtessonar that perfectly searches on the Internet and here it has a name written down, that is, we just copy this name and write it here, so that everything is correct, that is, we have Perplexity AIti er sanar, that is, we register it Perplexity AIte sanar o3 aa ChatGPT o3 mini Hight here is o3 mini Hight, we take everything, copy this data and accordingly register that it is ChatGPT o3 mini Hight too the very Claude 3. 7 Sonnet or another any other for example CLaude AI yes here is Claude 3. 7 Sonnet we all choose Claude 3.
7 Sonnet copy and paste this data here accordingly here it is and it will be anthropic 3. 7 Sonnet we all chose the 3rd model then we need to tell him in what case when to choose this or that model how we do it we add pront each model has its own strengths and can give the best answers for certain questions and user commands let's figure it out in the strengths of each model so that you can choose the one that is more or better suited to the user's request, that is, we roughly tell him that you have a choice of these 3 models for you to choose, I will now tell you about the strengths of each model and then we prescribe the strengths of each model, for example, the perplaykstessonar model strengths in order to form the strengths of CLaude AI the Perplexity AI model we go to the same site, select aa Perplexity AI Perplexity AI sonar and look here there is information yes what problems does this model solve accordingly sonar light accessible fast easy to use now includes quotes the ability to customize sources it is intended for companies seeking to integrate easy questions answers optimized for speed there is not a word about the Internet we just take this here and we can either just copy here all this information what tasks it is better for what its strengths or we can create from the region, for example, it has a fast or built-in search on the Internet, that is, we take it and copy from its strengths, I have already prepared all this in advance, I did it through Change 5, built-in Internet search, the ability to use quotes , customize sources, you can search for data on the Internet in real time, we have written everything in which cases or not that in which cases aa aa why the Perplexity AI model is worth using and he will continue to think about whether to use it or not, the same thing we are prescribing for 2 for the rest of the models we write the open model and this is 3 minihype again we come here we write open like this 3 mini 3 minihype we take the same thing and accordingly we copy and paste all this information here but in order not to stupidly copy and paste here I wrote out in advance what in my opinion is the strong point of open AI AI AI 3 minihigh both on 3 minihyde economical language model optimizes for complex reasoning problems suitable for situations where carefully and well-thought-out answers with several are required changes, the relationship and the 3rd model Claude 3. 7 Sonnet, the same thing, we prescribe its strengths for this, either they learn from the jeepyati or from the same berplexsty, we ask you to compare and tell us about the strengths of CLaude AIa and Claude 3.
7 Sonnet aa, or we take the information from here, copy and turn it into this text, everything was prescribed accordingly to the strengths of CLaude AI and 3 7 sonnet, in principle, yes, now we have almost ready Promt but we also need to give him a hint, that is, so that he doesn’t just act on this prom, so that he then gives us an answer according to this prom, be sure to check how the model is written, that is, we take the name of the model from here and copy it in this way in order to check how the secret model is written accordingly, I won’t show you all the models there now, I will choose 3 models so that in the future, when we need to perform this or that task, we turn to the model that we need further since we will create 1 more assistant which will be based on the data from this or that model to create accordingly to carry out the task we need to register the following prom you must pass the user request and decide which model to use structured Jason object or as shown below now for now we will leave it, that is, we will save it for now and here we will create a new model aa of a new agent and this agent will solve the problem accordingly, that is, if this agent solves the problem, which one he chooses for us the agent chooses the model using the reasoning model from chaji 5 from remini high he will select accordingly the model to save the data into the database, the same agent will already give the final answer the final answer, that is, this agent will give the final agent, but in order for it to give the final agent, we need to select Define Belov here and now for now we will leave nothing here to register, we will click save and here we will also select the off-end router chatmodel, we will select an account and that’s all for now we will not register anything here either, click save, that is, what the answer will look like now, that is, our uh our 1st assistant will select model and this is already an assistant, he will use this model to answer accordingly what we still need to add here in the industrial text, we need to tell him what the output format should be, the output format that is, we need to write down how he should respond, I specifically left it here in Russian now I’ll remove it, it means Jace Jason the structure of the object I’m not a programmer guys I don’t know how to read it correctly so if I’m wrong please correct me in the comments the structure of the user request here the selected model here that is, this is what it looks like aa the user request here the selected model accordingly everything will be here and at the end we still need to add API examples that is how it should output for example we have a request to find let’s find the latest ones on the Internet news on artificial intelligence in marketing what model does perplekstiassonar use? Here we have perplekstiassonar and he will use the model to use perplekstiassonar when you need to find something on the Internet, that is, we show him examples of answers that we need from him the following create a content plan for a fitness trainer for a week to gain more subscribers on Instagram openay remove minihigh he should use this model our API code to create a Tetris game in python, respectively he should use the Claude model 3. 7 Sonnet everything , that is, we showed him what answers we expect from him, we showed him what options aa requests can come to him and what model for this or that request he must choose, the only thing we need to add is an output response for this we select this uh toggle switch, it’s turned on here by default and accordingly we need to turn on the batch, we click the output Parser and turn on this one and the output parsa we turn it on here and look at this here for us we need to replace the element with our ah this Jason file that we created here, that is, we take this one, copy this data and uh here in the parser section we just paste it here uh the output format of the response from ChatGPT we have everything uh our uh this agent is ready let's deactivate this one for now, deactivate it, save it and open the chat accordingly in order to test it, I ask him to find the latest news about AI for this week on the Internet , most likely he if he sees requested, it is necessary to find something on the Internet, he will most likely apply in prplexte, look, yes, he is now starting work, he selects an agent and aa gave us an answer, that is, find on the Internet the latest news about AI for this week, the Perplexity AI tisonar model, that is, at the output, he gave data here that for this request it will be necessary to use Perplexity AI tisonar, that is, we can look aa find the latest news on the Internet b and for this week cry sonar, that is, he will use proplaksitesonar is excellent here we need now, that is, what data goes into it here we need to repeat once again we need to select defire and bellow and the text the text that goes into it the text will be this request request to find the latest news about and for this week on the Internet well here we don’t need anything else, that is, the main thing is that it receives the correct request which will already be processed and here we need to choose which model to choose we select dynamic choice we select and select this section this is the dynamic model choice, that is, depending on what our previous AI agent advised to use as a model, he will always choose this model accordingly, that is, the correct model for selection will be written here, we do not select it manually, but we will use this I ibota to select it, everything here means we activate activate the model and here the same thing we activate activate the only thing we need to register memory we select memory and here as memory we select that it will be manual memory and here as a key we select our 1st memory that is our our our 1st output here is the sex ID session everything is fine that is, everything is saved here in this memory, click save and now we have created everything with you according to these these answer this answer this answer means we click save let's let's click on new chat or even continue and look here he aa gave him the information that you need to select interlace to display the answer that's all and at the output we get the latest news let's open the chat no here you can find the latest news on the Internet on the Internet but this is for a new request and at the output we get some news about and for this week aa in use and in MTS MTS reported that the share of the API code for nailers will increase to 25% yes uh Mobile exhibition uh the focus of attention brought the discovery to the assistant conference on and digitalization in Russia everything he chose that model restriction for Dipsy the white house is considering the possibility of limiting the use of ChatGPT chat bots Dipsy that is, he chose the Perplexity AI model and Perplexity AI responded to this model the same thing we can choose to write for example give him a new and our API code for Tetris in Python and look now we can see how it works that is he here he is write the code for us and he chose the model mm where is CLaude AI 3.
7 Sonnet our API code for Tetris on fiton andropik CLaude AI 3. 7 Sonnet that is, he chose this model and now he will send us a full-fledged code directly into this chat, but I’m showing you this chat purely for the test and we will use it here in any case, that is, if we connect connect Telegram , then we will simply insert Telegram here and let’s wait for a response from him , yes, he generated a full one for us full answer we are here, and accordingly, this is how it works, that is, we will connect Telegram here in the future , or we will connect aa our main assistant who will contact him and interact with it in the future.