alexa-skills-kit

node.js cannot read property of “New”

帅比萌擦擦* 提交于 2019-12-25 09:27:06
问题 I'm trying to resolve an issue with my Alexa Skill right now. I watched and read a lot of tutorials and tried to search for it, but I always get a cryptic Error Message from Node.js... I just try to send a http request, so nothing complicated. My Code looks like this: var https = require('https') exports.handler = (event, context) => { try { if (event.session.new) { console.log("NEW SESSION") } switch (event.request.type) { case "LaunchRequest": console.log(`LAUNCH REQUEST`) context.succeed(

alexa Steam custom skill api integration

冷暖自知 提交于 2019-12-25 09:02:15
问题 currently trying to develop one of my first alexa skills. trying to build a skill that updates the user on who out of their Steam friends, are online. Curerntly it's pretty messy and not in the format i hope it to be in the end, but for testing purposes, I'm not yet using intents, im just testing using the launchrequest. So far I've managed to get a users (mine) friends list from steam and put all the friends ids in a url that should be able to grab the details for these users. The issue I'm

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, " +

SSL exception: “received close_notify during handshake” upon initializing Alexa Skill Management API (SMAPI)

丶灬走出姿态 提交于 2019-12-24 19:50:21
问题 I am trying to use SMAPI to interact with my Alexa Skill using Java. The following code fails: package io.mirko.impl; import com.amazon.ask.model.services.skillManagement.SkillManagementService; import com.amazon.ask.smapi.SmapiClients; import org.junit.jupiter.api.Test; public class IntegrationTest { // These come from `ask util generate-lwa-tokens` passing ClientID and SecretID from LWA private static final String CLIENT_ID = "<client_id>"; private static final String CLIENT_SECRET = "

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

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