mindmelting / lex-oscarbot

7 stars 2 forks source link

Intent: Goodbye #99

Closed dwmkerr closed 7 years ago

dwmkerr commented 7 years ago

See the last paragraph of:

http://docs.aws.amazon.com/lex/latest/dg/gl-guidelines.html

We encourage you to define an intent that captures a user's intention to discontinue the conversation. For example, you can define an intent (NothingIntent) with sample utterances ("I don't want anything", "exit", "bye bye"), no slots, and no Lambda function configured as a code hook. This would let users gracefully close a conversation.

dwmkerr commented 7 years ago

@mindmelting I'm closing this issue for now. I can find no examples of an intent with no code hook, the closest I got was here:

https://github.com/SoftwareByMark/lex-lambda-hellobot/blob/master/src/main/java/com/github/softwarebymark/lex/hellobot/HelloBotRequestHandler.java#L78

I cannot think of anything this intent would do except perhaps clear the session.

dwmkerr commented 7 years ago

Scratch that, I've added it anyway. You can at least use it to clear the session