Created
January 20, 2017 21:24
-
-
Save KameronKales/b883f72aea1161c71d63ca86ca48a9ba to your computer and use it in GitHub Desktop.
basic layout to launch the alexa skill, ask to book a conference room & have it done for you in the background!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| from flask import Flask, render_template | |
| from flask_ask import Ask, statement, question, session | |
| app = Flask(__name__) | |
| ask = Ask(app, "/") | |
| logging.getLogger("flask_ask").setLevel(logging.DEBUG) | |
| @ask.launch | |
| def new_ask(): | |
| welcome = render_template('welcome') | |
| return question(welcome) | |
| @ask.intent("AnswerIntent") | |
| def answer(): | |
| scrape() | |
| reservation = render_template('reservation') | |
| return statement(reservation) | |
| if __name__ == '__main__': | |
| app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment