# How I vibe-coded an AI app in four hours

*Published August 4, 2025 · AI Tools & Workflows · by Krishna Veera Vanamali*

Canonical: https://whyvanamali.com/writing/vibe-coded-ai-app-in-four-hours
Originally posted on LinkedIn: https://www.linkedin.com/posts/whyvanamali_this-is-how-i-a-non-technical-person-vibe-coded-activity-7357993186205552640-v3Ws

Video: https://whyvanamali-audio.vanakrish.workers.dev/video/vibe-coded-ai-app-in-four-hours.mp4

This is how I (a non-technical person) vibe-coded a fully-functioning AI app in four hours using Claude Code with several API integrations.

Firstly, what does this app do? It answers any startup and company-building questions that founders may have, leveraging our vast founder podcast library.
When you ask a question like "How do I find co-founders?" or "What’s the best time to raise a seed round?", it searches through some 50 hours of podcast content from successful startup founders to find the most relevant advice and combines their perspectives.

You get a comprehensive answer with direct quotes and YouTube links to the exact moments in the podcasts where they said it.

It imports YouTube podcasts, extracts metadata and transcripts with yt-dlp and the YouTube API, stores all episode and transcript data in a Supabase (PostgreSQL) database, then splits and embeds the text using OpenAI’s text-embedding-3-small model, saves those vectors in Pinecone, and finally uses OpenAI’s 4o-mini model to answer your questions by searching and synthesizing insights from the podcasts.

While the video above is not a step-by-step breakdown of how I built this app because that runs into hundreds of prompts, iterations and bug fixes, I talk about the broad principles for when you are vibe coding on prod. If you’re a software engineer watching this, forgive me for explaining the technical stuff the way I do here.

I moved from using Claude Code directly on the terminal to VSCode to Cursor now.

From this exercise, here are some of my initial learnings (may seem very obvious to technical folks):

- Never commit sensitive API keys to GitHub repositories. Keep the repos private and not public. Keep keys secure locally and of course directly store them on your deployment platform of choice
- Ensure your local, GitHub, and production environments are consistently aligned. Any changes made in one environment should be reflected in others
- Always carefully review error logs when debugging. They provide crucial insights into what's going wrong
- Vibe coding involves debugging and troubleshooting. Be prepared for unexpected challenges and be patient with the process
- For AI apps, create a detailed, watertight system prompt to reduce hallucinations and improve response accuracy
- Implement role-based access control, especially for admin panels, to prevent unauthorized access
- Learn to read through developer documentation and best practices for the tools you're using
- Sometimes you'll need to help the AI model fix bugs by providing additional context or researching solutions independently

This barely scratches the surface and there’s still so much to learn, do, and build. Being non-technical is no more an excuse. That said, vibe coding is fun but vibe debugging not so much.

If you have any questions, please feel free to ask below. I’ll try my best to answer them.

## In the video

A screen-recorded walkthrough, narrated by Krishna (face cam in the corner): the finished app (Elevation Capital Founder Insights, "Ask me anything about startups"), then its code in Cursor, the terminal, GitHub and Vercel. Transcript, lightly edited:

Welcome to this quick breakdown of how I built this fully functional, almost production-ready, AI-powered app with a bunch of API integrations for the marketing use case. As a completely non-technical person, I do not have a software engineering background, completely on Claude Code within four hours. Now what you're looking at is the, let's say v2, after a bunch of design improvements and security improvements. This is what version 1 looked like and this is where we are now. Now just a brief about what this app can do. Now over the years at Elevation, we have recorded maybe some 40 podcast, founder podcasts. Now this is a vast library of very useful information for founders.

Now if you're a founder, you wouldn't want to go to ChatGPT and get generic answers for your company building questions. You'd want to speak to real founders who have, who might have been in the same journey as you and you'd like to hear from them what they think about your specific questions and that is the genesis of this idea. Now I had initially thought this would be a simple interface, a simple app to build but I was wrong. A quick demo of what this can do. So this leverages that the vast podcast library to answer company building questions for founders. A simple question could be, you can ask this anything, how to get the first set of customers as a D2C brand. It then scans through the transcript data in the back end across different companies, gives you some headline takeaways.

Now these are restricted to three. Then the most most important part, it gives you the YouTube links. With the exact timestamps for you to go watch the podcast where the founder is actually discussing this particular topic across a bunch of different companies and you could you can see a snippet of that before you go there. Starting with Claude Code again it is a command line coding agent. You could of course use and it's very different from lovable or replit which masks a lot of the complexity and the dirty things that come with coding and all it takes is running this very little code on your terminal directly. Now there are a couple of ways to go about this. You can code from your terminal directly once you've set up Claude Code but this is not super intuitive.

You need to first change your directory or folder where your project exists and it's highly recommended that you for each project you set a project directory and then you again invoke Claude Code and you prompt through natural language. Again very similar to what you would do with Claude or a ChatGPT. But the interface is terminal and this can be a little intimidating and there is a steep learning curve which I think naturally people can get used to. What I have chosen to do on the recommendation of an engineer friend is to first install VS Code. Now you could now this is an again AI IDE as they call it. Yeah and this is how it looks. Now here again you can this this is again a wrapper on your terminal.

The advantage with using something like this is it lets you look at your files much more intuitively which is very important for the job that we are doing but this is again terminal itself. So I had initially built this entirely on VS Code. Now I've moved my entire workflow to Cursor. Now this is how Cursor looks. Now there are a couple of ways to build right. Again you open your project directory and you can pretty much start coding with Claude Code but you can also use a Cursor's own chat or their own agent. Now when you do when you use a combination of these both things can get really powerful.

Or soon you'll just get used to reading through documentation. A lot of debugging happens sometimes manually. The model may not be able to figure it out. So again over time I would I would highly suggest reading some of these shortcuts, commands, especially from Claude Code's developer documentation. How they work, some of the best practices etc etc. I would say the biggest skill that's required is patience. You'll be running into bugs that you'll never understand.

There are a million things that can break and this is where you look at your error logs and resolve. So you need to know where to look, what and when. That is very important. Now the best teacher sits in your terminal which is Claude Code itself. Whenever you're stuck anywhere you could simply ask Claude Code on what to do. If it is not able to implement a certain feature, a certain change, it will still spell out the steps for you. So you can do it outside the terminal.

Now I will tell you how. Now the first step is once you have installed Claude Code, set up your let's say project directory, and you've opened your terminal from the directory where you're building that app, the next step is simply prompting. Now here let me, now it's very hard for me to go back to the chat history with Claude Code. There's this very simple visualization tool that shows my earlier history with the Claude Code and this was the very first prompt. Now again here I highly recommend using voice based, voice typing tools like whisperflow. This was my first prompt. Again I had initially asked it to look check for the feasibility.

It came back and I approve. It starts to do a bunch of those things and this is very human in the loop driven system, Claude Code. At every step it asks for your approvals, permissions. I mean majority of the times you wouldn't actually understand what it is but over time you should. You should have some clue as to what sits in your project directory, the files in your code base. Now there are I would like to call three broad environments. One is the local what sits on your system.

If you see all of these files are project files that are on my system that have been created for this app. Now you'll have to host this if it's a public facing app and that's where you create a GitHub account and create a repository and again of course keep it private. And link this repository to your Claude Code on the terminal. Now a quickest way to do that is through the GitHub CLI. The next step is the hosting part which I've done on Vercel. Now again I'm using the free tier for all of this. You can create an account with Vercel.

You can use the GitHub login. So now essentially all your three environments are linked. Your system, your local files. For any change you commit to your GitHub repo. Which should look something like this. And for every change Vercel deploys. Now within Vercel there are a bunch of environments.

I wipe code in prod. So if there are any software engineers watching this, I apologize. So this is how this is your Vercel. So every time a change happens in that repository, Vercel automatically deploys. Logs are very important. This is where you feel like you are in the right place. Logs are very important.

Very important this is where you figure out bugs and wherever you get stuck if something is breaking because there are many moving parts to this and if anything breaks you get the log of it here and and you go ask Claude Code back again to fix it now within Vercel again there are a couple of environments preview environment deployment environment and production environment production is what is public facing there is something called a plan mode in Claude where which you can invoke by again slash plan it gives you where you can brainstorm before you implement so now for this app to work you need to first import the youtube transcripts the automated subtitles generated by youtube and store it in your database because that is your knowledge base for queries for answering queries now there's this admin panel which is again created by Claude Code where as you as the admin control again you put your url you can batch add them or just put your playlist and it will import the videos metadata which is your titles descriptions everything as well as the the subtitle files now why subtitle files in particular because when you download this file in srt or vtt format you get there is a it comes out in chunks there's a timestamp for every five or six odd seconds now that forms the base for the linking system where you get the your you get answers linked to youtube videos at the exact timestamp now a couple of ways to do it through the youtube data api now you'll have to create that in your google console pretty pretty simple always keep your api keys secretive these are never saved in your github repo these are these sit locally on your system and on versatile at the time of deployment you add it to your environment variables now the first issue I faced of for you to actually import these captions you require a different level of permissions or approvals which I couldn't set up immediately now that was my first blocker then you then I found this workaround now these are public open source libraries which helps you do the same now this ended up working perfectly so through the youtube data api I get to download the metadata and through this yt dlp I get to download the captions now these get stored as chunks in your Supabase application database now this is how it would look so now with large databases you can't simply put the model through a million words to get your answer every time and that's where you would need a context-aware segments and this is where embedding models come in now I've used two OpenAI models this is the text-embedding-3-small this is a model that measures the relatedness between two pieces of text so it creates embeddings which then reduces latency in search and of course in in producing the answers the other is the chat application api which is the final synthesis for which I've used GPT-4o mini again super cheap and this is the only place where I've actually spent some money so yeah super base for your database you apis for your embedding and vector database and synthesis youtube data api to import metadata as well as captions and yeah and that sets the foundation so now all my api keys sit in this environment production file locally and this is let's say the format of how it is entered now again Claude Code prompts you to stick to this format of course I can't show you the actual api keys here in production now the now the exact api keys you again go to vercel and save it there that's when that's how the app would work once it is deployed now one of the most important parts is having a watertight system prompt now if you look at my system prompt it looks something like this now this is very important to reduce hallucinations this is pretty very structured very detailed and for instance let me show you I made some changes to the system prompt now let me show you again system prompt is also stored within your production environment on vercel let me show you how it looks here and there is a reason why I say it is very important to both structure your answers as well as reduce hallucinations for instance when when when you're synthesizing your answers through youtube captions the system wouldn't actually know which founder is saying that it only knows let's say the episode name so there is a very clear prompt where I say do not ever specify the name of the founder in your answer only include name of the company now that it has access to without this negative prompt you'll realize that again the final model will actually start to hallucinate if it follows or the instructions given in the system prompt as is so having a watertight system prompt is super important because once it searches through your vector vector database it sends those chunks to the gemini or open air model for the final synthesis and this is where your system prompt comes in effective okay time for some learnings so I used clot code on my usual 20 plan now that gives you access to sonnet 4. It is not their best model Opus 4 is their best model but that is on their 200 max plan not even cursor pro gives you access to Opus 4. Number one although this combined with a human in the loop approach where you can understand how the code works and where you can understand what the llm is asking you to do especially when bug fixing and this is you'll have to be super proactive because there have been instances where Claude Code was not able to figure out why a certain bug occurs I then had to again read through document documentations search through stuff to finally figure it out and you'll be surprised to know sometimes you you will be helping the model fix bugs and that's where you get responses like this thank you for your patience for and for those of you who are interested in the model fix bugs and that's where you get responses like this thank you for your patience for and for those of you who are interested in the model fix bugs and that's where you get responses like this thank you for your patience for and for providing the additional information it was key to pinpointing and resolving the issue correctly so sometimes the model thanks you for helping it fix a bug that is number one then the next most important thing is alignment of code code base between what you have in your system sitting offline where you can spin up local servers to see a prototype of how the website would look that is a local version and what you commit to your github repository which is the statement of record that's where you come back to see what changes have been made and production environment that is sitting on vercel so any change you make directly let's say in the production environment for instance I've made a change in the system prompt directly there make sure to make the same edit back in your local and commit to your repo so all three environments are aligned so now in terms of security fixes one of the things that's important is you've got this admin panel which earlier was actually exposed to everyone however you you must ensure a role-based access to this either through a google auth that is whitelisted just for your id in in my case I've simply used a alphanumeric login so you don't want others to just go and import any video they want and it is always good to have a system where you can see the episodes that are imported the episodes that are processed and whatnot so please protect your admin panel never expose your api keys align your code between your three environments sometimes just be proactive in fixing bugs by reading through documentations or asking again you could simply ask Opus 4 on Claude web to fix a certain bug that's how I fixed one and where sometimes it's failing or look for workarounds that work if if things are breaking in your local environment or your production environment especially in the backend you could also ask Claude Code to make those changes directly from the terminal sometimes that works so yeah so this video is merely a synthesis of my learnings and not a step-by-step reproduction of how I built this app and lastly wherever you get stuck feel free to ask your software engineering friends for help understand to an extent how your app works how the system works there's a lot of logical reasoning involved I hope you found some of this useful any if you have any more questions feel free to ask down in the comments see you in the next video

---

Previous: [The AI tools I use every day](https://whyvanamali.com/writing/ai-tools-i-use-every-day) · Next: [Comet's immersive first retail store in Bengaluru](https://whyvanamali.com/writing/i-am-struck-by-how-comet-has-transformed-its-first)
All posts: https://whyvanamali.com/writing
