from flask import Flask
from flask_ask import Ask, statement,question


app =  Flask(__name__)
ask =  Ask(app, "/")

 

@ask.launch
def welcome():
    return question("Thats a Home Automation System")


@ask.intent("HomeAutomationIntent")
def home_Automation():
     response = "Welcome to the smart home"
     return question(response)

@ask.session_ended
def session_ended():
    return "{}", 200

  



if __name__ == "__main__":
    app.run(debug=True, port=80)