Skip to content

customizable ChatGPT-style chatbot built with Streamlit and OpenAI

Notifications You must be signed in to change notification settings

saket0x07/rolebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’¬ RoleBot β€” Your Personal Chat Persona Companion

Welcome to RoleBot, a customizable, ChatGPT-style chatbot built with Streamlit and OpenAI APIs.
Switch personas, chat with style, and experience a bot that responds how you want.


πŸš€ Features

  • 🎭 Persona Selector β€” Choose how your bot behaves (friendly, sarcastic, emotional, etc.)
  • πŸ“œ Chat History β€” Ongoing conversation thread that scrolls with ease
  • 🎨 Right-Aligned User Input β€” Elegant chat layout just like ChatGPT
  • 🧹 Clear Chat Button β€” Start fresh any time
  • πŸ’ž Responsive UI β€” Sleek CSS styling with alignment magic
  • 🌐 Powered by GPT β€” Smart replies based on the selected persona

πŸ› οΈ Setup Instructions

git clone https://github.com/saket0x07/rolebot.git
cd rolebot
pip install -r requirements.txt

---
Create a .env file in the root directory:

GITHUB_TOKEN=your_api_key_or_token_here

---
Then run the app:

streamlit run app.py
---

🎭 Persona System
Define personas inside config/personas.json like this:

json
{
  "Sweetheart Machine": {
    "prompt": "You are a loving, warm-hearted assistant who speaks like a caring friend.",
    "description": "Soft-spoken, kind, and always uplifting."
  },
  "Sarcastic Genius": {
    "prompt": "You're witty and brilliant, but never hold back your sass.",
    "description": "Sharp humor and intelligence combined."
  }
}
Feel free to add more β€” your bot will adapt in real time ✨

🀝 Credits
Built with ❀️ by saket0x07 Crafted using OpenAI + Streamlit + Python magic πŸ§™

About

customizable ChatGPT-style chatbot built with Streamlit and OpenAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published