Inspiration
What it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
## Project Story
About the Project
This project is an OpenAI API Bot Starter designed for developers and learners to interact with AI-powered chatbots. The goal was to create a simple, lightweight, and visually appealing Streamlit app that hosts two specialized bots:
- Mentor Bot – Provides programming, career, and learning guidance.
- Innovation Bot – Helps users brainstorm ideas, solve problems creatively, and explore AI opportunities.
The inspiration came from the challenge of making AI accessible for developers without building heavy backend systems. I wanted a platform where users could ask questions, get actionable guidance, and generate innovative ideas in real-time.
What I Learned
- How to integrate OpenAI API with Python in a Streamlit app.
- Structuring chatbot logic with both rule-based fallback and AI-powered responses.
- Designing dark futuristic UI with CSS in Streamlit for a professional look.
- Managing environment variables and API keys securely using
.env. - Handling conversation history and dynamic message prompts for context-aware replies.
How I Built It
- Created two Python modules:
mentor_bot.pyandinnovation_bot.py. - Added system prompts for each bot to define tone, role, and guidance style.
- Built a Streamlit frontend (
app.py) with bot selection, dark theme, and animated UI elements. - Integrated OpenAI API to generate responses, while keeping a rule-based fallback for offline or missing API scenarios.
- Styled the app with CSS to achieve a futuristic look and dot-grid background.
- Prepared for deployment on Streamlit Cloud, including secrets management for the API key.
Challenges Faced
- Ensuring rule-based responses were meaningful when the API was not available.
- Fine-tuning prompt design to produce consistent, actionable guidance.
- Styling Streamlit with custom CSS while keeping responsiveness intact.
- Debugging syntax issues, indentation errors, and Streamlit deployment quirks.
- Balancing creativity vs accuracy for the Innovation Bot without overloading responses.
💡 This project demonstrates how developers can leverage OpenAI for practical and creative applications while maintaining a simple and extensible interface. It also shows how lightweight, frontend-only deployments can still provide advanced AI-powered features.What we learned
Log in or sign up for Devpost to join the conversation.