gregstewart / alexa-gadgetzan-gazette Goto Github PK
View Code? Open in Web Editor NEWAlexa skill for catthing up on Blizzard games news
Alexa skill for catthing up on Blizzard games news
Need to handle built in intents
Other:
if (req.body.request.type === 'LaunchRequest') {
res.json({
"version": "1.0",
"response": {
"shouldEndSession": true,
"outputSpeech": {
"type": "SSML",
"ssml": "<speak>Hmm <break time=\"1s\"/> What day do you want to know about?</speak>"
}
}
});
}
if (req.body.request.type === 'IntentRequest' &&
req.body.request.intent.name === 'GadgetzanGazette') {
if (!req.body.request.intent.slots.Day ||
!req.body.request.intent.slots.Day.value) {
// Handle this error by producing a response like:
// "Hmm, what day do you want to have news for?"
}
Also think about how to handle a game that isn't in the list
if (req.body.request.type === 'SessionEndedRequest') {
// Per the documentation, we do NOT send ANY response... I know, awkward.
console.log('Session ended', req.body.request.reason);
}
Please correct the invocation name as suggested below:
blizzardnewsflash => blizzard news flash
Please review our documentation on choosing an invocation name and update your invocation name and example phrases accordingly.
Steps to reproduce:
User: "Alexa launch blizzardnewsflash"
Skill: "You can ask me for todays Blizzard news"
User: "what is today news for heroes of the storm"
Skill: "Sorry the Blizzard News Flash has no news!"
Please note, that this slot value is working fine when using one-shot requests.
The example phrases that you choose to present to users in the companion app must be included in your sample utterances. These sample utterances should not include the wake word or any relevant launch phrasing.
Please include your example phrase in the sample utterances as shown below:
GadgetzanGazette {Date} blizzard news
For more information about the words included in our supported launch phrases, please see: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/supported-phrases-to-begin-a-conversation
If user input is required after launching the skill with no intent, a welcome prompt must be provided which describes what users can ask of the skill and the session must remain open for a user response. If the session closes after launching the skill, a core functionality must be completed without prompting users to speak. Also the welcome phrase must be appropriate to the context of the skill’s functionality as defined in its description. Please see test case 4.1 from our Submission Checklist for guidance on session management
Example:
User: "Alexa, open gadgetzan gazette".
Skill: "Hmm Why not ask me to give you the latest Blizzard news?"
and the session is closed.
Ideally, the welcome prompt must be provided which describes what users can ask of the skill and the session must remain open for a user response
The example phrases that you choose to present to users in the companion app must be included in your sample utterances. These sample utterances should not include the wake word or any relevant launch phrasing.
Please include your example phrase in the sample utterances as shown below:
GadgetzanGazette {Date} blizzard news
For more information about the words included in our supported launch phrases, please see:
If user input is required after launching the skill with no intent, a welcome prompt must be provided which describes what users can ask of the skill and the session must remain open for a user response. If the session closes after launching the skill, a core functionality must be completed without prompting users to speak. Also the welcome phrase must be appropriate to the context of the skill’s functionality as defined in its description. Please see test case 4.1 from our Submission Checklist for guidance on session management
Example:
User: "Alexa, open gadgetzan gazette".
Skill: "Hmm Why not ask me to give you the latest Blizzard news?" and the session is closed.
Ideally, the welcome prompt must be provided which describes what users can ask of the skill and the session must remain open for a user response.
The skill end-point is not validating the signatures for incoming requests and is accepting requests with an empty signature URL. Please make sure that your signature validation is correct. To reject an invalid request with an invalid signature or certificate, the skill should respond with HTTP status code 400 (Bad Request) in the response.
Please refer to the following documentation on how to build your Alexa Skill as a web service and validate requests and signatures.
Response Format
This section documents the format of the response that your service returns. The service for an Alexa skill must send its response in JSON format.
Note the following size limitations for the response:
The outputSpeech response cannot exceed 8000 characters.
All of the text included in a card cannot exceed 8000 characters. This includes the title, content, text, and image URLs.
An image URL (smallImageUrl or largeImageUrl) cannot exceed 2000 characters.
The total size of your response cannot exceed 24 kilobytes.
Which is causing the the skill to fail.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.