alexa

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

Alexa Smarthome-Skill without AWS

心已入冬 提交于 2019-12-11 14:24:59
问题 Im a little confuse atm. Is it possible to build a Alexa Smarthome Skill without hosting it on AWS. For my last custom skill I used Alexa-App but this doesn't support the Smarthome-API from Amazon, as far as I know. Also I did not found any library that does support the Smarthome-API. Maybe you can Help me find a lib, so I can host my Smart home-Skill on my own Server. Pref language: JavaScript and Ruby 回答1: Is it possible to build a Alexa Smarthome Skill without hosting it on AWS. No, it is

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

How to get the accesstoken from alexa after account linking with azure AD

随声附和 提交于 2019-12-11 08:54:04
问题 I tried to connect my Alexa AWS Lambda function (node.js 6.10) with Azure Activ Directory to my Azure-Cloud-API. After reading the documentation from amazon and many tutorials I have now a working Account Linking. That means, I can link the Account of the Skill inside the Alexa-App on my smartphone. AccountLinking for my Custom Skill: {Data from my azure portal} Authorization Grant Type: Auth Code Grant Authorization URI: {OAUTH 2.0 AUTHORIZATION ENDPOINT} Access Token URI: {OAUTH 2.0 TOKEN

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

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"

Lex AMAZON.DATE issue

别等时光非礼了梦想. 提交于 2019-12-11 07:28:18
问题 I am using lex built-in slot AMAZON.DATE. the problem is when user types 'today' it interprets time as local time. I think it is N.Virginia time where lex is hosted. For example, when user types today (today is 1 Nov in Australia) but lex sends the value as 31/10. Is there a way we can set a different time zone in the lex ? 回答1: To set the time zone used to resolve dates so that it is relative to the user's time zone, use the x-amz-lex:time-zone request attribute. If you do not specify a time