My Work.
As in my first semester of Bsc Computer Science at Coventry University, our professor assigned us a group project of mBot Ranger but unfortunately i arrived late in university so i was not handed that project and our second project was named ChatBot, so basically we were assigned to make a group ChatBot using python.A ChatBot is a software application that performs automated task and ChatBots come under the category of bots that live in various chat platforms. A ChatBot can converse with humans so the idea of conversation is primary to a ChatBot. The purpose of ChatBots is to scale business teams and help them in maintaining a cordial relationship with their customers. This helps businesses cut down on operational costs, save time and ensure lucrative productivity as all the basic and monotonous requests are handled by the ChatBot while complex queries are taken care of by the support team as usual.
So in first week we have to decide two ideas for ChatBot so we decided presented two ideas of Train ChatBot and University Module information ChatBot we displayed list of features (Must-have , Should-have , nice-to-have) and defined explaination of all the variables and functions(including input and output) that we'll be needed. So after that our group L3 decided to make a ChatBot on University Module information and we all worked together for first prototype presentation and came up with our ChatBot called Student timetable. It was simple which was only having the if/else statements and Input() and was running on the command line with python built in functions and other basic stuff. That only showed the Lecture time and date after running, after having some greetings with the user. Then we distributed our ChatBot Functions, i selected Location ChatBot for Coventry University having a main function to tell location of university buildings which will be very helpful for lost or new students of university. I searched on google and found There were 22 buildings of Coventry University and each building has its own history and work to do. So basically my aim was to question building name to the user then give the right direction to user so i just came up with a ChatBot, after greeting which will give you the university Building List and by selecting any building from that list it will show you the right Direction/path and postal code of that building.The code was kinda lengthy, i added all those building name including their right direction and their postal code and then i presented this in next week and basically this code was able to tell the student the right direction of the desired department of the University. I used if/elif/else statements, import random and import time and many more like function in functions using input(press enter to exit) , response time delay [[time.sleep()]]. And the ChatBot was working on the command line i used the input function so that the program questions the user and then after input by the user, program show the list of building and right direction and postal code of the desired building and after that the program asks for further questions by user and after press enter to exit.
Next week i decided to look for API(application programming interface), basically api is a set of programming instructions and standards for accessing a Web-based software application or Web tool. A software company releases its API to the public so that other software developers can design products that are powered by its service. so i searched for Maps based API's and looked for google maps, tomtom API's and some of them were charging me for their API key so after search i got Here maps api but their documentation was kinda tough and i was not receiving the proper address of my required building so i searched more map based websites and finally found LoationIQ [["https://locationiq.com/"]] they were not charging for my basic use so i requested for a api key and read all the documentation on their website from [["https://locationiq.com/docs#forward-geocoding"]] i was able to run my api and was receiving json as output but so i took some help from my friend Harshkumar Panchal my class mate about API and came up with my API (University module information) ChatBot. I learned how to use API's and know acquired knowledge about documentation and maping etc. For my finnal ChatBot i've combined me both codes together which will help the user a lot if the user wants university list it will just give the list then the direction by using input, import , if/elif/else statements and some other functions and if user wants to input the building or any other location so it will use API from the LocationIQ and my chatBot will tell the address and postal code of the given location it can also tell the user location almost everywhere from the world and give address and postal code of that location. So by this project i learned a lot how to use input(),statements everything mentioned above and in future i can make this ChatBot more efficient by adding geocoding, and routing so that it takes 2 location name and tell the user the routing distance and minimum time according to live rush hour and traffic routine.
So in first week we have to decide two ideas for ChatBot so we decided presented two ideas of Train ChatBot and University Module information ChatBot we displayed list of features (Must-have , Should-have , nice-to-have) and defined explaination of all the variables and functions(including input and output) that we'll be needed. So after that our group L3 decided to make a ChatBot on University Module information and we all worked together for first prototype presentation and came up with our ChatBot called Student timetable. It was simple which was only having the if/else statements and Input() and was running on the command line with python built in functions and other basic stuff. That only showed the Lecture time and date after running, after having some greetings with the user. Then we distributed our ChatBot Functions, i selected Location ChatBot for Coventry University having a main function to tell location of university buildings which will be very helpful for lost or new students of university. I searched on google and found There were 22 buildings of Coventry University and each building has its own history and work to do. So basically my aim was to question building name to the user then give the right direction to user so i just came up with a ChatBot, after greeting which will give you the university Building List and by selecting any building from that list it will show you the right Direction/path and postal code of that building.The code was kinda lengthy, i added all those building name including their right direction and their postal code and then i presented this in next week and basically this code was able to tell the student the right direction of the desired department of the University. I used if/elif/else statements, import random and import time and many more like function in functions using input(press enter to exit) , response time delay [[time.sleep()]]. And the ChatBot was working on the command line i used the input function so that the program questions the user and then after input by the user, program show the list of building and right direction and postal code of the desired building and after that the program asks for further questions by user and after press enter to exit.
Next week i decided to look for API(application programming interface), basically api is a set of programming instructions and standards for accessing a Web-based software application or Web tool. A software company releases its API to the public so that other software developers can design products that are powered by its service. so i searched for Maps based API's and looked for google maps, tomtom API's and some of them were charging me for their API key so after search i got Here maps api but their documentation was kinda tough and i was not receiving the proper address of my required building so i searched more map based websites and finally found LoationIQ [["https://locationiq.com/"]] they were not charging for my basic use so i requested for a api key and read all the documentation on their website from [["https://locationiq.com/docs#forward-geocoding"]] i was able to run my api and was receiving json as output but so i took some help from my friend Harshkumar Panchal my class mate about API and came up with my API (University module information) ChatBot. I learned how to use API's and know acquired knowledge about documentation and maping etc. For my finnal ChatBot i've combined me both codes together which will help the user a lot if the user wants university list it will just give the list then the direction by using input, import , if/elif/else statements and some other functions and if user wants to input the building or any other location so it will use API from the LocationIQ and my chatBot will tell the address and postal code of the given location it can also tell the user location almost everywhere from the world and give address and postal code of that location. So by this project i learned a lot how to use input(),statements everything mentioned above and in future i can make this ChatBot more efficient by adding geocoding, and routing so that it takes 2 location name and tell the user the routing distance and minimum time according to live rush hour and traffic routine.