Let us now try some code! We are now going to build a module in Java that can access the weather data from our data source in real time. We will then plug this module into the chatbot for the conversation manager to use:
- Open Eclipse.
- Create a new Maven project.
- Choose Create a simple project.
- Provide the location of the project and hit Next.
- On the next page, type Group Id, Artifact Id, Name, and Description. Click Finish.
We now have a blank Maven project ready. Before we move on to developing the backend code, let's add a few dependency packages to our project. Find the POM file (pom.xml) and add the following Maven dependencies:
<dependencies> <!--https://mvnrepository.com/artifact/com.google.code.gson/gson--> ...