Universal NotHandled Intent

It is very important to understand when a user says something to your bot that it does not understand.

By passing Dashbot the NotHandled Intent, you can take advantage of the Not Handled report.

For incoming messages that your bot does not handle, set the intent name to “NotHandled” to take advantage of this special report.

Add the NotHandled Intent to the JSON

Prior to sending the message to Dashbot, add an intent with the name NotHandled

const messageForDashbot = {
  "text": "Hi, this is a confusing message for the bot.",
  "userId": "USERIDHERE123123"
}

Becomes:

const messageForDashbot = {
  "text": "Hi, this is a confusing message for the bot.",
  "userId": "USERIDHERE123123",
  "intent": {
     "name": "NotHandled"
  }
}
Close Menu