Skip to content

Instantly share code, notes, and snippets.

/* *
* This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK (v2).
* Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management,
* session persistence, api calls, and more.
* */
const Alexa = require('ask-sdk-core');
function pickRandom(items) {
if (!Array.isArray(items) || items.length === 0) {
return null;