Alan AI handlers

To build a conversational user experience with Alan AI, you can use the following handlers in the app:

onCommand handler

Handle commands sent from the dialog scripts to the app. Use this handler to perform tasks or actions on commands in the client app: navigate between the app screens, highlight a UI element on the screen and so on.

onButtonState handler

Handle the Alan AI button state change events

onConnectionStatus handler

Handle the connection status to the virtual assistant project in the Alan AI Cloud.

onEvent handler

Handle events received from Alan AI when the user’s input is being recognized.