MANTRIX is an AI-powered web chatbot that supports both English and Hindi conversations and allows users to upload images for AI analysis. Built using HTML, CSS, and JavaScript, it integrates Google Gemini API to deliver smart, natural replies and interpret uploaded visuals.
- π Multilingual chat (English + Hindi)
- πΌ Image upload with AI-based description
- π€ Powered by Google Gemini (gemini-2.0-flash)
- π¬ Real-time chat interface with loading animation
- π± Mobile responsive design
- π Auto scroll and smooth UX
- Frontend: HTML5, CSS3, JavaScript
- AI Engine: Google Gemini API (v1beta)
- Image Handling: FileReader + Base64 encoding
- Communication: Fetch API for API calls
π¦ MANTRIX-Chatbot βββ index.html # Main chatbot interface βββ index1.html # Link page with references βββ script.js # Core chatbot logic βββ style.css # (Optional) Stylesheet βββ ai.png # AI avatar βββ user.png # User avatar βββ img.svg # Upload button icon βββ submit.svg # Submit button icon βββ loading.webp # Loading animation
- User types a message or uploads an image.
- JavaScript captures the input.
- If an image is uploaded, it is converted to Base64.
- Message and image (if any) are sent to Gemini API.
- The API returns a smart response, shown in the chat.
- Chat auto-scrolls to show the latest conversation.