Skip to content

Instantly share code, notes, and snippets.

@KameronKales
Created January 20, 2017 21:24
Show Gist options
  • Select an option

  • Save KameronKales/b883f72aea1161c71d63ca86ca48a9ba to your computer and use it in GitHub Desktop.

Select an option

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!
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