This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eslint-disable func-names */ | |
| /* eslint-disable no-console */ | |
| const Alexa = require('ask-sdk'); | |
| const GetQuoteHandler = { | |
| canHandle(handlerInput) { | |
| const request = handlerInput.requestEnvelope.request; | |
| return request.type === 'LaunchRequest' | |
| || (request.type === 'IntentRequest' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Lambda Function code for Alexa. | |
| // Paste this into your index.js file. | |
| const Alexa = require("ask-sdk"); | |
| const https = require("https"); | |
| const invocationName = "salva amicizia"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Lambda Function code for Alexa. | |
| // Paste this into your index.js file. | |
| const Alexa = require("ask-sdk"); | |
| const https = require("https"); | |
| const invocationName = "multiplication test"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = handlerInput.requestEnvelope.request; | |
| const responseBuilder = handlerInput.responseBuilder; | |
| let sessionAttributes = handlerInput.attributesManager.getSessionAttributes(); | |
| // delegate to Alexa to collect all the required slots | |
| const currentIntent = request.intent; | |
| if (request.dialogState && request.dialogState !== 'COMPLETED') { | |
| return handlerInput.responseBuilder | |
| .addDelegateDirective(currentIntent) | |
| .getResponse(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This code has been generated from your interaction model | |
| /* eslint-disable func-names */ | |
| /* eslint quote-props: ["error", "consistent"]*/ | |
| // There are three sections, Text Strings, Skill Code, and Helper Function(s). | |
| // You can copy and paste the contents as the code for a new Lambda function, using the alexa-skill-kit-sdk-factskill template. | |
| // This code includes helper functions for compatibility with versions of the SDK prior to 1.0.9, which includes the dialog directives. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //LAMBDA CODE! | |
| /* This code has been generated from your interaction model | |
| /* eslint-disable func-names */ | |
| /* eslint quote-props: ["error", "consistent"]*/ | |
| // There are three sections, Text Strings, Skill Code, and Helper Function(s). | |
| // You can copy and paste the contents as the code for a new Lambda function, using the alexa-skill-kit-sdk-factskill template. | |
| // This code includes helper functions for compatibility with versions of the SDK prior to 1.0.9, which includes the dialog directives. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This code has been generated from your interaction model | |
| /* eslint-disable func-names */ | |
| /* eslint quote-props: ["error", "consistent"]*/ | |
| // There are three sections, Text Strings, Skill Code, and Helper Function(s). | |
| // You can copy and paste the contents as the code for a new Lambda function, using the alexa-skill-kit-sdk-factskill template. | |
| // This code includes helper functions for compatibility with versions of the SDK prior to 1.0.9, which includes the dialog directives. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "languageModel": { | |
| "types": [ | |
| { | |
| "name": "RANDOM", | |
| "values": [ | |
| { | |
| "id": null, | |
| "name": { | |
| "value": "to be honest", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function supportsDisplay() { | |
| var hasDisplay = | |
| this.event.context && | |
| this.event.context.System && | |
| this.event.context.System.device && | |
| this.event.context.System.device.supportedInterfaces && | |
| this.event.context.System.device.supportedInterfaces.Display | |
| return hasDisplay; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This code has been generated from your interaction model | |
| /* eslint-disable func-names */ | |
| /* eslint quote-props: ["error", "consistent"]*/ | |
| // There are three sections, Text Strings, Skill Code, and Helper Function(s). | |
| // You can copy and paste the contents as the code for a new Lambda function, using the alexa-skill-kit-sdk-factskill template. | |
| // This code includes helper functions for compatibility with versions of the SDK prior to 1.0.9, which includes the dialog directives. | |