flask-ask

How can I trigger Alexa intent with clicks rather than voice?

混江龙づ霸主 提交于 2019-12-24 10:37:48
问题 I am working on a flask app that links to Alexa skills. I am trying to building a capability when a user click on some content (e.g. notifications), Alexa asks if the user wish to proceed, if the user says 'yes', then Alexa takes the user to the relevant webpage. My question is, is it possible to trigger Alexa intent with clicks on the website content instead voice? My understanding that intent can only be activated through voice. Any thoughts will be much appreciated. 回答1: As you say the

Alexa Flask Ask Yes / No response handling

筅森魡賤 提交于 2019-12-12 08:14:37
问题 I am trying to create a simple Alexa skill using Flask Ask in python. I have an intent called "SearchIntent" with a "searchterm" slot and the python code looks something like this: @ask.intent("SearchIntent") def SearchIntent(searchterm): resList = [] searchterm = searchterm.lower() for item in somelist: if item.find(searchterm) != -1: resList.append(item) return question("I Found " + str(len(resList)) + ", Do you want me to list them all?") I want to check if the response from the user, if

Amazon Alexa Proactive Events request in Python flask-ask

喜夏-厌秋 提交于 2019-12-11 08:36:34
问题 I am trying to make a request to the Proactive Events API by using the requests module of Python. However I always receive a response that the scope is invalid. Can anyone help? What am I doing wrong? My code looks like this: @ask.launch def launch(): content_type = "application/x-www-form-urlencoded;charset=utf-8" client_id = "amzn1.application-oa2-client.6a48XXXXXXX408" client_secret = "592XXXXxxxxxxx6" scope = "alexa::proactive_events" grant_type = "client_credentials" data = {"grant_type"

Alexa Flask Ask Yes / No response handling

。_饼干妹妹 提交于 2019-12-03 16:33:08
I am trying to create a simple Alexa skill using Flask Ask in python. I have an intent called "SearchIntent" with a "searchterm" slot and the python code looks something like this: @ask.intent("SearchIntent") def SearchIntent(searchterm): resList = [] searchterm = searchterm.lower() for item in somelist: if item.find(searchterm) != -1: resList.append(item) return question("I Found " + str(len(resList)) + ", Do you want me to list them all?") I want to check if the response from the user, if he says "Yes" than read all the results: return statement('\n'.join(resList)) and if the user says no,

Unable to install flask-ask

大憨熊 提交于 2019-12-02 16:21:47
问题 I am trying to install flask-ask using pip(3). Getting the following error from pip.req import parse_requirements ImportError: cannot import name 'parse_requirements' I cloned the source code to my machine and tried 'python setup.py install' but getting the same error. Seems there's some compatibility issue with pip but not able to put my finger on it Any pointers - kindly help 回答1: I tried to install flask-ask on my machine using pip 10.0.0 and I got the same errors as yours. This is what I

Unable to install flask-ask

浪子不回头ぞ 提交于 2019-12-02 11:03:15
I am trying to install flask-ask using pip(3). Getting the following error from pip.req import parse_requirements ImportError: cannot import name 'parse_requirements' I cloned the source code to my machine and tried 'python setup.py install' but getting the same error. Seems there's some compatibility issue with pip but not able to put my finger on it Any pointers - kindly help I tried to install flask-ask on my machine using pip 10.0.0 and I got the same errors as yours. This is what I did to overcome the problem, just downgrade your pip version to 9.0.3 and you'll get the module without an