Intrabot-AI is an offline-first organizational chatbot designed to answer employee queries by retrieving information from secure internal databases. It ensures data privacy, security, and reliability by running completely offline. When offline data is insufficient, it can fallback to Google Gemini API for extended answers.
- Offline-First β Retrieves answers from local knowledge base (ChromaDB + embeddings)
- Role-Based Access β Employees, HR, IT, and Admins see only what they are authorized to view
- Gemini Fallback β When the local database lacks answers, Gemini API provides extended support
- Secure & Private β No sensitive organizational data is sent outside unless explicitly needed
- Lightweight & Fast β Works without internet dependency
- Custom Chat UI β User-friendly interface for employees
- Frontend: React / Streamlit (Chatbox UI)
- Backend: FastAPI (Python)
- Vector DB: ChromaDB
- Embeddings: all-MiniLM-L6-v2 (Sentence Transformers)
- LLM (Offline): GPT4All / LLaMA (optional)
- Fallback Model: Google Gemini (
gemini-pro)
Intrabot-AI/
βββ frontend/ # React/Streamlit UI
βββ offline-org-chatbot/ # Core chatbot logic
βββ src/ # Source code modules
βββ venv/ # Virtual environment
βββ api.py # FastAPI backend
βββ gemini_client.py # Google Gemini integration
βββ rbac.py # Role-based access control
βββ retrieval.py # Document retrieval logic
βββ requirements.txt # Dependencies
βββ .gitignore # Git ignore rules
βββ README.md # Documentation
git clone https://github.com/Adesh2204/Intrabot-AI.git
cd Intrabot-AIpython -m venv venv
source venv/bin/activate # Mac/Linux
venv\Scripts\activate # Windowspip install -r requirements.txtCreate a .env file and add:
GEMINI_API_KEY=your_api_key_herepython api.py
# or
uvicorn api:app --reloadstreamlit run frontend/app.pycd frontend
npm install
npm start- Open the chat UI
- Ask questions like:
- "How do I apply for leave?" β (Offline HR docs answer)
- "Write a leave application draft" β (Gemini fallback answer)
- "How do I reset my office email password?" β (Offline IT docs answer)
- Role-based responses based on your access level
Showcasing the clean, user-friendly chat interface
- Multilingual support (Hindi, Spanish, etc.)
- Voice-enabled chatbot with speech recognition
- Analytics dashboard for admins to track usage
- Integration with Slack, MS Teams, and ERP systems
- Mobile app for on-the-go access
- Advanced RBAC with department-wise permissions
- Fork the project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
- Adesh2204 - Lead Developer - @Adesh2204
- Team Intrabot-AI - Hackathon 2025
- Developed during Hackathon 2025
- Inspired by the need for secure, offline-first enterprise chatbots
- Thanks to the open-source community for amazing tools and libraries
- Data Privacy: All organizational data stays on-premises
- Secure by Design: No external data transmission unless explicitly needed
- Role-Based Access: Users only see information they're authorized to access
- Audit Trail: All interactions are logged for compliance
Built with β€οΈ for secure enterprise communication
