alexa-skill

Node.js Lambda function returns “The response is invalid” back to Alexa Service Simulator from REST call

て烟熏妆下的殇ゞ 提交于 2019-12-18 09:14:03
问题 Having issues making a REST call to an API between a node.js Lambda function and Alexa. I'm using the request library to make the calls with an account linked skill. I've only set one sample utterance for the intent, and the simulator see this fine. Also, the cloudwatch logs show a 200 response code from the api endpoint and any of the returned data from the API from console.logs to CW. 'use strict'; var http = require('http'); var request = require('request'); var Alexa = require('alexa-sdk'

Amazon Alexa skill: We were unable to link xxxx at this time. And with 401 Unauthorized

岁酱吖の 提交于 2019-12-17 21:22:45
问题 Amazon Alexa skill: We were unable to link xxxx at this time. And with 401 Unauthorized. =================================================================== Skill model: CUSTOM Skill STATUS: In Development Account Linking: Auth Code Grant Client Authentication Scheme: "HTTP Basic" (Credentials in request body is the same error) Default Access Token Expiration Time: 360 1,Use Browser on Microsoft Windows open https://alexa.amazon.com/spa/index.html In "DEV SKILLS", Enable my CUSTOM skill,

How to use Dialog Directives with Alexa's java SDK

牧云@^-^@ 提交于 2019-12-13 16:08:27
问题 I'm trying to create my own Alexa's skill with the java skill kit, and I would like to use the Dialog Interface. I have created my Dialog model with the skill builder in beta, but now I don't understand what I need to return via my webservice in order to delegate my dialog. Which class should I use to send Alexa a command to handle the next turn in the dialog ? Moreover, I don't have the dialogState property in the IntentRequest class... 回答1: First of all the dialogState property is in the

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

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

“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",

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

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

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