Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 1.5 KB

File metadata and controls

17 lines (11 loc) · 1.5 KB

core / org.rewedigital.dialog.handler / DialogflowIntentHandler

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.

Functions

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.