Description This is a very simple chatbot that uses ChatGPT's Tools API to call a weather function. The purpose of this simple project was to understand how agents work in ChatGPT.
This project requires the following accounts and API keys:
-
Install all node dependencies
npm install
-
Create
.env
file in the root of the project and add the following API keys. Note: no quotes or spaces needed.WEATHER_API_KEY=XXXXXXXX OPEN_API_KEY=XXXXXXX
-
To run use the following command:
node weather_chatbot.mjs