Final day — added typing indicators, rate limiting, and a fallback message when the API is down. It's live on my landing page! Really happy with how this turned out.
Build AI Chatbot for Website
Create a chatbot using OpenAI API and deploy on a landing page
Aarav Sharma finished this 7-day challenge with 7 logs and a 7-day chain.
Started Jul 16 → finished Jul 23, 2026
Every day, on the record
Recent logs
Deployed to Vercel. Ran into a CORS issue that took an hour to debug. Also added streaming responses so replies appear word by word.
Styled the widget to be embeddable. Created a floating button in the corner that opens a chat panel. Looks pretty clean actually.
Worked on context management — the bot now carries conversation history across messages. Also added input validation and basic error handling.
Integrated GPT-4o mini via the API. First successful conversation worked like magic. Experimented with system prompts to set the chatbot tone.
Need help with
API is returning 429 errors and I can't figure out the rate limiting issue. Will try again tomorrow.
This is making me want to start my own challenge on here.
Built the chat interface — simple HTML/CSS with a message bubble layout. Added local message history so conversations persist in the session.
Spent the morning reading OpenAI API docs. Set up a fresh Node.js project with Express and got my API key configured. Exciting start!
Outcome
No outcome added yet.
Stats
- Days logged
- 7
- Current chain
- 7
- Completion
- 100%
- Reactions
- 2
- Comments
- 1
- Followers
- 0