alexa

Alexa skills kit, trouble getting session attributes to persist

那年仲夏 提交于 2019-12-25 08:17:08
问题 I have been working on a skill where I am using Login With Amazon account linking so I can grab the user email address and name to use in my skill. I am doing something similar to the scoreKeeper sample, using the eventHandlers.js and the storage.js for saving items to a database. In the eventHandlers.onLaunch I am successfully getting the profile name and email address from Amazon and I save it to the session.attributes like this: var profile = JSON.parse(body); speechOutput="Hello, " +

AWS Lambda not able to make REST call to external API

橙三吉。 提交于 2019-12-25 00:55:31
问题 I am using the nodeJS code to make a rest call using request module. I have also used callback function but the request function is not getting executed. My flow goes to function searchTSTData but the request method is not getting executed. From the callback function I am only getting responseString = 'Yet to make query rest' which I have initialized in searchTSTData function. It's not getting updated based on the response returned by API which should be either error or success response

How can I trigger Alexa intent with clicks rather than voice?

混江龙づ霸主 提交于 2019-12-24 10:37:48
问题 I am working on a flask app that links to Alexa skills. I am trying to building a capability when a user click on some content (e.g. notifications), Alexa asks if the user wish to proceed, if the user says 'yes', then Alexa takes the user to the relevant webpage. My question is, is it possible to trigger Alexa intent with clicks on the website content instead voice? My understanding that intent can only be activated through voice. Any thoughts will be much appreciated. 回答1: As you say the

How to make an asynchronous api call for Alexa Skill application with a Lambda function?

自闭症网瘾萝莉.ら 提交于 2019-12-24 08:00:07
问题 I want to call an api from a Lambda function. My handler is triggered by an intent which includes two required slots. Therefore I don't know in advance whether I will be returning a Dialog.Delegate directive or my response from the api request. How do I promise these return values by the time the intent handler is called? This is my handler: const FlightDelayIntentHandler = { canHandle(handlerInput) { return handlerInput.requestEnvelope.request.type === 'IntentRequest' && handlerInput

Streaming HTTP audio feed on Alexa

≯℡__Kan透↙ 提交于 2019-12-24 03:22:08
问题 Accordingly to https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/custom-audioplayer-interface-reference: The audio file must be hosted at an Internet-accessible HTTPS endpoint. HTTPS is required, and the domain hosting the files must present a valid, trusted SSL certificate. I want to build a skill to stream a feed from http (NOT https) endpoint. How do I do this? There are other skills (like TuneIn radio) which seem to stream http feeds. Unless they proxy them, which

Alexa - Implementing CanFulfillIntentRequest in python

醉酒当歌 提交于 2019-12-24 01:38:18
问题 I have enabled the CanFulfillIntentRequest from the alexa skill developer console in English(U.S) of my skill. I have added a handler in my lambda for the CanFulfillIntentRequest. When I use the skill tester and type the intent utterance directly (without skill invocation name), it doesn't seem to hit my code. I can't find any related logs in the cloudwatch. def lambda_handler(event, context): print("event.session.application.applicationId=" + event['session']['application']['applicationId'])

How to add slot values dynamically to alexa skill

旧城冷巷雨未停 提交于 2019-12-24 00:54:49
问题 I am new in Alexa development. I have successfully create an Alexa skill with AWS lambda function and Node.js code. This is my intent schema. { "intents": [ { "slots": [ { "name": "locationName", "type": "LOCATION_LIST" } ], "intent": "locationIntent" } ] } Also I have used custom slot type "LOCATION_LIST" with following values. kitchen bedroom bathroom dining area It's working fine. But I need to add more location values dynamically from my own service. Is it possible? Based on my system

Calling Another Alexa intent from within LaunchRequest

烈酒焚心 提交于 2019-12-23 19:28:28
问题 I am working on an Alexa skill where I would like to redirect user to one intent when he opens the skill via LaunchRequest. User says Open xyz skill LaunchRequest receives this and forwards the request to another intent. this.emit('AnotherIntent') AnotherIntent has a SLOT which is required for its functioning. I have setup the SLOT as required and AnotherIntent does work perfectly fine when invoked on its own. However when I Launch the skill and tries to call AnotherIntent from within it as

How to Integrate SEOStats with Codeigniter?

时光怂恿深爱的人放手 提交于 2019-12-23 19:08:31
问题 Hello I want to integrate the SEOStats Class with a project in codeigniter , is anyone provide me solution ? I have tried to make the SEOstats class as a helper and load the helper in the specific controler , but a blank page is showing , I also try to include it via view but the same blank page i am seeing , I have included this code in my view file , the SEOstats directory also in the same views directory . <?php require_once 'SEOstats/bootstrap.php'; use \SEOstats\Services as SEOstats; try

Amazon AWS Lambda Alexa HTTP Get issue

戏子无情 提交于 2019-12-23 18:29:06
问题 I keep getting an issue with the following code with Amazon Lambda and the alexa skills kit. I have spent countless hours on this and cannot get it to work. I keep getting this message returned and can't figure out why the http get is failing. "Please try again later". It isn't even printing the console messages. var Alexa = require('alexa-sdk'); var http = require('http'); var APP_ID = "omitted"; var SKILL_NAME = 'omitted'; var options = { host: 'api.forismatic.com', path: '/api/1.0/?method