Skip to content

Chai Aur Bot is an AI chat app with dual personas, Hitesh Choudhary and Piyush Garg. It provides coding guidance, motivational tips, and supports Markdown with syntax-highlighted code. Built with Next.js, Tailwind CSS, and Google Gemini AI for dynamic responses.

Notifications You must be signed in to change notification settings

Siddharth-Phogat/Chai-Aur-Bot

Repository files navigation

Chai Aur Bot – Dual Persona Chat

Chai Aur Bot is a web-based AI chat application that allows users to interact with multiple AI personas. Each persona has a unique teaching style, tone, and personality, designed to provide guidance, coding advice, and motivational insights in a conversational manner.


Screenshots

Talking to Hitesh Choudhary Sir

Screenshot (182)

Talking to Piyush Garg Sir

Screenshot (183)

Features

  • Dual Personas:

    • Hitesh Choudhary – Friendly, motivational, Hinglish, project-oriented, humorous.
    • Piyush Garg – Energetic, practical, project-focused, emoji-rich, action-oriented.
  • Realistic Chat UI: Smooth scrolling, timestamped messages, and visually appealing chat bubbles.

  • Markdown & Code Support: AI responses can include formatted text, tables, and syntax-highlighted code blocks.

  • Persona Switching: Easily switch between personas to get guidance in different styles.

  • Responsive Design: Fully responsive layout for desktop and mobile.


Tech Stack

  • Frontend: React.js, Tailwind CSS, React Markdown, Syntax Highlighter
  • Backend: Next.js API routes, Google Gemini AI
  • State Management: React useState, useEffect, useRef
  • Other Packages: lucide-react (icons), remark-gfm (Markdown support)

Installation

  1. Clone the repository:

    git clone <repo-url>
    cd chai-aur-bot
    
  2. Install dependencies:

    npm install
  3. Set your environment variable:

    GEMINI_API_KEY=<your-google-gemini-api-key>
  4. Run the development server:

    npm run dev
  5. Open your browser at http://localhost:3000.


File Structure

/app
  /data
    personas.js          # Persona definitions (Hitesh Choudhary & Piyush Garg)
  /api
    gemini-chat/route.js # Backend API to fetch AI responses
  /components
    DualPersonaChat.js   # Main chat component

Usage

  • Type a message in the input box and press Enter or click the Send button.
  • Switch between personas to receive answers in different teaching styles.
  • AI responses can include code snippets, Markdown, and emojis.

Dependencies

npm install react-markdown remark-gfm react-syntax-highlighter lucide-react

License

This project is open-source and available under the MIT License.


Future Enhancements

  • Real-time streaming responses from Gemini AI
  • Stream Response
  • Multiple additional personas
  • Dark/Light theme toggle
  • Voice input and output
  • Chat history and export

About

Chai Aur Bot is an AI chat app with dual personas, Hitesh Choudhary and Piyush Garg. It provides coding guidance, motivational tips, and supports Markdown with syntax-highlighted code. Built with Next.js, Tailwind CSS, and Google Gemini AI for dynamic responses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published