jazzedge
7/28/2017 - 10:06 AM

Bot - Set default error messages

Bot - Set default error messages

//See: https://stackoverflow.com/questions/40437773/how-do-i-define-the-default-behaviors-of-a-bot-in-node-js

To change the default error messages, we can simply add a file called 'BotBuilder.json' inside the folder

BotProject/locale/<languageCode>/BotBuilder.json
So the file contains the text message which override the default error as follows:

{
    "default_text": "I didn't understand. Please try again.",
    "default_number": "I didn't recognize that as a number. Please enter a number.",
    "default_confirm": "I didn't understand. Please answer 'yes' or 'no'.",
    "default_choice": "I didn't understand. Please choose an option from the list.",
    "default_time": "I didn't recognize the time you entered. Please try again using a format of (MM/DD/YYYY HH:MM:SS).",
    "default_file": "I didn't receive a file. Please try again.",
    "default_error": "Oops. Something went wrong and we need to start over."
}