alexa-skill

using slots in skill intent to search dynamodb

寵の児 提交于 2020-01-16 15:44:09
问题 I'm new to alexa, nodejs and coding in general but i am currently trying to create a skill to find machine states from my dynamodb table using date and time. I currently have set up my skill to get alexa and lambda to understand my slot values but im not sure how i can use these values for a dynamodb query and have alexa call out the state for that corresponding time My table is setup with a primary and sort key which are date and time and i have a third column for machine state. I'm not sure

Echo Spot record video using inbuilt camera - Custom skill

冷暖自知 提交于 2020-01-16 02:02:32
问题 I have a requirement to record video using Amazon device. Currently, I have the Echo spot device and tried to find some way from which I can open the camera and start recording until I give the command to stop, using the custom skill. But didn't get the success. What I have gone through till now is: Alexa.CameraStreamController Interface By which I can handle the camera and Alexa.MediaMetadata Interface to handle recorded videos. But couldn't find anything useful. Can I use an inbuilt camera

How can i restart a dialog in Alexa Skill

99封情书 提交于 2020-01-03 05:07:06
问题 I have a NewContactIntent where the user enters data like first name and mobile number etc. I want him to be able to restart the dialog at any point. Therefore I have a RestartIntent so when the user says 'Restart' the RestartIntentHandler handles the request and should forward it back to the NewContactIntent. Here is the code: const NewContactIntentHandler = { canHandle(handlerInput) { return handlerInput.requestEnvelope.request.type === 'IntentRequest' && handlerInput.requestEnvelope

How to fallback into error when reprompt is processed in Alexa Skill

让人想犯罪 __ 提交于 2020-01-03 04:23:06
问题 I'm new to developing Alexa Skills. I'm working on a Skill for the Spanish store, so I'm using the es-ES voice. I use the Node.js ASK-SDK and I've come across this issue: When I'm trying to develop a conversation with reprompt, if the user says gibberish, that shouldn't trigger any of my utterances, I expect to enter in the Error Handler, as it's the one with canHandle == true, but the actual result is that that gibberish is detected and sorted by Alexa as one of the correct utterances. I've

Getting an Alexa Slot value out of an intent

爱⌒轻易说出口 提交于 2020-01-02 03:59:44
问题 I'm working to build an Alexa skill and have run into a roadblock on getting my slot values out of the intent object. The intent object JSON looks like so: "intent": { "name": "string", "slots": { "string": { "name": "string", "value": "string" } } } My question is what will that first "string" value be to identify the slots? The documentation has this: A map of key-value pairs that further describes what the user meant based on a predefined intent schema. The map can be empty. The key is a

Ask user for input from LaunchIntent

拈花ヽ惹草 提交于 2019-12-31 07:29:14
问题 I'm writing a skill in Node JS 8. I have an intent set up with slots and it works properly if I say Ask {skill name} to {utterance}. I'd like to design my skill so that the user can just say Open {skill Name} and on opening it will ask them for input that will then be handled and passed to the intent. I've seen multiple people say that you can't do this. But I've used 2 skills today that did exactly this. I'm just looking for the correct syntax to do this. I have: 'LaunchRequest': function()

Alexa Skill not recognized when tested on Echo

自闭症网瘾萝莉.ら 提交于 2019-12-30 05:47:07
问题 I was doing one of the tutorials (HelloWorld) to make a skill for the Echo and I followed the directions. When I tested the skill using the Service Simulator, I typed in Alexa, tell Greeter to say hello and that returned the following JSON response: { "version": "1.0", "response": { "outputSpeech": { "type": "PlainText", "text": "Hello World!" }, "card": { "content": "Hello World!", "title": "Greeter", "type": "Simple" }, "shouldEndSession": true }, "sessionAttributes": {} } I think that is

Adding session attributes in Python for Alexa skills

泄露秘密 提交于 2019-12-30 03:35:14
问题 I have 3 slots ( account , dollar_value , recipient_first ) within my intent schema for an Alexa skill and I want to save whatever slots are provided by the speaker in the session Attributes. I am using the following methods to set session attributes: def create_dollar_value_attribute(dollar_value): return {"dollar_value": dollar_value} def create_account_attribute(account): return {"account": account} def create_recipient_first_attribute(recipient_first): return {"recipient_first": recipient

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 timeout with azure functions

自闭症网瘾萝莉.ら 提交于 2019-12-24 20:03:05
问题 I have an azure function that is dealing with requests for an Alexa skill, but every so often I get a timeout due to the azure function not responding within 10 seconds (requirement of an alexa skill): The requested application took too long to respond Request Identifier: amzn1.echo-api-request.xxxxx.xxx Application must respond within 10 seconds of the request being sent. I'm guessing the azure function app is getting teared down after inactivity to save on resources similar to azure