Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preset execution flows to handle common errors and exceptions #253

Open
gdaniel opened this issue Sep 30, 2019 · 0 comments
Open

Preset execution flows to handle common errors and exceptions #253

gdaniel opened this issue Sep 30, 2019 · 0 comments
Assignees
Labels
DialogFlow Enhancement New feature or request

Comments

@gdaniel
Copy link
Member

gdaniel commented Sep 30, 2019

It would be nice to add a mechanism to handle internal exception with bot actions. For example: when the DialogFlow connector throws an exception INVALID_ARGUMENT: Input text exceeds 256 characters. the bot should be able to answer to the user that the input is too long, even if this specific interaction is not specified in the execution model.

This can be handled either as static behavior defined in the xatkit-runtime component, or as an external execution model that could be weaved with the user defined one.

The first solution is probably easier to implement as a first approach, because dealing with exceptions from the execution model is not easy, and the model doesn't know the platform to target, so additional abstraction mechanisms are probably required.

In any case this requires to implement a set of methods to retrieve which are the platforms currently used by Xatkit, and select the one we want to use from Java code. This may be a bit tricky for bots running over multiple messaging platforms.

Submitted by @jcabot

@gdaniel gdaniel added Enhancement New feature or request DialogFlow labels Sep 30, 2019
@gdaniel gdaniel added this to the Awaiting Integration milestone Sep 30, 2019
@gdaniel gdaniel self-assigned this Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DialogFlow Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant