AI Chat Bot
A simple desktop AI chatbot interface built with Electron, HTML, and JavaScript.
Features
- Clean and modern chat UI
- Sends user messages to an AI API and displays responses
- Responsive and easy-to-use desktop app powered by Electron
Installation
-
Clone or download the repository
git clone <repository-url>
cd <repository-folder>
-
Install dependencies
npm install
Usage
Start the Electron app by running:
npm start
This will launch the desktop window where you can interact with the AI chatbot.
Project Structure
index.html
: Main HTML file with chat UI and JavaScript logicstyle.css
: Stylesheet for layout and appearancemain.js
: Electron main process scriptpackage.json
: Project metadata, scripts, and dependenciespreload.js
: Optional preload script for secure API exposurerobo.png
: Icon image used in the interface
Configuration
- Uses a third-party AI API to generate responses
- API key is stored in
index.html
as theAPI_KEY
constant - To use your own key or backend, update
API_KEY
and the API URL - Ensure your key has proper permissions and quota
Development
- Built with Electron for desktop experience
- Customize UI via
index.html
andstyle.css
- JavaScript logic is embedded in
index.html
Troubleshooting
- Ensure Node.js and npm are installed
- Verify your API key and endpoint
- Check the console for errors and debug as needed
License
This project is open source under the MIT License.
Let me know if you'd like to add badges, screenshots, or links to documentation!