I have started using dialog flow couple of days back. I have used Java API to act as a webhook where every intent invoke the API and it produces response that can be understandable by dialog flow.
There are some occasions where my dialog flow agent request failed with the input from the intents. In this case I couldn't catch the exception in API and it produces 400 Bad request and dialog flow doesn't repsond anything to the user.
Let me know how to do this. There is an inline editor with js and it was handled with exception like this
res.on('error', (error) => {
console.log(
Error calling the weather API: ${error})
reject();
});