/aiml-chatbot

Chatbot based on AIML files and DarkSky weather API.

Primary LanguagePython

Chatbot ( Artificial Intelligence Assignment )

Group details
Afroz Ahamad : 2015A7PS0119H
Keval Morabia: 2015A7PS0143H
Nikhil Joshi : 2015A7PS0179H

Chat bot responding to five endpoints:
- index => welcome
- / => atomic patters
- weather
- computers
- eateries

Weather data collected from forecast.io

Secret key is inside the code itself.

Remove secret key before making repo public

Also added is a sample response from forecast.io inside templates/*.weather file. Use that to parse sensible data to be returned by the chat bot.

Requirements

Run the following to run the chatbot.
$ pip3 install -r requirements.txt

Running

$ python3 chatbot.py

This will spin up the flask server. Navigate to https://localhost:5000 to see the bot in action.

Development Mode

Make requests to the endpoints to get response.

https://localhost/respond/<query>

Making requests: Postman