Inspiration

While brainstorming ideas for the hackathon, we found ourselves doing what so many people do every day — struggling to communicate effectively with AI. We kept tweaking prompts, hoping for better results, only to get vague or off-target responses. That’s when it hit us: the problem isn’t the AI — it’s the prompt. _ So we stopped fighting the prompt and started fixing it. That’s how OptiPrompt was born — a smart solution to help people speak AI’s language with precision and purpose. _

What it does

OptiPrompt analyzes your input prompt and offers real-time suggestions to improve clarity, specificity, and relevance. Think of it as Grammarly, but for talking to large language models. Whether you're coding, writing, brainstorming, or querying — OptiPrompt makes sure you're getting the most out of your AI interactions. The goal? Better prompts. Better outputs. Less friction.

How we built it

  1. Streamlit: For the frontend — fast, interactive, and perfect for rapid prototyping with a clean UI.
  2. Google Gemini API: The brains behind the prompt optimization — analyzing input, enhancing clarity, and offering smarter rewrites.
  3. Python: Our go-to language for backend logic, API handling, and NLP-based preprocessing.
  4. OpenAI (ChatGPT): Used internally during development for code generation, debugging, and idea validation — basically our co-pilot.

Challenges we ran into

  1. Context awareness: Teaching the system to understand vague or poorly written prompts was tricky
  2. Keeping it concise: Optimizing prompts without bloating them required constant tweaking of our rewrite logic.
  3. Time constraints: It's a hackathon, so fitting a big vision into a tight time was its own wild ride.

Accomplishments that we're proud of

  1. We got the full pipeline working — from raw prompt to polished suggestion — in under 24 hours.
  2. Integrated Gemini smoothly and made it actually useful, not just flashy.
  3. The UI/UX is clean, intuitive, and just feels right.
  4. Most importantly? It works. We tested it on real prompts — and the output quality leveled up.

What we learned

  1. Prompt engineering is an art — and it’s still evolving.
  2. Gemini’s flexibility is powerful, but it takes finesse to harness.

What's next for OptiPrompt

  1. Use-case presets: Coding, content creation, research — each has different prompt needs. We’ll personalize optimizations.
  2. Chrome extension: Bring OptiPrompt anywhere — Notion, ChatGPT, Gemini, Docs, you name it.

Built With

Share this project:

Updates