alexa-skills-kit

Get location/address of Amazon Echo device

痞子三分冷 提交于 2019-12-11 07:39:31
问题 I am making an Alexa skill which needs to send the location of the Echo being used to an API within my Lambda function. https://www.amazon.com/gp/help/customer/display.html?nodeId=201601980 says we can access many details about the Echo, such as Device Location, but in my skill, I don't see this is available in the session: exports.handler = function (event, context) { try { console.log("event.session: " + event.session); How can I get this data? The point is, while we have the address of the

Amazon Echo Lambda function. Where are console printed?

回眸只為那壹抹淺笑 提交于 2019-12-11 07:34:55
问题 Where would I need to go if I had a console.log("some stuff in here") inside my function to see it printed out for my Lambda function that AWS service provides? 回答1: You go to AWS CloudWatch > Log Groups > Streams for /aws/lambda/. For me the URL is https://console.aws.amazon.com/cloudwatch/home?region=#logStream:group=;streamFilter=typeLogStreamPrefix But easiest thing is probably just go to CloudWatch and look around. 来源: https://stackoverflow.com/questions/39626463/amazon-echo-lambda

Multiple intents sharing the same slot value

自古美人都是妖i 提交于 2019-12-11 07:06:56
问题 I'm writing an Alexa skill that captures a ticket number from one intent and captures age from different intent. and Basically, these two are of type number. When I'm trying to enter a number, it is being captured in the first Intent's slot. Here is my intent schema. { "intents": [ { "slots": [ { "name": "TicketNumber", "type": "AMAZON.NUMBER" } ], "intent": "CheckStatusIntent" }, { "slots": [ { "name": "ageAndCurrency", "type": "AMAZON.NUMBER" } ], "intent": "ClientSuggestIntent" } ] } and

Invoke Alexa device from lambda function

淺唱寂寞╮ 提交于 2019-12-11 06:29:48
问题 I am new in Alexa development. I have successfully create an Alexa skill with AWS lambda function and Node.js code. It's working fine with my Alexa echo plus device. e.g : Alexa, open "mySampleApp" Now, I need to invoke Alexa device to make it speak via from another lambda function. Is it possible? e.g: I just execute my lambda function. I need to make speech output via my Alexa echo plus device. 回答1: Sounds like you want to trigger a notification (make speech output) from outside of your

Adding Wait Message in my Amazon ALexa skill

一笑奈何 提交于 2019-12-11 03:19:33
问题 I am developing an Alexa service which connects to an external service. In order to get the response, it takes around 9-10 seconds. Is there a way to add a message in Alexa while Lambda function is processing the request. Something like - "hang on a second. I am retrieving the results" 回答1: You could get Alexa to say that, but then the user would have to say something to your skill for control to return to you. The only way I can think of to do what you want is to use the audio player to

Amazon Alexa dynamic variables for intent

杀马特。学长 韩版系。学妹 提交于 2019-12-11 02:14:34
问题 I am trying to build an Alexa Skills Kit, where a user can invoke an intent by saying something like GetFriendLocation where is {Friend} and for Alexa to recognize the variable friend I have to define all the possible values in LIST_OF_Friends file. But what if I do not know all the values for Friend and still would like to make a best match for ones present in some service that my app has access to. 回答1: Supposedly if you stick a small dictionary into a slot (you can put up to 50,000 samples

“MalformedResponse: Failed to parse Dialogflow response into AppResponse because of empty speech response” during OAuth Account Linking flow

自作多情 提交于 2019-12-11 00:05:47
问题 We are implementing Actions on Google with Dialogflow fulfillment using the newly released Java/Kotlin API. It's called Speech Bank . While going through the Account Linking process testing on the smartphone, the user is getting MalformedResponse error preventing the completion of the flow and consequent successful hand-off back to the regular flow. The logs (detailed below) contain the MalformedResponse: Failed to parse Dialogflow response into AppResponse because of empty speech response

alexa skill user input for spelling out letters

半腔热情 提交于 2019-12-10 20:39:14
问题 I'd like Alexa to be able to accept a variable-length list of English letters to my custom skill. It will allow users to search based on a string. There's two steps to this: Getting good representation for individual letters that Alexa can understand Enumerating sample utterances with variable number of letters For the first, one way would be to define a custom slot that has as its enumerated values of the English alphabet: SLOT_LETTER ay bee see dee ee eff gee ... etc but that feels hacky.

How can I use axios in lambda?

岁酱吖の 提交于 2019-12-10 19:16:02
问题 Do I have to install the axios module locally and then deploy it to lambda or is there a way to do it through the inline code editor as well in the browser? 回答1: Lambda doesn't actually bundle your package dependencies for you, except the AWS package, so yes you'd need to install it locally, zip it together and upload to the Lambda console. 回答2: In the folder where your lambda script is present (index.js) run following command - npm install axios You should see node_modules directory getting

“Catch-all” for Alexa Skills Kit input not in defined intent

烂漫一生 提交于 2019-12-10 17:14:36
问题 I am building an Alexa app that needs to be able to process answers to a question. I have an SkipIntent intent that has sample utterances to skip a question. I want to build an AnswerIntent that can take answers that can be anything and process them against the correct answer. I tried using an Amazon.LITERAL type for this with a few samples as such (from this question: How to accept the Free form text as input to Amazon Skill Kit?): AnswerIntent {bottle|Answer} AnswerIntent is it {bottle