When the user is talking to the bot and if at any point the bot fails to understand the question, it should forward the failed question to the registered mail address. how does that work?
How can we make the bot forward the failed question/utterance from the user to a registered email address?
Please follow the below steps:
- At Natural Language, configure the default dialog to a hidden dialog (Say: intent not found)
- Have a service node in this dialog to trigger mail with data available in context as part of request payload
- Use the last message data available in dialog context to send to service which will trigger an email in the backend.
As an FYI, all intent not found records are listed under the respective tab of analyse section and may be this functionality could server the purpose. An export to CSV option is provided as well to download the utterances for which the intent has not been identified by the bot.