alexa-skills-kit

Alexa skill SSML max length

你。 提交于 2019-12-10 12:37:06
问题 What is the maximum length, or limits of, the SSML attribute in an Amazon Echo Alexa skill JSON response? "outputSpeech": { "type": "SSML", "ssml": "<speak>This output speech uses SSML.</speak>" } 回答1: From the JSON interface reference: Response Format This section documents the format of the response that your service returns. The service for an Alexa skill must send its response in JSON format. Note the following size limitations for the response: The outputSpeech response cannot exceed

ASK CLI to deploy to different environments?

我是研究僧i 提交于 2019-12-10 09:36:40
问题 Is it possible to use Alexa Skill Kit's ASK CLI deploy command to build, for example, a debug version of the app that deploys a development environment and a release version of the app that deploys to a test environment? My team and I are trying to deploy the same skill to two different environments, so our testing team can do their thing in the test environments and development can do their thing in the development environment. This will be a private skill so using http://developer.amazon

Alexa Skills Kit (ASK) and Utterances

我们两清 提交于 2019-12-10 04:06:43
问题 I am developing a simple, custom skill for Alexa. I have it up and running, and hosting the handler on AWS Lambda. It's working fine except... In the test UI, if I enter a valid utterance, e.g., help, cancel, swim, run (two custom utterances), everything works well; however, if I enter a nonsense utterance, e.g., dsfhfdsjhf, the Alexa service always maps the nonsense to the first valid intent in the intents schema. In my lambda code, I have a handler for handling unknown intents; however, the

AWS Lambda HTTP POST Request (Node.js)

别来无恙 提交于 2019-12-09 06:22:41
问题 I'm relatively new to AWS lambda function and nodejs. I'm working on to try and get the list of 5 cities in a country by using HTTP POST request from this website: "http://www.webservicex.net/globalweather.asmx?op=GetCitiesByCountry" I've been searching about how to do a HTTP POST request in lambda function but I can't seem to find a good explanation for it. Searches that I found for http post: https://www.npmjs.com/package/http-post How to make an HTTP POST request in node.js? 回答1: Try the

My custom slot type is taking on unexpected values

落爺英雄遲暮 提交于 2019-12-08 21:59:40
问题 I noticed something strange when testing my interaction model with the Alexa skills kit. I defined a custom slot type, like so: CAR_MAKERS Mercedes | BMW | Volkswagen And my intent scheme was something like: { "intents": [ { "intent": "CountCarsIntent", "slots": [ { "name": "CarMaker", "type": "CAR_MAKERS" }, ... with sample utterances such as: CountCarsIntent Add {Amount} cars to {CarMaker} Now, when testing in the developer console, I noticed that I can write stuff like: "Add three cars to

Alexa Skill ARN - The remote endpoint could not be called, or the response it returned was invalid

╄→尐↘猪︶ㄣ 提交于 2019-12-08 19:18:40
问题 I've created a simple Lambda function to call a webpage, this works fine when I test it from the functions page however when trying to create a skill to call this function I end up with a "The remote endpoint could not be called, or the response it returned was invalid." error. Lambda Function var http = require('http'); exports.handler = function(event, context) { console.log('start request to ' + event.url) http.get(event.url, function(res) { console.log("Got response: " + res.statusCode);

How to implement a next intent in alexa

旧街凉风 提交于 2019-12-08 07:57:40
问题 How do you implement an 'AMAZON.NextIntent' in an alexa skill. suppose I have 3 audios(a1, a2, a3) enqueued and a1 is playing. If the user sends the request using 'nextIntent', what should be the response so that alexa plays a2? 回答1: Alexa SDK provides you ability to keep the state in session attributes. For Node.js it's this.attributes . You can read more about here in Skill State Management section. You can keep the current step in that attribute. Once your skill is started you can set the

How to create an event in google calendar from another Alexa Skill Kit?

为君一笑 提交于 2019-12-08 01:18:20
问题 I am building a Alexa Skill Set which returns list of events. I would like to my skill to book an appointment for selected events by the user. If the user says "Alexa book appointment for the last event", I want my skill to handle it and book an event in the linked calendar. How do I get access to the linked calendar within my skill? 回答1: For this, you need to get access to the user's calendar, which you can get via account linking. You can find more information by Amazon here: Link an Alexa

How to display hyperlinks in Echo Alexa cards

戏子无情 提交于 2019-12-07 16:21:33
问题 How do I display a hyperlink in an Echo Alexa card, i.e. the card that is displayed in the Alexa app after I talk to Echo? I understand its included in the response returned by the lambda function, but cannot find any documentation other than https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/providing-home-cards-for-the-amazon-alexa-app https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/handling-requests-sent-by-alexa neither of which discuss

Node JS callbacks with Alexa skill

夙愿已清 提交于 2019-12-07 15:27:48
问题 I have a module that includes a request call, which doesn't appear to be getting executed. var request = require('request'); var Alexa = require('alexa-sdk'); var APP_ID = <my alexa app ID>; var self = module.exports = { handler : function (event, context, callback) { var alexa = Alexa.handler(event, context); alexa.appId = APP_ID; alexa.registerHandlers(self); alexa.execute(); }, "TestIntent": function () { var speechOutput = "Recorded Test"; request("http://www.google.com", function(error,