narcs / steelconnect-dialogflow

Manage SteelConnect networks through natural language.
1 stars 1 forks source link

Better error handling and reporting #31

Open mirrexagon opened 6 years ago

mirrexagon commented 6 years ago

Currently, it seems that if the webhook fails for any reason (credentials wrong, SteelConnect down, etc.), the Dialogflow agent returns a generic error message to the user. It would be nice if the application could pass some helpful error text back to Dialogflow to tell to user more specifically what went wrong.

There has to be a way to do this in Dialogflow, right?

mirrexagon commented 6 years ago

Actually, I think this already exists, in the form of custom responses from actions that state something went wrong. It might be good to investigate this anyway, to clean it up and add more helpful errors.

mirrexagon commented 6 years ago

Currently auth failure returns a generic "Could not connect to SteelConnect message". We can probably check for auth failure and return a more helpful message.