Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- 'inputContext': undefined,
- 'intents': {
- //Default Welcome Intent
- 'LaunchRequest': async (conv: AdfConversation) => {
- },
- 'ExitIntent': async (conv: AdfConversation) => {
- },
- 'DefaultFallbackIntent': async (conv: AdfConversation) => {
- },
- 'Unhandled': (conv: AdfConversation) => {
- },
- },
- },
- {
- 'inputContext': ConversationContexts.WELCOME,
- 'intents': {
- 'BargainIntent': async (conv: AdfConversation) => {
- conv.setContext(ConversationContexts.BARGAIN)
- conv.ask('Du hast dich für das Schnäppchen entschieden.', ':tell')
- },
- 'PodcastIntent': async (conv: AdfConversation) => {
- conv.setContext(ConversationContexts.PODCAST)
- if(conv.type){
- conv._alexaContext!.emitWithState('PodcastIntent',ConversationContexts.PODCAST)
- }
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement