chatbot powered by Claude Sonnet 3. 7, which is the newest Claude AI model. I'd like to make it so it looks like a chatbot and I can send messages to it and get responses back. Before we implement the code, please build me a plan to build this. So, this is something I do when I'm building any new app with Windsurf is I ask for a plan first. And I do this before it builds any code. And the reason why I do this is I want to understand step by step what it's going to do. The way I like to think about this is I'm the manager, the AI agent's my employee. Before you go off and do a whole bunch of things, I just want to see what you want to do first. So, this is going to give us the plan so we can understand what it's about to build. I'm going to hit enter on that. Now, the AI agent's going and building the plan for us really, really quick. This is something also amazing about Windsurf. It acts really quick. I'll help you build an AI chatbot powered by Claude. Here's the comprehensive plan. So, phase one, project setup and requirements. So, define project requirements. So, it's going to set up the project itself. It's going to choose the technology stack. So, front end, Nex. js. For those who don't know, Nex. js JS is probably the most popular framework for building apps right now. Uh so you'll you don't really need to know how it works. Just stick with me here. But it's a really powerful framework. Environment setup. It's going to create the environment for us and it's going to start the implementation. It's going to implement the claude API. For those who don't know, APIs allow software to communicate back and forth. So this going to allow us to communicate with the clawed AI. It's going to build out the UI components for us and then build out some enhanced features which this will be cool. And I'll show you how to customize this, too. We're going to make this look really, really cool. This will be a cool app to build. You'll be able to show it off. Okay, I like this plan. Let's do it. So, I said, "Okay, I like this plan a lot. " So, I like to give it feedback so it knows what I prefer when we're working together. Let's start off with phase one. Here's another thing I really, really recommend when working with any sort of AI coder is you want to do this step by step. You don't want to try to oneshot prompt everything. You want to do it step by step for a couple reasons. Number one, makes the AI in the output better and more accurate. And number two allows you to customize along the way. So if it does something and you want to tweak a little bit, you can stop, customize it, then continue. Okay, so let's send that prompt. Okay, so the first thing it's going to do is set up a Nex. js project. So that's very nice. It does the whole command for us. All we have to do is hit accept. Make sure as we go along here, you're drinking water. I've been trying to drink a lot more water lately. So pause here, grab a cup of water if you want. Stick with me. The water. Let's work on drinking more water together. So that's going that's building. So sometimes it gets caught up here when it's when it needs to ask you questions. Uh so us questions, but there's no way to input this. So what you want to do is you want to open the terminal down below. You do that by hitting control till day if you're on Mac. And then you can see the questions it's asking you here. So I'm going to hit enter. Just hit enter on all this. Enter. Enter. Boom. There we go. It's building out the app for us. All right. So now it is going to install the Claude chat. the Claude Sonnet 3. 7 chatbot which good. Now this is going to allow us to connect to Claude Sonnet. Hit accept. That's installing that. Let's examine the project structure and set up our environment variables. All right. So now it's building out some components for us. It's setting up the connection between our app and the API. So the AI API so that we can do cool AI stuff in our app. All right. It's creating the main component. So the chat input. So a lot of the UI stuff where we'll enter our prompts. Uh, it's creating a place for our API keys, a chat container. Wow, it's doing a lot all at once. This is pretty amazing. This is one of the cool things about Claude 37 is that it just does a lot more, right? You give it a prompt and it's able to figure out the context very quickly and build everything out. I just said, "Let's build a chatbot. " And it's setting up all the piping for us, the UI, everything uh in one shot, which is pretty amazing. You can see the code it's building in the main section here. So this is the main coding section. As the AI is building code, you'll see it pop up in here. Anything in green is new code that it's building. So you can see it built all these files on the left, all this file structure, all the code here with just my one prompt I gave it, which is pretty incredible. This is another really amazing part about Windsurf in my opinion is the agent's just able to do so much with just a couple prompts. It makes it really great for beginners. All right, looks like it made a lot of changes. Let's run this npm rundev. So I'm going to hit accept. This is going to run V1 of our app. So, as you've seen so far, we're about one or two prompts in. We're going to do V1 of the app. I assume it's not going to have the AI functionality done just yet because I didn't put in an API key, but let's just see if the UI is built out at first, then I'll put in the API key. I'll show you how to do that in a second, and we'll make the AI functionality work. So, let's do this. Uh, so looks like it is running on port 303. So, if you hold commandclick, it'll open it up. I hit open. Let's pull this sucker over here so you can see what it looks like. Okay. So, they made it so that I enter the API key to make this work. All right. Let me do that now. So, if you're following along with me, I'm