alexa-skills-kit

update Interaction Model without resubmission

让人想犯罪 __ 提交于 2019-12-12 12:47:49
问题 My intention is my users can insert some intent to my alexa skill using my applications. So I need to change the intent schema and sample utterance of my alexa skill dynamically. Is there any way to update intent schema and sample utterances without resubmisson and without using amazon developer portal. Thanks 回答1: No, there is no way to update the configuration of a skill programmatically or dynamically. There is a popular feature request in for this though:. https://forums.developer.amazon

HTTP request with Alexa and Lambda on SDK v2, how to make it works?

℡╲_俬逩灬. 提交于 2019-12-12 08:09:45
问题 I am playing with ASK SDK v2 provided by Amazon in order to make Skill for Alexa but I face an architectural problem : First of all, the HTTP request works like a charm but I would like to return speach response if and only if my HTTP request is complete but I don't even know if it's possible because of the "handle" function that should return something (look at comments) : const MyIntentHandler = { canHandle(handlerInput) { const request = handlerInput.requestEnvelope.request; return request

“errorMessage”: “event is not defined” in lambda function

廉价感情. 提交于 2019-12-12 02:27:42
问题 I am creating my first Alexa skill which fetches data from dynamodb table. I am naive in node.js and alexa both. I was successfully able to create a sample Space geek skill set , and then when I created my own skill set I used the same package( to make sure the libraries, response files remain the same) but only changed the index.js ( which is my lambda funnction). When I am testing this function on lambda console , I am getting the below error: { "errorMessage": "event is not defined",

Utterances to test lambda function not working (but lambda function itself executes)

自闭症网瘾萝莉.ら 提交于 2019-12-12 01:51:02
问题 I have a lambda function that executes successfully with an intent called GetEvent that returns a specific string. I've created one utterance for this intent for testing purposes (one that is simple and doesn't require any of the optional slots for invoking the skill), but when using the service simulator to test the lambda function with this utterance for GetEvent I'm met with a lambda response that says "The response is invalid" . Here is what the interaction model looks like: #Intent

how to design mobile card in alexa

╄→尐↘猪︶ㄣ 提交于 2019-12-11 17:14:46
问题 I have developed an app and it is functioning properly, however when it comes to designing, i am unable to achieve what is given in the example despite of doing the same code in the example. I want to achieve this design where image is in the center with title above and description down but what I am getting is this, side image, side title and description down. Please let me know how to achieve that. Here is my sample of my code "response" : { "outputSpeech" : { "type" : "SSML", "ssml" : "

Alexa Custom Skill DynamoDB.Node.js ResponseBuilder Not waiting for Async Call to complete

冷暖自知 提交于 2019-12-11 16:57:14
问题 I am new to Node.js and Javascript and am developing an Alexa application using Lambda function and DynamoDB. I have a table in DynamoDB named: Chat with PrimaryKey: 'Said' and a column 'say'. Whenever the Alexa skills is launched I just want to fetch a record based on what is said by the user and return. So its basically a single Query on the primary key which works fine. However, I dont get any response from the lambda function in speech output variable as the API doesn't wait for the

Trigger Alexa Skill From AWS Lambda

寵の児 提交于 2019-12-11 15:59:26
问题 I have gone through some of the documentation of AWS Lambda, I see we can attach a trigger(Alexa Skill Kit) to lambda function and lambda function will be triggered once the skill gets invoked. (Someone Calls Alexa and Lambda gets triggered) But i want vice-versa of this, like I should be able to invoke a skill set from AWS Lambda function, like i write a AWS lambda function and should be able to make a call to invoke that Alexa skill which i have published. (Lambda gets triggered from my

Alexa skill, custom slot - date and time

谁都会走 提交于 2019-12-11 15:45:57
问题 I've created a skill and i want to be able to call upon a machine state at a certain date and time from my dynamo db table. my first column is date and my sort key is time. Would i need to create a custom slot for date with all 365 daysof the year or is there a quicker way to do this? Also would i need to create a custom slot for every minute of the day. Code: var AWSregion = 'us-east-1'; // us-east-1 var AWS = require('aws-sdk'); var dbClient = new AWS.DynamoDB.DocumentClient(); AWS.config

ASK CLI INIT not working

旧巷老猫 提交于 2019-12-11 14:12:49
问题 I am new to ask cli but I have created skills directly on alexa online console and using lamda. I installed ask cli using npm install from my Node.js command prompt. I then tried to initialize it using ask init . ask cli asks me to select a default profile and then opens up Amazon login page. I then sign in but after that it opens up 127.0.... page on my IE which gives "cannot reach this page" error. Also in the cmd prompt it shows as listening to localhost:9090 but it stucks there and

adding alexa skill session attributes from nodejs

大城市里の小女人 提交于 2019-12-11 08:37:12
问题 using session attributes in alexa skill in nodejs code But getting output undefined. Undefined should be a fashion. . Please refer to images for the code 'expenseIntent': function () { var updatedIntent=this.event.request.intent; var category1 = this.event.request.intent.slots.category.value; var expense; if(category1=='fashion'){ expense = '1000'; }else if(category1=='travel'){ expense = '2000'; }else if(category1=='food'){ expense = '3000'; }else { expense = '4000'; } this.attributes