Background
← View all

DebateAI

AI LangGraph Groq Python

A multi-agent AI debate platform powered by LangGraph, enabling complex multi-role dialogue simulations.

Motivation

While learning LangGraph, I wanted to build a project that showcases multi-agent collaboration. Debate is an excellent scenario as it requires multiple roles with different stances to respond to each other’s arguments.

Tech Stack

  • Frontend: Next.js + shadcn/ui
  • Backend: FastAPI + LangGraph
  • LLM: Groq API (Llama 3.1)
  • Deployment: Vercel + Railway

Key Features

  1. Multi-role Debate: Support for pro, con, and moderator roles
  2. Topic Generation: AI-generated debate topics with background info
  3. Real-time Streaming: SSE-based live dialogue streaming
  4. History: Save debate history for review

Learnings

This project deepened my understanding of LangGraph’s StateGraph mechanism and how to design communication protocols between multiple agents.

Share this page