alexa-skill

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

前提是你 提交于 2019-11-29 16:11:46
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'); var APP_ID = "amzn1.ask.skill.XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX"; exports.handler = function(event,

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

眉间皱痕 提交于 2019-11-28 14:49:07
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, Amazon Alexa service accesses my "Authorization URI" and asks for the "code". I send the "code" to it's

Amazon Alexa: store user's words

做~自己de王妃 提交于 2019-11-28 07:30:05
I'm new to writing Alexa skills and want to write a skill to store the speaker's words. For example, if I say, 'Alexa, save {whatever i say}', it should save the words in some string. Now from what I understand, the intent schema something should be like { intents:[ "intent" : "SaveIntent" ] } and utterances like SaveIntent save SaveIntent store In this case, how do I store '{whatever I say}'? To capture free-form speech input (rather than a defined list of possible values), you'll need to use the AMAZON.LITERAL slot type. The Amazon documentation for the Literal slot type describes a use case

Get unique device id for every amazon echo devices

人盡茶涼 提交于 2019-11-27 19:30:01
问题 I need to make a Custom Skill for the Alexa Skills Kit, which should be one echo device in every room. I need to get the device_id for every echo device. I heard this isn't possible, but maybe it changed, or if not is there any other way around. 回答1: You can do it now! context:System:device:deviceId As far as I can tell it only works on real devices. So if you are testing in the developer's Skills Manager you don't get the field, but when used with a real Alexa device, it works. 回答2: This is

Amazon Alexa: store user's words

孤街浪徒 提交于 2019-11-27 05:44:40
问题 I'm new to writing Alexa skills and want to write a skill to store the speaker's words. For example, if I say, 'Alexa, save {whatever i say}', it should save the words in some string. Now from what I understand, the intent schema something should be like { intents:[ "intent" : "SaveIntent" ] } and utterances like SaveIntent save SaveIntent store In this case, how do I store '{whatever I say}'? 回答1: To capture free-form speech input (rather than a defined list of possible values), you'll need