StreamKar Bot is an intelligent, multimodal support assistant built for the StreamKar platform. Unlike traditional chatbots, StreamKar Bot utilizes Google Gemini 2.5 Flash to "see" user issues through screenshots and Flux AI to purely generate creative brand assets on demand.
- Intelligent Retrieval: answers complex queries about StreamKar policies (PK Battles, Agency, Withdrawals) using a grounded Knowledge Base.
- Zero Hallucinations: Strictly adheres to the provided context (
context.txt) to ensure accurate support.
- Screenshot Debugging: Users can upload screenshots of error messages or app interfaces.
- Visual Reasoning: The bot analyzes the image using Gemini Vision to identify the problem and suggest a fix instantly.
- Flux Model Integration: Generates high-quality, 3D neon-style avatars.
- Smart Prompting: Uses prompt engineering to maintain brand consistency (Official StreamKar Logo style) without needing external reference images.
| Component | Technology | Purpose |
|---|---|---|
| LLM Core | Google Gemini 2.5 Flash |
Reasoning, Chat, and Vision processing. |
| Backend | FastAPI (Python) |
High-performance async API to handle requests. |
| Image Gen | Pollinations.ai (Flux) |
Serverless generation of brand assets. |
| Frontend | HTML5 / CSS3 / JS |
Responsive chat interface with file upload support. |
| Database | Context.txt (Flat File) |
Lightweight knowledge base for RAG. |
User: Uploads screenshot of login error
KarBot: "I see a 'Network Timeout' error in your screenshot. Please check your connection or try clearing the app cache."
User: "Create a Avatar for me."
StreamKar Bot: Generates a 3D Cyberpunk StreamKar themed Avatar.
- Python 3.9 or higher
- Google AI Studio API Key
git clone [https://github.com/superuser303/streamkar-bot.git](https://github.com/superuser303/streamkar-bot.git)
cd streamkar-botpip install -r requirements.txt- Create a
.envfile in the root directory and add your API key:
GEMINI_API_KEY=your_actual_api_key_herepython main.py- The server will start at
http://localhost:8000(or0.0.0.0:8000for deployments).
streamkar-bot/
├── main.py # Application Entry Point & API Logic
├── index.html # Frontend Interface
├── context.txt # Knowledge Base Source
├── requirements.txt # Python Package List
├── logo2.png # Static Assets
└── README.md # Documentation- Contributions are welcome! Please fork the repository and submit a Pull Request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewFeature) - Commit your Changes (
git commit -m 'Add some NewFeature') - Push to the Branch (
git push origin feature/NewFeature) - Open a Pull Request