botfront / rasa-addons

A set of 🚀🚀🚀 components to be used with Botfront and/or Rasa
https://botfront.io
Apache License 2.0
131 stars 37 forks source link

SuperAgent #2

Closed PHLF closed 6 years ago

PHLF commented 6 years ago

No input_validation field in the rules.yml file leads to an exception:

The superagent's message_processor should be :

    if self.rules.input_validation:
                error_template = self.rules.input_validation.get_error(parse_data, tracker)
                if error_template:
                    self._utter_error_and_roll_back(message, tracker, error_template)
                    return
znat commented 6 years ago

thanks @PHLF Fixed