inside Cursor. Over on the right is the cursor composer. This is your AI agent that is going to go out and start building your application for you. We're going to be using that to build out our entire application without writing any code whatsoever. It's going to be super simple. And at the end of this, stick around with me. We're going to have an entire AI agent that goes out and does work for us on the internet, which is amazing. If you learned anything up to this point, make sure you hit the subscribe button down below. Make sure you leave a like. All I do is make awesome videos showing you how to build stuff with AI. All right, so we're in cursor. Make sure to select agent down here. This makes it so that it goes out and builds code for you. I'm using Claude for sonnet for this, but you can use really any model you want. Claw for sonnet does cost money, but you can use claude 3. 5 as well. that is significantly cheaper and it'll give you similar results if we're being quite honest. All right, I pasted in our initial prompt that Claude gave us here which goes step by step on exactly what we're going to be building and I'm going to hit enter on this and it's going to start building the application for us. All right, it's going to help us create a clean Nex. js project. And for those who don't know at home, Nex. js is a web application technology used to build some of the most popular web apps out there right now. we'll be using for this. Very simple and easy to use for the AI agents that build out our applications. So, let's run this command that installs the project for us. We hit run. Very easy. Cursor runs the commands for us. It writes the code for us. It really makes you don't need to be technical whatsoever. So, it's building out the application. It's installing all the basic technologies we need. Now, that's been created successfully. Let's navigate into the project directory. Okay, let's do that. I hit run. It goes into the project. That's awesome. Now, let me check the current app structure to create the additional. So, it's setting up the files. directories for us. It's doing everything that would usually take hours to do, it's doing for us in seconds, which is awesome. Okay, so it ran npm rundev, which runs our application for us. Let's see if our base demo application is built before we start building the AI agent on top of it. So, we'll go here. We'll go to localhost 3001 research AI agent. Our base application is set up. We are ready to build, baby. We're ready to build. Our web app is running. If you never built a web app before, congratulations. You just built your first web app. Now, we're going to start building out the AI agent on top of this. What's great about using the prompt that Claude gave us is typically when building applications in cursor, you need to kind of figure it out step by yourself, right? You have to figure out what do I need to build next. And that sometimes takes some technical knowledge to do. But what's great about building a very in-depth prompt with Claude first and then putting it into cursor is what you can see here what's next. It already knows what to do next. We don't even need to guide it on what to do next. We just got to say go ahead build it for us right and this is what's great about having a co-pilot CEO AI chat up as you build like I showed you with Claude is it does all the thinking for you. We don't have to do much of the thinking ourselves. So that's why I always have another window open. Whatever the most powerful model is at the moment I have that open. Right now it's Claude sonnet 4, but whatever it is at the moment, you can have that up and anytime you need to build out prompts or have questions, you can ask the chatbot and then you can put it in the cursor. So now I can go, okay, that works great. Let's move on to step two, which is building out the input for the agent. And I can hit enter. And that now it's going to start building out the UI for the agent for us. All right. So as you can see here, it's writing the code. We don't have to do anything. We're just watching it write code for us. It's building out the interface. Uh and then Okay, so it's all done. Let's see what the interface looks like here. Oh, that's clean. Research AI assistant. Okay, so we can enter in a mission. It gives us example missions, which is sick. This is great. So I can put that in. I'm going to imagine when I hit start research, nothing happens because this is just the UI. But yeah, that's great. Okay, you can see what the processing looks like and everything. Mission received. Oh, so we got this screen where I can see the AI agent confirms it got the mission. All right, so now we need to actually start building out the logic. Let's review where we're at when it comes to building AI agents. Planning, tool, use, autonomous, reflective, and goal oriented. So we built out the goal oriented part, right? We have the ability to give it a goal. Next, we're
implement the autonomous and reflectiveness so that it works on its own and then it reflects on what it does and improves it. So let's connect the web search to the plan so it can work autonomously through the plan using its different tools. And then once all five of these are complete, we have our AI agent and then you can add on top and do a lot of really cool things. So we're back in cursor. We're going to talk to the AI agent here. This is the prompt we're going to use. This is looking good. Works great. I always like to compliment the AI so it knows what it's doing well. So it like reinforces itself. Let's connect the web search to the plan so that when we enter a mission, the agent makes the plan and then executes on it using Tavi. Hit enter on that. It's going to connect the web search to the plan building so that our AI agent can build its own plan and then start executing on it by itself. Excellent. Now let's build the exciting part, the automatic plan execution. So it's going to start writing the code for us by itself. Look how deep we are into an AI agent right now. and we haven't written a single line of code. That's pretty amazing. So, it's writing all the code for us. It's building out the component that takes the plan and then executes on it. So, it's really amazing what's happening here. The AI is building out our agent so that it does the step by step. It goes it builds the plan for us for what we're researching and then it goes it takes that plan automatically executes on it. Okay, so it's updating the plan component. All right, let's test this out. All right, looks like it's complete. Autonomous research AI agent complete. Let's see what we got here. So plan execution is got everything. Professional report layout, export functionality, research breakdown. Let's test this out. This is cool. So we have apparently we have our research agent built. Let's test this out here. npm rundev to run the application that runs it. Locost 3002 for me might be different for you. All right, let's see here. What is the difference between claude 4 and claude 3. 7? Let's start the research. Let's see what it does. Let's see how it works here. All right, so it's processing which means it is probably building the plan with open AI of what it's going to execute on and search. All right, so it has a plan here. Search for recent articles, analyze blog post, find publicly available report, research announcements, analyze social media, and compile the f uh the findings. And then down here, execute the research plan with AI. Let's do that. Now it's going to start executing it. Let's execute the plan. Oh, this is sick. Okay, so it has all the steps and now it's going to go through autonomously and complete each step using the tools it has available for us. For now, it is the Tavly web search tool. So, it's going in, it's going step by step, it's searching the web to get the information for each step, and it's going to compile it into a report for us. All right, so all eight, all six of them are done. Let's just see here. Let's view real quick the results. Okay. So, you can go in each one and you can view the results of what it searched for each. Okay. So, it gets a bunch of different articles for each steps. Goes through all of them, summarize them. All right. So, let's view the research report. Let's see how this does. Okay. So, here's the final research report and we're going to improve this. I'm not in love with the way this looks. So, we're going to improve this in a second here, but the final research report shows us all the steps. It went through the sources. So, it got 40 different sources. It has an executive summary. So, it has bits and pieces of the executive summary. I'm not in love with this executive summary because it doesn't it shows a summary of each step. I want an overall final research report that just gives me the answer. So, let's improve this in a second. Shows the key sources. I like that. And then the research breakdown. I like that. But let's improve this final research report. So, we get a really, really nice report. So, the prompt I'm going to give is I'm not in love with the final research report. I want to take it so we take all our sources, all our information, send it to OpenAI, and get back a complete report. I'm hitting enter on that. It's going to work for us. Again, the key here, we're just talking in plain English to the AI. You don't need to know coding. anything technical. We're just sending in plain English exactly what we want in our app. The AI goes and builds it out for us. So, it's building out the components to generate this very complex, in-depth final report for us. It's making the folders, the directories, the components. Again, I'm just sitting back. I'm just drinking my water and enjoying the show as the AI agent builds out our own AI agent for us. All right, looks like it's set to go. Let's try this out, shall we? All