Tagline / Short Description

An interactive battle of logic where users debate against Gemini 3, receiving real-time scores and Socratic feedback.

Inspiration

In an era of polarized social media, we wanted to build a tool that doesn't just "chat" but actively challenges us to think better. We were inspired by the concept of a digital "Socratic Arena" where AI helps refine human logic, not just replace it.

What it does

DebateAI is a web application that pits your arguments against Google's latest Gemini 3 Flash Preview model.

  1. The Debate: You enter a topic and your opening argument.
  2. The Analysis: Gemini 3 analyzes your text for logical fallacies, emotional resonance, and factual accuracy.
  3. The Counter: It generates a sharp, logically sound counter-argument.
  4. The Score: It assigns a "Truth Score" (0-100) based on the strength of your logic.

How we built it

  • Backend: Node.js & Express server.
  • AI Core: Google Gemini API using the gemini-3-flash-preview model for its advanced reasoning capabilities and low latency. We also implemented a robust fallback system that automatically switches to gemini-2.0-flash if the preview model is rate-limited.
  • Frontend: A cyberpunk-themed terminal interface (HTML/CSS) designed to feel like a "hackerman" console.
  • Resilience: We built a custom "Robust JSON Extraction" system to handle Gemini's conversational outputs and ensure the UI never breaks, even if the model gets chatty.

Challenges we ran into

Integrating the cutting-edge gemini-3-flash-preview came with challenges—specifically, parsing the structured JSON data reliably from a creative model, and handling rate limits on the free tier. We solved this by implementing a "smart extraction" logic in the backend and a model-fallback strategy.

Accomplishments that we're proud of

We are proud of the "Truth Score" algorithm. Getting the AI to quantify the quality of an argument rather than just replying to it was a fun prompt engineering challenge. We're also proud that the app handles errors gracefully—if the AI is overwhelmed, the app heals itself.

What's next for DebateAI

  • Voice Mode: Integrating speech-to-text for real-time oral debates.
  • Multi-Round Context: Allowing the debate to continue for 5-10 turns to track improvement.
  • Leaderboard: Global ranking of users with the highest logical accuracy scores.

Final Submission Details

  • Start Date: 02-05-2026
  • Video Demo: https://youtu.be/sZV1XKhjeDk
  • Repository: https://github.com/01Developer95/debate-ai.git
  • Zip File: DebateAI_Submission.zip

Built With

Share this project:

Updates