π€ Botrix β AI Chatbot Application
Botrix is a full-stack AI chatbot built with React, Tailwind CSS, Firebase, and OpenAIβs LLM Thread API. It provides secure authentication, persistent conversation history, and real-time chat storage powered by Firestore.
π Features
π OpenAI LLM Thread API Integration β Smart, contextual AI conversations
π Firebase Authentication β Secure signup/login with session management
π¬ Chat History β Saves prompts & responses in Firestore
π Quick Prompt Cards β Suggests common and frequently used prompts
π File Attachments β Add attachments in your chat flow
π Threaded Conversations β Continue previous discussions seamlessly
π¨ Modern UI β Responsive and elegant interface with React + Tailwind CSS
β‘ Real-Time Database β Instant updates with Firebase Firestore
π οΈ Tech Stack
Frontend: React, Tailwind CSS, JavaScript
Backend/Database: Firebase Firestore
Authentication: Firebase Auth
AI Engine: OpenAI LLM Thread API
π Dashboard with Prompt Cards
π¬ Chat Interface
Persistent history sidebar
Smart AI responses
File attachments support
π Project Structure
βββ src/ β βββ components/ # Reusable UI components β βββ pages/ # App pages (Login, Chat, History, etc.) β βββ firebase/ # Firebase config & services β βββ utils/ # Helper functions β βββ App.jsx # Main App component βββ public/assets # Static assets βββ package.json βββ README.md
β‘ Getting Started
-
Clone the Repository git clone https:github.com/mwasiq11/Chat-bot-Application/tree/main cd botrix
-
Install Dependencies npm install
-
Setup Firebase
Create a Firebase project
Enable Firestore & Authentication
Add your Firebase config to firebaseConfig.js
- Setup OpenAI API
Get your API key from OpenAI
Add it to your .env file:
VITE_OPEN_AI_API_KEY=your_api_key_here VITE_ASSISTENT_ID=your_assistant_id_here
- Run the Application npm run dev
π Authentication Flow
Users sign up or log in via Firebase Auth
Each userβs chats are saved under their unique UID
Conversations are persisted in Firestore for history access
π€ Contribution
Contributions are welcome! Fork this repo and submit a PR with improvements.