alexa-cookbook | sample code projects to be used for educational purposes | Learning library
kandi X-RAY | alexa-cookbook Summary
kandi X-RAY | alexa-cookbook Summary
A series of sample code projects to be used for educational purposes during Alexa hackathons and workshops, and as a reference for tutorials and blog posts.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle error responses
- Create an announcement status .
- Creates a certain type for the specified delay
- creates a video event
- Gets the value of all selected slots .
- Send an event to the service .
- get the next event
- Retrieve the list id of the list
- Gets a custom handler for a particular task
- updates the body template with the given name
alexa-cookbook Key Features
alexa-cookbook Examples and Code Snippets
Community Discussions
Trending Discussions on alexa-cookbook
QUESTION
I've found this example that is using the Catalog URL Reference for populating custom slots in Alexa Skill.
The problem is that I don't know how to populate this catalog.
I was able to create the model catalog using ask cli like this:
ask api create-model-catalog -n catalog_name -d "description"
That produces me the catalogId
in the form "catalogId"
: "amzn1.ask.interactionModel.catalog.blabla"
like the one in the GitHub example in the first link.
The problem is that I don't know how to put the values (for example the ingredients.json
in the above example) inside that catalog.
I've tried using
ask api create-model-catalog-version -c catalogId -f ingredients.json
But what I obtain is
...ANSWER
Answered 2020-Feb-12 at 14:13In order to create and use a catalog in your alexa skill, you have to:
Upload the catalog file into a bucket or another public storage endpoint.
After that, you have to specify a JSON file with the following content (eg. catalog.json):
QUESTION
I am using the ASK SDK 2.0 for Node.js. I have a skill that uses a dialog model to prompt the user for a series of inputs, all of which are required slots with the type AMAZON.NUMBER. When a user gives a numerical response, everything works fine. However, if the user gives a non-numeric response, such as "yellow", the slot value is filled in with:
"value": "?"
and moves on to propmpt the user for the input for the next slot. How can I get it to reprompt the user for that slot again if they provide an invalid response? I've poured over the documentation and can't find anything. Ideally I would want the skill to reprompt the user until a valid input is given (i.e., the value isn't "?"
)
(Strangely, if i set the type to AMAZON.DATE, it will automatically reprompt once, and then if an invalid type is provided a second time the skill will just quit out.)
My response looks like this:
...ANSWER
Answered 2018-Aug-23 at 23:09I believe I've found a solution -- I'm not sure it's the best solution, but it appears to work.
In the CompletedPlanMyTripHandler
, I added the following check to the handle
method:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install alexa-cookbook
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