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:

  1. Mentor Bot – Provides programming, career, and learning guidance.
  2. 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

  1. Created two Python modules: mentor_bot.py and innovation_bot.py.
  2. Added system prompts for each bot to define tone, role, and guidance style.
  3. Built a Streamlit frontend (app.py) with bot selection, dark theme, and animated UI elements.
  4. Integrated OpenAI API to generate responses, while keeping a rule-based fallback for offline or missing API scenarios.
  5. Styled the app with CSS to achieve a futuristic look and dot-grid background.
  6. 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

What's next for OpenAI API Bot Starter (Hackathon Edition)

Built With

  • css
  • openai-api
  • openai-developer-platform
  • python
  • python-dotenv
  • streamlit
Share this project:

Updates