This project is a simple chatbot application built with FastAPI. It uses the Google Generative AI model to generate responses. You can personalize the chatbot by adding your own data and configuring the API key.
- Simple design interface
- Customizable responses based on your data
- Integration with Google Generative AI
- Python 3.7+
- FastAPI
- Uvicorn
- Google Generative AI API key
-
Clone the repository:
git clone https://github.com/bugshadow/chat-bot.git cd chat-bot
-
Install the dependencies:
pip install -r requirements.txt
-
Configure your API key:
-
Create a
config.json
file in the root directory of the project and add your Google Generative AI API key:{ "api_key": "your_api_key_here" }
-
-
Personalize your chatbot:
-
Add your personalized data to the
data.json
file in the root directory of the project:{ "hello": "Hi there! How can I help you today?", "bye": "Goodbye! Have a nice day!" }
-
To run the project, use the following command:
uvicorn chatbot:app --reload