Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. {
  2. 'inputContext': undefined,
  3. 'intents': {
  4. //Default Welcome Intent
  5. 'LaunchRequest': async (conv: AdfConversation) => {
  6.  
  7. },
  8. 'ExitIntent': async (conv: AdfConversation) => {
  9.  
  10. },
  11. 'DefaultFallbackIntent': async (conv: AdfConversation) => {
  12.  
  13. },
  14. 'Unhandled': (conv: AdfConversation) => {
  15.  
  16. },
  17. },
  18. },
  19. {
  20. 'inputContext': ConversationContexts.WELCOME,
  21. 'intents': {
  22. 'BargainIntent': async (conv: AdfConversation) => {
  23. conv.setContext(ConversationContexts.BARGAIN)
  24. conv.ask('Du hast dich für das Schnäppchen entschieden.', ':tell')
  25. },
  26. 'PodcastIntent': async (conv: AdfConversation) => {
  27. conv.setContext(ConversationContexts.PODCAST)
  28. if(conv.type){
  29. conv._alexaContext!.emitWithState('PodcastIntent',ConversationContexts.PODCAST)
  30. }
  31. },
  32. },
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement