How To Build AI Agents (For Beginners) OnDemand AI Agent Tutorial

LARRUZ walks through building AI agent applications on the On Demand platform, from selecting an agent to integrating it into apps with Streamlit. Designed for beginners but useful for anyone getting started with AI agents.
Chapters
So, welcome back to the AI grid. In today's online tutorial, I'm going to be showing you guys the fastest way to build your own AI agent based application. I'm going to walk you through a simple, simple three step process to create your own application powered by AI agents. And this is going to be using the On Demand platform. So whether you're a software engineer or just someone who doesn't really know how to code, this tutorial is going to be absolutely from the absolute basics all the way up to the advanced integration. So this tutorial is absolutely for everyone. So you can see right here that I am currently on this On Demand page. You can see that this is the home screen that you're going to see. Now what you want to do is you want to navigate to of course the Agent Marketplace and then of course you want to be able to find your agent that you want to use for this video. What I'm going to be using is the Amazon Shopping Agent plugin. So for example, I just type in Amazon. There are a variety of different agents that you could use, but you can see right here that this is the Amazon Shopping plugin. And once we click add, this is now added to our playground. Now what we now need to do is we go to the playground. Now that we are here, we now moved on to the next step. So in this chat agent, you can see right here we've got a Media Knowledge plugin. You can see right here we've got the model endpoints. This is just going to use on demand GPT4O. Then of course you can switch out the models if you do want to. You could always have your own custom model from Hugging face if you would like to as well. What you're going to want to do is then of course add the agent right here. So just click add. Then you can see that on the top right hand corner it says Plugin added successfully. Now that that agent is in our chat, you can see that it gives us a prompt example. So we can see that the question is give us a list of Adidas shoes whose price are between these two ranges. So what I'm going to do is I'm going to switch this from AED to GBP because I'm currently in the uk, so I'm going to switch that to GBP and then I'm going to click run. Now currently this is working with the Amazon agent in order to execute and of course you can see within just literally seconds, my Amazon agent has fetched every single shoe that exists on the UK version of the Amazon website and you can see that it's managed to get me this data immediately. Now, these links actually do work. I would click the Amazon link, but I don't want to show you guys all of the things that I've been buying, but just trust me, this looks absolutely incredible. So you can see that these links are completely valid. And, and what was also cool about this is that it manages to give you the right link for your specified location. So all I had to do was put GBP and it managed to give me the data for that. And what I could do is I could do USD as well. So, for example, I'm going to show you guys USD and I'm going to put USD here. And then you can see if I click Run, it's now going to be showing me the things that are in the United States. For example, just wait for the code to run and then you can see it's also got every single location. This is worldwide. And it shows you that these agents work really well. Now what I'm going to do is I'm going to show you guys if you actually want to integrate this into your own application, this is super, super easy. And I'm someone who doesn't have the biggest technical background. And this literally only took three minutes to do. That was remarkably simple. So after testing the agent in the playground, all you need to do is, is you need to just click here. Click Get Code. Now, essentially, you need to choose your desired programming language. Now, for those of you who are going to be watching this tutorial, you can use Python. So I'm just going to type Python, not like that, but Python. Of course you can use JavaScript, but I'm going to click Python. And then this generates all of the necessary code for you. So I'm going to click Get Code. Now, you can see right here it says code generated successfully. This took around three seconds to do. And this is all of the key data that we're going to need in order to have our own application. So you can see right here that in order to actually make this code work, we're going to need two things. So what we're going to need is an API key and of course an external id. You can see that there are two things right here that we need to replace. Replace the API key, replace the external user id. So what we now need to do is, is of course copy this code and save this code to our computer. So I'm just going to click Copy here and I'm going to save this to a simple text file. So now within the on demand platform, your next step is very simple. You need to scroll down, click Settings. Then on your Organization tab, you need to just locate the Organization ID on the right hand side. Then just copy this and then of course, save this in a text document, because you'll need this later. Then of course, you'll need to get your API key. You can see here on the API Keys management area, just click API Keys. Then of course, click Create New Secret Key. Of course I'm going to delete this one, but we'll just name this Amazon. But of course, I'll just name this Amazon agent key. 3 so with this key, what you're going to want to do is click Create Secret Key. Then of course, make sure that you copy this key and actually paste it down into a notepad or a Word document, because you're not going to be able to visualize this key once again. So just make sure that you save this key securely. Once you've saved both your API key and your Organization ID in a little notepad, then you're free to move on to the next step. So in this current demo, I'm currently using something that is called Streamlit, which is a simple Python framework for creating web applications. But you can integrate this code into any platform, whether it's React Radio or even an Android app. So what you now need to do before you want to run this is simply to make sure that you've pasted your external id, your API key in this box here, and those are the last steps that you're going to need to do. Once you've done that, you'll just now need to run this application. So for this application, which is built with the Streamlit platform, all I'm going to do now is just simply open up the terminal. Then I'm going to hit this command, which is called Streamlit run odapp py and remember, there is a link to this entire demo in the description below. So if you are struggling with any of this, just simply copy the code, copy the prompt, and debug with GPT4O. And within three or two prompts you're going to immediately understand this, even if you are a complete beginner. So now once you have this, all you need to do right here is to just hit streamlit run odapp py and then once you do this, another window will pop up. And if this doesn't work, like I said before, just make sure that your directory where you've downloaded the file and extracted it is actually the same as this one on the left. For example, just click this right here, then just copy this and then just paste that into ChatGPT and it will actually give you the command with this in order to run this completely easily. Once that happens now you'll see this pop up and then just click Enter again. It'll probably be your first time running streamlit. And then once that happens, you'll then see this screen pop up here. Now this is where we're once again going to need our API key and of course our external user id. We'll just paste both of those into those two text boxes and then of course we'll be ready to create our chat session. So once we're here, we'll just click Create a chat session. And since I've already done this, what I'm going to do is I'm going to submit a new query. So we'll open up a chat session and then what you'll be able to do is you'll be able to use your Amazon File agent and you'll be able to use that to just immediately get prices from different regions and of course links for different products. So for example, I can change the prices here and I can set £20 to £40 and I can click Submit query and then of course I can simply see what products are immediately available. Now you'll see that it is running in the top right hand side. You can see that it says running right there. And of course it says submitting query. Now you can see right here that it shows me all of the Adidas shoes priced between £20 and £40. You see right here, it gave me a list of. They're like just an amazing list. Honestly, I'm a little bit speechless. But a list of 35 different products. And you can see it says status here. Complete, completed. So that was a completely quick way to absolutely make AI agents. And this is by far the easiest thing I've used and I've used tons and tons of different programs. But you can see right here, if we just click not even copy, but go to Link, you're going to see that immediately. We get this web page of this product that we can easily, easily order and easily buy. Now, of course that's not how you know, most people use these agents, but however you do want to use these agents, it's completely up to you. But I find this platform and this user interface completely easy to use. If you do have any questions, don't forget to leave a comment down below. And thank you to On Demand for sponsoring today's video. They've built an amazing platform.










