This project demonstrates the implementation of a simple weather chatbot using the Autogen library. It showcases how to create an AI agent capable of providing weather information through natural language interactions.
- Weather information retrieval using OpenWeather API
- Natural language processing for user queries using OpenAI's
gpt-4o-mini
-
Clone this repository:
git clone https://github.com/photon-collider/autogen-weather-chatbot-example.git cd autogen-weather-chatbot-example -
Create a Python virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` -
Install the required dependencies:
pip install -r requirements.txt
-
Obtain API keys:
-
Add your API keys to the notebook:
- Open the main notebook file
- Locate the sections for API key configuration
- Replace the placeholder values with your actual API keys
-
Activate your virtual environment (if not already activated):
source venv/bin/activate # On Windows, use `venv\Scripts\activate` -
Launch the Jupyter notebook:
jupyter notebook -
Open the main notebook file and follow the instructions within to run the weather chatbot.
Contributions to improve this example project are welcome. Please follow these steps to contribute:
- Fork the repository
- Create a new branch for your feature or bug fix
- Push your changes to your fork
- Create a pull request to the main repository
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or feedback, please open an issue on the GitHub repository.