core / org.rewedigital.dialog.handler / DialogflowIntentHandler
interface DialogflowIntentHandler
Indicates that the class which implements the DialogflowIntentHandler can handle an Intent from Dialogflow.
The DialogflowIntentHandler will be called from the org.rewedigital.dialog.resolver.RequestResolver.
Name | Summary |
---|---|
canHandleDialogflowIntent | abstract fun canHandleDialogflowIntent(handler: DialogflowHandler ): Boolean The org.rewedigital.dialog.resolver.RequestResolver will call this function. Return true if this DialogflowIntentHandler should handle the incoming request. Return false if not. |
handleDialogflowIntent | abstract fun handleDialogflowIntent(handler: DialogflowHandler ): DialogflowResponseBuilder ? The org.rewedigital.dialog.resolver.RequestResolver will call this function if the canHandleDialogflowIntent function has returned true. |