July 2018
Intermediate to advanced
404 pages
9h 5m
English
The following code shows the modified sendWelcome and a new intent handler, called input.feeling:
const intentHandlers = { 'input.welcome': () => { sendWelcome(); }, 'input.unknown': () => { sendResponse('I\'m having trouble, can you try that again?'); }, 'input.fortune': () => { sendQuote(); }, 'input.feeling': () => { sendQuoteWithFeeling(); }, 'default': () => { sendResponse('This is Henry\'s Fortune Cookie!' ); }};
Read now
Unlock full access