From the course: Vibe Code Your First AI App with Lovable and n8n (No Code Required)

Building your landing page in Lovable

- All right, so we see that Lovable has spun up the landing page for us. I see build unsuccessful. For the first time, build is unsuccessful and it shows you sometimes you'll hit this error. All you need to do is click on this Try to Fix button. So we'll just quickly hit that button and Lovable will debug the entire application, the code, and then, you know, make sure that your landing page works seamlessly. So now we can see that Lovable is done processing and fixing everything. So I'll just hit the Refresh button to load the landing page for us, and there we go. This is our landing page and if you scroll down, you can see all of these sections here. If you want to open up the preview of the application, the preview of the landing page, you can click on this Open preview in new tab, click on this button and Lovable gives you this preview URL as well. This is our application, which is built in just one single prompt. Great. So we have this ready. This is just the first prompt, this is the first draft. We'll have to spend more and more time perfecting every single section of this landing page, but you now have an understanding of how you can take a reference from 21st.dev. And then implement that same design within your Lovable application. For us, the most important thing is to make it AI-enabled, to make sure the visitors on this landing page are able to fill up a form and then the leads for that business, the visitors, their details should not only be captured, but they should also be automatically processed. So here in this landing page currently we do not have any sort of contact form. We are going to add a contact form at the bottom of this page, which will collect their name, their email budget, and requirements for the project. And filling up that form will basically trigger our end-to-end workflow, which will learn how to build in the upcoming videos. Let's continue to add that form here to this landing page that we have just developed. The next prompt here is add a form that captures the following information from the visitors, or you can say visitors/potential leads. And the information that we want to capture is full name. We need their email address. Then third thing is budget. And I can specify that budget should basically be a dropdown with three options and those three options, I can then specify that $100 to $1,000, $1,000 to $3,000, or $3,000 to $5,000. So these are the three options that we have within the budget dropdown. And last feed will capture the project requirements from the user, from the potential lead, the visitor on our landing page. The CTA for the Submit button should say book a free discovery call. This is the form that I want to add towards the bottom of the page. So add a form at the bottom of the landing page. I can specify above the footer. And that's it. This is my prompt to add that form to our landing page. Let's hit Enter. Lovable again, is going to take a few seconds and will add that form right here. All right, so if you scroll down a little bit, you see that a form has been added. We have full name, we have email address, we have project budget. This has got three options to select from, and then we have project requirements. This is great. We now have a premium-looking landing page for an AI agency ready in just a couple of minutes. And I have not written a single line of code. We have simply vibe coded this premium-looking landing page for this AI consultancy firm. Now we need to make it AI-enabled. We need to ensure that people who are coming here filling up this form, they should get processed, they should receive emails. We should be able to manage those leads automatically using AI. And that is what the next video is all about. In the next lesson, we'll learn how to build lead management end-to-end workflow.

Contents