AI Tribunal
Inspiration
As absurd as it sounds, the idea came from TikTok videos of Obama and Trump playing Minecraft together. Seeing AI-generated conversations between famous figures online made us wonder: What if we could make them debate in a courtroom-style showdown? That’s how AI Tribunal was born—a platform where public figures engage in dramatic, Ace Attorney-style debates on the world’s most heated topics.
What It Does
AI Tribunal lets users experience fictional AI-powered debates between well-known figures. The debates are text-based, accompanied by expressive character images that capture the intensity of the discussion. Each debate unfolds dynamically, presenting compelling arguments and counterarguments, making it both entertaining and thought-provoking.
How We Built It
We developed AI Tribunal using Next.js for the frontend, ensuring smooth interactions and a seamless user experience. The platform relies on AI to generate structured debate dialogues, keeping discussions engaging and realistic. Additionally, we implemented Rust-based smart contracts to handle the ownership and trade of AI-generated debates, creating a unique system where debates can be collected and exchanged.
Smart Contract Implementation
To enable decentralized debate ownership and trading, we built a Rust-based smart contract that supports the creation, storage, and voting of AI-generated debates. Below is a snippet of the contract:
#[near]
pub struct Debate {
topic: String,
creator: AccountId,
created_at: u64,
figure_1_name: String,
figure_1_image_url: String,
figure_2_name: String,
figure_2_image_url: String,
debate_dialogue: Vec<(String, String, String)>,
}
#[near]
pub struct Vote {
debate_id: u64,
voter: AccountId,
voted_at: u64,
choice: u8,
}
#[near_bindgen]
#[derive(BorshSerialize, BorshDeserialize, PanicOnDefault)]
#[borsh(crate = "near_sdk::borsh")]
pub struct Contract {
owner_id: AccountId,
debates: UnorderedMap<u64, Debate>,
next_debate_id: u64,
votes: UnorderedMap<u64, Vote>,
next_vote_id: u64,
}
This contract ensures that debates are securely stored on-chain, owned by creators, and ready for decentralized interaction.
Content Generation
- We first fetch the script from the google Gemini Model. returning list of objects:
{ character: string, message: string, description: string } - After that, we images based on the characters and description provided by calling the GetImgAPI
- We then display the results. Arranging it to look like an Ace Attorney Game.
- Lastly, we will give the option for the user to either review the debate or publish it
Challenges We Ran Into
One of the biggest challenges was ensuring coherent and structured AI-generated arguments. Unlike casual AI conversations, debates require logical flow, rebuttals, and structured reasoning. We also had to design a visually engaging experience using only text and images, without relying on AI voice synthesis. Implementing smart contracts to support decentralized ownership of debates also introduced technical hurdles, but we successfully integrated it into our system.
Accomplishments That We're Proud Of
We’re proud of creating an engaging AI-generated debates that feel structured and natural. The Ace Attorney-style format brings an extra layer of drama and excitement. Another major achievement is the smart contract integration, allowing debates to be owned and voted using Fungible Tokens as a decentralized data.
What We Learned
Throughout development, we learned how to refine AI-generated text and Image generation. With NEAR and Rust We also gained deeper insights into decentralized ownership and the potential of smart contracts in managing digital intellectual property. Lastly, optimizing Next.js for an AI-driven, interactive experience was a valuable learning experience.
What's Next for AI Tribunal
Moving forward, we plan to introduce premium features, including higher-quality character images and exclusive debate content. We also plan to integrate NFT-based trading, allowing users to own, sell, and exchange unique debate records. Expanding the platform to cover a wider range of public figures and debate topics is another key goal.
AI Tribunal is just the beginning—we’re shaping the future of AI-driven debates and interactive storytelling! ⚖️🔥
Built With
- blockchain
- gemini
- getimgapi
- near
- nextjs
- nft
- rust
- tailwindcss
- typescript
Log in or sign up for Devpost to join the conversation.