Skip to content

criix23/PersonaBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎭 Persona Bot

A next-generation AI chatbot platform with multiple personalities, powered by Google's Gemini AI.

Live

personabot.onrender.com

Persona Bot transforms the way you interact with AI by offering a diverse range of chatbot personalities, each with unique characteristics, communication styles, and specialized capabilities. Whether you need a technical code explainer, a creative writing assistant, or even a Pokémon expert, Persona Bot adapts to your needs.


Key Features

Multiple AI Personalities

Choose from a curated collection of AI personas, each with distinct communication styles:

  • Default Assistant - Your reliable, helpful AI companion
  • Pirate Captain - Ahoy! Talk like a swashbuckling pirate
  • Minecraft Steve - High-energy, dramatic, and goofy (inspired by Jack Black's portrayal)
  • King LeBron - Basketball royalty with regal flair and motivational wisdom
  • Code Explainer - Technical expert focused on clear code explanations
  • Summarizer - Concise bullet-point summaries of any content
  • Professor Oak - Pokémon expert with live Pokédex integration
  • Custom Persona - Create your own unique personality with custom instructions

Real-Time Streaming Conversations

Experience fluid, natural conversations with real-time response streaming. Watch as the AI crafts its responses word-by-word, creating an engaging and interactive chat experience.

Special Features

Pokémon Integration (Professor Oak Persona)

Ask Professor Oak about any Pokémon and receive:

  • Detailed Pokédex entries with official artwork
  • Base stats with visual stat bars
  • Type information with color-coded badges
  • Abilities (including hidden abilities)
  • Evolution chains and next evolution information
  • Height, weight, and flavor text
  • Clickable evolution links for easy exploration

Interactive Reactions

  • React to bot messages with emojis (👍, 😂, ❤️, 🤔, 🎉, 😢)
  • The bot responds to your reactions in character
  • Build a more engaging conversation experience

Markdown & Code Support

  • Rich text formatting with Markdown
  • Syntax-highlighted code blocks
  • One-click code copying
  • Support for multiple programming languages

Beautiful, Modern UI

  • Dark/Light Theme Toggle - Switch between themes with one click
  • Responsive Design - Works seamlessly on desktop and mobile
  • Smooth Animations - Polished user experience
  • Accessible - Clean, readable interface with proper contrast

Enterprise-Grade Security

  • Access Control - Protect your deployment with access codes or unique tokens
  • Rate Limiting - Built-in protection against abuse and DDoS attacks
  • Input Validation - All user inputs are sanitized and validated
  • Secure Sessions - Industry-standard session management
  • Security Headers - Comprehensive protection against common web vulnerabilities

Use Cases

For Developers

  • Code Explanation - Get detailed explanations of complex code
  • Technical Documentation - Generate documentation with the Code Explainer persona
  • Debugging Assistance - Understand error messages and find solutions

For Content Creators

  • Creative Writing - Collaborate with different personas for varied writing styles
  • Content Summarization - Quickly summarize long articles or documents
  • Character Development - Use personas as inspiration for character voices

For Educators

  • Interactive Learning - Engage students with different teaching styles
  • Subject-Specific Help - Use specialized personas for different topics
  • Pokémon Education - Make learning fun with Professor Oak's expertise

For Businesses

  • Customer Support - Deploy custom personas for specific use cases
  • Internal Tools - Create specialized assistants for different departments
  • Training & Onboarding - Interactive learning experiences

Why Persona Bot?

Versatility

One platform, infinite possibilities. Switch between personas instantly to match your current need.

Quality

Powered by Google's Gemini AI, ensuring high-quality, contextually-aware responses.

Customization

Create your own personas with custom instructions, or use the pre-built ones.

Performance

Optimized for speed with streaming responses and efficient model fallback systems.

Security

Enterprise-ready security features protect your deployment and API keys.


Technology Stack

  • Backend: Python with Flask
  • AI Engine: Google Gemini AI (with automatic model fallback)
  • Frontend: Vanilla JavaScript, HTML5, CSS3
  • Real-time: Server-Sent Events (SSE) for streaming
  • Security: Flask-Limiter, comprehensive input validation, security headers
  • Data: PokéAPI integration for Pokémon data

Features Overview

Feature Description
Multiple Personas 8+ pre-built personas + custom persona creation
Real-time Streaming Watch responses generate in real-time
Pokémon Integration Full Pokédex with stats, evolutions, and artwork
Markdown Support Rich text formatting and code highlighting
Interactive Reactions Emoji reactions with bot responses
Theme Toggle Dark/light mode support
Access Control Secure access codes and token-based authentication
Rate Limiting DDoS protection and abuse prevention
Mobile Responsive Works on all device sizes

Try It Out

  1. Access the Platform - Use your access code or unique token link
  2. Choose a Persona - Select from the settings menu (⚙️)
  3. Start Chatting - Ask questions, get code explanations, or explore Pokémon
  4. React & Engage - Use emoji reactions to interact with responses
  5. Customize - Create your own persona with custom instructions

Highlights

  • Fast & Responsive - Optimized for speed with streaming responses
  • Beautiful UI - Modern, clean interface with smooth animations
  • Secure - Enterprise-grade security features
  • Versatile - Multiple personas for different use cases
  • Accessible - Works on desktop, tablet, and mobile
  • Production-Ready - Built for real-world deployment

Example Interactions

With Code Explainer:

You: Explain this Python function: def fibonacci(n): ...
Bot: This function implements the Fibonacci sequence recursively...

With Professor Oak:

You: Tell me about Pikachu
Bot: [Displays full Pokédex entry with stats, types, abilities, and evolution chain]

With King LeBron:

You: Give me motivation
Bot: "Strive for greatness, young warrior. The court of life awaits your excellence..."

License

This project is open source and available for personal and commercial use.


Acknowledgments

  • Google Gemini AI for providing the AI capabilities
  • PokéAPI for comprehensive Pokémon data
  • Open Source Community for the amazing libraries that made this possible

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors