This is an AI-powered chatbot that can be integrated into any website to provide intelligent responses to user queries about the website.
- Real-time chat interface
- Powered by OpenAI's GPT-3.5
- Customizable website context
- Modern and responsive UI
- Easy to integrate
-
Clone this repository
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the root directory and add your OpenAI API key:OPENAI_API_KEY=your_api_key_here
-
Start the backend server:
cd Backend python main.py
-
Open the
Frontend/index.html
file in a web browser or serve it using a web server.
- To customize the website context, modify the
websiteContext
variable inFrontend/index.html
- To change the appearance, modify the CSS in the
<style>
section ofFrontend/index.html
- To adjust the AI model parameters, modify the settings in
Backend/main.py
- In production, update the CORS settings in
Backend/main.py
to only allow requests from your website domain - Keep your OpenAI API key secure and never expose it in the frontend code
- Consider implementing rate limiting and user authentication for production use
MIT License