RASA Form issue

Hello there, I have build a simple rasabot using Form feature. The bot working fine, but when form get activated, then it cant pick the slot value successfully, like: if the bot asking brand of device? if I say “brand is nokia” then it’ll get the whole string as brand, not the only “nokia” part… I added it as stories, and when I debug it by --debug , it successfully extract “nokia” as brand value in brand slot, but somehow it frees up the slot value then fill it with the whole string.

Please paste the intent that you expected to pick out the brand entity. Also, the Rasa debug log messages when the user utters the message.

1 Like

I some how did it like this, dont know is it the right way to do, its like: in

validate_brand(){

brand = tracker.get_slot(‘brand’)

// this brand slot sets to auto fill=true

  if not brand:      
      if value.lower() in database:
             return {"brand": value.lower()}
      else:
            dispatcher.utter_message(template="utter_wrong_brand")
            return {"brand": None}
 else:
      if brand.lower() in database
             return {"brand": brand.lower()}
      else:
            dispatcher.utter_message(template="utter_wrong_brand")
            return {"brand": None}

is it the right approach? another thing is when I close the server of rasa run actions & rasa shell --debug I have to kill the process every time to reflect the changes in actions.py file, why is it so? I close the server by using CTRL+C