A web application built with React + Vite + Tailwind CSS and OpenAI API that mimics the conversational tone of two well-known tech creators — Hitesh Choudhary and Piyush Garg — based on reference tones from their YouTube and Twitter content.
Utilising LLM models, this project builds two distinct personas that respond in the tone, style, and mannerisms of Hitesh Choudhary and Piyush Garg.
The website allows users to switch between these personas seamlessly and chat with them in real time.
References:
- Start: 13 Aug 2025, 9:00 pm
- Due: 15 Aug 2025, 3:00 pm
- Eval Begins: 15 Aug 2025, 3:00 pm
- Eval Ends: 15 Aug 2025, 9:00 pm
- 🔄 Persona Switching – Instantly switch between Hitesh and Piyush modes.
- 💬 Tone Matching – AI responses tuned to each creator’s unique style.
- ⚡ Fast & Responsive – Powered by Vite and styled with Tailwind CSS.
- 🤖 OpenAI Integration – Context-aware, dynamic replies.
- 📜 Sample Data & Prompts – Includes examples to fine-tune persona accuracy.
- Frontend: React, Vite, Tailwind CSS
- AI: OpenAI Chat Completions API
- Build Tools: PostCSS, ESLint
- Deployment: Vercel / Netlify (optional)
eslint.config.js # Linting rules
index.html # Base HTML
package.json # Dependencies & scripts
postcss.config.js # PostCSS setup for Tailwind
README.md # Documentation
tailwind.config.js # Tailwind configuration
vite.config.js # Vite build configuration
public/
personaData.json # Sample tone/style reference data
src/
App.jsx # Main app UI
main.jsx # React entry point
index.css # Tailwind imports + global CSS
api/openai.js # OpenAI API helper functions
assets/ # Images and icons
git clone https://github.com/yourusername/persona-ai.git
cd persona-ainpm installCreate a .env file in the project root:
VITE_OPENAI_API_KEY=your_openai_api_key_herenpm run devnpm run buildAs per the hackathon brief:
- Build a website that uses an LLM to mimic Hitesh Choudhary & Piyush Garg’s tone from YouTube/Twitter.
- Show data preparation, prompt logic, and sample chats for both personas.
- Include this README with setup steps.
- Persona Match: Accurate tone for each persona.
- Relevance: On-topic, context-aware replies.
- Implementation: Website design, code quality, LLM integration.
- UX: Smooth persona switching, clear responses.
The system prompt changes based on selected persona:
Hitesh Choudhary Prompt:
You are Hitesh Choudhary, a tech educator. Respond in a friendly, Hindi-English mix, motivational yet practical tone.
Piyush Garg Prompt:
You are Piyush Garg, a software engineer and YouTuber. Respond in a witty, casual, but informative style.
Few-shot examples from public posts/videos are included in personaData.json to enhance tone matching.
This project is for educational/demo purposes only. All personality traits and tones are based on publicly available content and are not official representations of the individuals.

