alexa-skills-kit

How can I access a local API using Amazon Alexa

时间秒杀一切 提交于 2019-12-20 14:43:12
问题 I intend to build a set of skills for Amazon Alexa that will integrate with a custom software suite that runs on a RaspberryPi in my home. I am struggling to figure out how I can make the Echo / Dot itself make an API call to the raspberry pi directly - without going through the internet, as the target device will have nothing more then an intranet connection - it will be able to receive commands from devices on the local network, but is not accessible via the world. From what I have read,

Alexa Skill AudioPlayer: Console test Support poor support/bugs

空扰寡人 提交于 2019-12-20 02:52:05
问题 I'm developing a skill to play my own music. I have troubles with AudioPlayer with the developer console test environment ( https://developer.amazon.com/alexa/console/ask/test/ ). Two questions: 1. AudioPlayer Built-in Intents doesn't run as expected (test simulator bug?) Alexa, play mymusicsSkill playing Wanderer track 1: Antelao Adrift Alexa, next What would you like to play next? Ask mymusicSkill next intent: next See also screenshot: BTW, my code: 'AMAZON.NextIntent': function () { this

Account Linking Alexa with Twitter - Amazon Echo

情到浓时终转凉″ 提交于 2019-12-19 11:04:35
问题 As of now I cannot seem to get my Alexa skill linked with twitter. Currently, I have a node/express server running on EBS which, I am using passport-twitter to handle the oauth part of the authentication. Right now my flow is such: Enable skill in Alexa app Click 'sign in to account' in alexa app Twitter Login screen is displayed and I enter user name and password then click Login button get redirected to Amazon provided url for callback once authenticated and get an 'Unable to link you skill

Account Linking Alexa with Twitter - Amazon Echo

烂漫一生 提交于 2019-12-19 11:04:06
问题 As of now I cannot seem to get my Alexa skill linked with twitter. Currently, I have a node/express server running on EBS which, I am using passport-twitter to handle the oauth part of the authentication. Right now my flow is such: Enable skill in Alexa app Click 'sign in to account' in alexa app Twitter Login screen is displayed and I enter user name and password then click Login button get redirected to Amazon provided url for callback once authenticated and get an 'Unable to link you skill

How do I get a user's date/time or timezone information for an Alexa Skill?

孤街浪徒 提交于 2019-12-19 09:09:56
问题 I'm using Lambda (Python) to develop a skill and I'm interested in giving the user some time-related information. On the request object there is a timestamp but that is UTC without offset. Is there a way to find the user's date/time or timezone without having to ask for location information (and if that's the only way, do you know of a database of US zip codes to timezone or another workaround?). 回答1: It is now possible to get the user's timezone using the Alexa Settings API. See the related

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,

Get location from Alexa Skills Kit (ASK)

末鹿安然 提交于 2019-12-17 18:37:03
问题 I'm looking for a way to get the user's location, ideally longitude/latitude but address would work too, from the Alexa Skill Kit request to my custom skill. Also, I don't want to have to have the user link to an account on my app's side. Is this possible? If so, how? 回答1: As per this thread on the Amazon Developer forums, there is not currently (as of May 2016) a way to get user location via the publicly available APIs. The only skills able to do so, such as Uber or Domino's, are utilizing

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

Need help fixing Alexa Skill

≯℡__Kan透↙ 提交于 2019-12-13 10:02:39
问题 I am getting an error in js.do that reads ReferenceError: Can't find variable:exports on line 22 Line 22 reads exports.handler = function (event, context) { When I test it in the service simulator on developer.amazon, it responds the remote endpoint could not be called, or the response it returned was invalid What does this mean, and what can I do to fix it? 回答1: I have also come into this issue when creating Alexa Skills previously. I have found that after I enter the utterance on the text