skill-sample-nodejs-fact | Build An Alexa Fact Skill | AWS library
kandi X-RAY | skill-sample-nodejs-fact Summary
kandi X-RAY | skill-sample-nodejs-fact Summary
This Alexa sample skill is a template for a basic fact skill.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of skill-sample-nodejs-fact
skill-sample-nodejs-fact Key Features
skill-sample-nodejs-fact Examples and Code Snippets
Community Discussions
Trending Discussions on skill-sample-nodejs-fact
QUESTION
I'm trying to add my own responses to custom intents. The LaunchRequest text works, but other than the AMAZON.HelpIntent and other default intents, my own do not get recognized.
Intents:
...ANSWER
Answered 2019-Dec-09 at 11:56Please make these below changes it works. 1. In interaction model, for intent start just give same utterance as “to start” instead of current. Ex: Alexa, ask my personal heartbeat to start.
In your lambda code, in lambda code in getnewfact method you forgot to change the name of intent from getnewfactintent to start.
For invoking currentbpm intent, use “ Alexa, ask my personal heartbeat how fast is my heart beating right now.
Hope this helps.
QUESTION
I'm trying to create Alexa skill based on the tutorial mentioned here. I'm creating this using Alexa-Hosted Skill. When I open my skill, instead of saying 'hello', I get an error saying "There was a problem with the requested skill's response"
The code is exactly the same as mentioned in the src directory of the GitHub repo. Please let me know if you still need to see it and I can paste it here.
I have 2 questions:
I tried to find what the
:ask
and:tell
directives are but I couldn't find the documentation. I checked a couple of sample repos provided by Alexa (like these: fact skill, trivia skill, how to skill) but every sample created skill using ResponseBuilder which is kind of documented here but I didn't find the documentation extensive. Can someone please tell me what they are and where can I find more documentation about them?How do I correct the error I am getting so that I will be able to play the audio?
ANSWER
Answered 2019-Feb-26 at 12:52alexa-sdk package which is used in the mentioned GitHub repo is deprecated and you shouldn't use it.
You should use alexa-sdk-core.
If you wish to play the audio, then you can create the intent handler as below in the code editor of your Alexa Skill,
QUESTION
I was trying to make an alexa skill, which is based on the fact skill of the alexa's blueprint. I've made a custom Intent named "myIntent", which has a variable "{myName}" or slot type "myNameSlot". I've added multiple values like "Dhruv,User,My User" (all are separate values).
So, I tried to launch my Alexa skill in Test via the simulator. It is launching all the in-built intents just fine. However, when I try to launch my custom Intent, it doesn't launch.I wrote the same utterances, however, it is not being invoked.
Here's my Lambda Function's code : https://pastebin.com/7CrdMffW
...ANSWER
Answered 2018-Apr-09 at 11:36I double checked the JSON I was receiving on the first hit.The issue was that shouldEndSession
was set to true and that's because, in NodeJS, shouldEndSession
is set to true in :tell
and cannot be overridden.
I was using :
this.emit(':tell', '2 Hello, what would you like to do?');
.
I changed it to :
this.emit(':ask', '2 Hello, what would you like to do?');
and it worked.
There's a Github thread for the same : https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/64
QUESTION
I've created a simple skill for Alexa based on this example: https://github.com/alexa/skill-sample-nodejs-fact/blob/en-US/lambda/custom/index.js
Now, I'd like the script to log something on a different server when GetNewFactIntent is called.
This is what I'm trying to do but have an issue with this which is not what it should be in the http.get callback.
...ANSWER
Answered 2017-Nov-11 at 11:02this
will not be what you think it is, because you are in the context of the callback function. There are two possible solutions:
- Use an arrow function instead. An arrow function preserves the
this
variable of the scope it is being used in:function () { ... }
->() => { }
. - Declare
var self = this;
outside of the callback and then replace yourthis
inside the callback with yourself
variable.
Example:
QUESTION
I am developing an Alexa skill using AWS Lambda, Node.js and the Alexa Skills Kit.I am using a forked from skill-sample-nodejs-fact project & successfully deployed & tested the sample fact project .Now I am trying to modify that code to read posts on some Facebook feeds.First I tried to develop some node application which can read posts & it was successful.Please find below code for your reference.I used fb module - https://www.npmjs.com/package/fb
...ANSWER
Answered 2017-Dec-18 at 13:02Have you implemented account linking? You should be using event.session.user.accessToken
for the parameter to setAccessToken()
.
QUESTION
I'm very new to Node.js, so perhaps my confusion stems from there. But as far as I can see it, there is no reason to install Alexa Skills Kit SDK when there is no native way to debug/test run my codes without using the simulator online.
I was following the tutorial to make Facts Skill, and noticed that I'm writing all of my code into the developer portal. I found a couple npm
modules that allow me to test my Alexa Skill locally, but I want to know if there is any native support within the SDK for IO of request/respond JSON.
I guess I'm really confused because, normally when you install a module you use it directly in your script (e.g. You install the http module so that you can make http requests inside your code), but since there is no way to test the Alexa Skill out of the online simulator (which already has a built-in support for the SDK), it seems rather pointless to install the SDK as a module in my local environment.
...ANSWER
Answered 2017-Mar-27 at 14:05You would install that module, and anything else that your skill implementation depends on, into your local environment because you can and should test from your local environment.
You might be able to get by without local testing for small skills, but before long you will need local testing IMO.
There are many different ways to enable local testing. Initially I did it by capturing some events that Alexa sent to my live skill, and then manually feeding those to my local skill implementation. How exactly you do this depends on how you've implemented.
But now I'm using BSTAlexa which is a local Alexa simulator - it generates the events for you - and is great for setting up automatated testing. You can read about how to use it here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install skill-sample-nodejs-fact
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page