This is a simple chatbot that is used for providing directions and transportation information in Ljubljana, Slovenia, based on the current weather conditions. The chatbot uses Dialogflow for natural language processing and understanding, and it is built using the Flask web framework. The data for the weather conditions is stored in a MongoDB Atlas database, and the chatbot uses the PyMongo library to interact with the database.
Json
Flask
Pymongo
Certifi
To set up the chatbot, you will need to:
- Clone the repository
- Install the required libraries (Json, Flask, PyMongo, Certifi)
- Set up a Dialogflow agent and import the settings from the Dialogflow agent directory.
- import the Dialogflow agent settings from dialogflow agent directori
- Copy the username and password from MongoDB Atlas and paste them into the config.json file.
- Start ngrok by typing "ngork http 5000" in the terminal.
- Copy the https url provided by ngrok and paste it into the Dialogflow Fulfillment tab, adding "/webhook" at the end.
- Start the FlaskServer.py script to run the chatbot.
It is important to note that you will need to have the appropriate dependencies installed on your computer and have a Dialogflow account to set up the agent and access the settings. Also, it is important to follow the instructions provided in the repository, as well as the instructions provided in the libraries' documentation to ensure the successful execution of the script and proper communication with the Dialogflow agent and MongoDB Atlas.