Skip to content

Instantly share code, notes, and snippets.

@ankkal
Last active June 16, 2018 07:10
Show Gist options
  • Save ankkal/4827ea3c9e1274a3bdfc68884a637f25 to your computer and use it in GitHub Desktop.
Save ankkal/4827ea3c9e1274a3bdfc68884a637f25 to your computer and use it in GitHub Desktop.
ASK Chennai
//Place this inside the getnewfacthandler code inside the handler function
const request = handlerInput.requestEnvelope.request;
// SLOT: planet
if (request.intent.slots.planet &&
request.intent.slots.planet.value &&
request.intent.slots.planet.value !== '?'
) {
const planet = request.intent.slots.planet;
console.log(' slot item was heard as ' + planet.value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment