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.
- π 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
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 π§