flask-ask icon indicating copy to clipboard operation
flask-ask copied to clipboard

Expose confirmationStatus of intent in session

Open Pradhyo opened this issue 6 years ago • 0 comments

To close #185

@ask.intent('HelloIntent')
def hello():
    if session["dialogState"] != "COMPLETED":
        return delegate()
    if session["confirmationStatus"] == "DENIED":
        return statement("Bye")
    return statement("Hello")

Pradhyo avatar Sep 07 '17 21:09 Pradhyo