DebateAI

DebateAI is a web-based platform where users can log in and engage in structured debates either with other users or AI-powered bots. These bots are designed with distinct personalities, argument styles, and scoring criteria, simulating real-world debating opponents. The platform supports real-time video debates and dynamically scores each participant based on the quality of their arguments. With integrated leaderboards and profiles, users can track their growth and achievements over time.
🔹 Key Features
- AI Debate Bots: Choose from multiple bots with unique personalities, response styles, and rating logic. Each bot brings a different perspective and challenge.
- Real-Time Debates: Integrated WebRTC enables smooth peer-to-peer video debates with low latency.
- Live Score Evaluation: Bot judges and scores each argument in real-time based on logic, clarity, and emotional appeal.

- WebSocket Syncing: WebSocket ensures seamless synchronization of debate data, timer, turns, and results.

- User Profiles: Personalized profiles store past debates, win/loss stats, bot interaction history, and badges.
- Leaderboard: Global leaderboard to showcase top-performing users based on win rates and debate quality.
- Bot Customization (Experimental): Users can tweak bot personas for tailored debate experiences.
🔹 What I Built
- Designed and developed the entire frontend interface including the debate screen, user dashboard, and bot selection experience.
- Implemented WebRTC and WebSocket communication for real-time audio/video and event syncing.
- Created a modular AI prompt engine to generate bot responses and scoring feedback using LLMs.
- Built the scoring logic to evaluate arguments based on content, tone, and logical flow.
- Developed the user profile system, leaderboards, and debate history modules.
- Added experimental bot tuning features to adjust debate intensity and personality.
🔹 Tech Stack
- Frontend: React, TypeScript, TailwindCSS
- Backend: Node.js, Express
- AI Integration: OpenAI API (prompt-tuned for debate logic & personality)
- Real-Time Communication: WebRTC for media, Socket.IO for data sync
- Database: MongoDB (Mongoose for modeling)
- State Management: Redux Toolkit
- Deployment: Vercel (frontend), Render/Heroku (backend)
🔹 Why I Built It
Debating is a powerful way to enhance critical thinking, communication, and persuasion skills. I wanted to make this experience accessible, dynamic, and tech-driven. By introducing AI-powered bots with diverse styles, users can practice with consistency and variety—anytime, anywhere. This project also allowed me to explore advanced real-time technologies, prompt engineering, and build something fun yet intellectually challenging.